Class ObjectParserHelper<Value,Context>
- java.lang.Object
-
- org.elasticsearch.common.xcontent.ObjectParserHelper<Value,Context>
-
public final class ObjectParserHelper<Value,Context> extends java.lang.Object
This class provides helpers forObjectParser
that allow dealing with classes outside of the xcontent dependencies.
-
-
Constructor Summary
Constructors Constructor Description ObjectParserHelper()
-
Method Summary
Modifier and Type Method Description void
declareRawObject(AbstractObjectParser<Value,Context> parser, java.util.function.BiConsumer<Value,BytesReference> consumer, ParseField field)
Helper to declare an object that will be parsed into aBytesReference
-
-
-
Method Detail
-
declareRawObject
public void declareRawObject(AbstractObjectParser<Value,Context> parser, java.util.function.BiConsumer<Value,BytesReference> consumer, ParseField field)
Helper to declare an object that will be parsed into aBytesReference
-
-