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 for ObjectParser 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​(org.elasticsearch.common.xcontent.AbstractObjectParser<Value,​Context> parser, java.util.function.BiConsumer<Value,​BytesReference> consumer, org.elasticsearch.common.ParseField field)
    Helper to declare an object that will be parsed into a BytesReference

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait