Package org.opensearch.core.xcontent
Class ObjectParserHelper<Value,Context>
java.lang.Object
org.opensearch.core.xcontent.ObjectParserHelper<Value,Context>
This class provides helpers for
ObjectParser that allow dealing with
classes outside of the xcontent dependencies.- Opensearch.internal:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddeclareRawObject(AbstractObjectParser<Value, Context> parser, BiConsumer<Value, BytesReference> consumer, ParseField field) Helper to declare an object that will be parsed into aBytesReference
-
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
-