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