Browse files

whoops, need to convert back from BooleanWritable too

  • Loading branch information...
1 parent 24fce2d commit 224926ab5eff8fd0d70dbb032bc9318f709980fd @thedatachef thedatachef committed Aug 5, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/main/java/com/infochimps/elasticsearch/ElasticSearchOutputFormat.java
View
2 src/main/java/com/infochimps/elasticsearch/ElasticSearchOutputFormat.java
@@ -195,6 +195,8 @@ private void buildContent(XContentBuilder builder, Writable value) throws IOExce
builder.value(((DoubleWritable)value).get());
} else if (value instanceof FloatWritable) {
builder.value(((FloatWritable)value).get());
+ } else if (value instanceof BooleanWritable) {
+ builder.value(((BooleanWritable)value).get());
} else if (value instanceof MapWritable) {
builder.startObject();
for (Map.Entry<Writable,Writable> entry : ((MapWritable)value).entrySet()) {

0 comments on commit 224926a

Please sign in to comment.