Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

whoops, need to convert back from BooleanWritable too

  • Loading branch information...
commit 224926ab5eff8fd0d70dbb032bc9318f709980fd 1 parent 24fce2d
@thedatachef thedatachef authored
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.
Something went wrong with that request. Please try again.