Skip to content

Commit

Permalink
whoops, need to convert back from BooleanWritable too
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacob Perkins committed Aug 5, 2011
1 parent 24fce2d commit 224926a
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -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()) {
Expand Down

0 comments on commit 224926a

Please sign in to comment.