org.elasticsearch.index.mapper.xcontent
Class BinaryFieldMapper
java.lang.Object
org.elasticsearch.index.mapper.xcontent.AbstractFieldMapper<byte[]>
org.elasticsearch.index.mapper.xcontent.BinaryFieldMapper
- All Implemented Interfaces:
- ToXContent, FieldMapper<byte[]>, XContentMapper
public class BinaryFieldMapper
- extends AbstractFieldMapper<byte[]>
Methods inherited from class org.elasticsearch.index.mapper.xcontent.AbstractFieldMapper |
analyzed, boost, doXContentBody, fieldDataType, fieldFilter, fieldQuery, index, indexAnalyzer, indexed, merge, name, names, omitNorms, omitTermFreqAndPositions, parse, queryStringTermQuery, rangeFilter, rangeQuery, searchAnalyzer, store, stored, termVector, traverse, useFieldQueryWithQueryString, valueForSearch |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CONTENT_TYPE
public static final java.lang.String CONTENT_TYPE
- See Also:
- Constant Field Values
BinaryFieldMapper
protected BinaryFieldMapper(FieldMapper.Names names)
value
public byte[] value(org.apache.lucene.document.Fieldable field)
- Description copied from interface:
FieldMapper
- Returns the actual value of the field.
valueFromString
public byte[] valueFromString(java.lang.String value)
valueAsString
public java.lang.String valueAsString(org.apache.lucene.document.Fieldable field)
- Description copied from interface:
FieldMapper
- Returns the actual value of the field as string.
indexedValue
public java.lang.String indexedValue(java.lang.String value)
- Description copied from interface:
FieldMapper
- Returns the indexed value.
- Specified by:
indexedValue
in interface FieldMapper<byte[]>
- Overrides:
indexedValue
in class AbstractFieldMapper<byte[]>
parseCreateField
protected org.apache.lucene.document.Field parseCreateField(ParseContext context)
throws java.io.IOException
- Specified by:
parseCreateField
in class AbstractFieldMapper<byte[]>
- Throws:
java.io.IOException
contentType
protected java.lang.String contentType()
- Specified by:
contentType
in class AbstractFieldMapper<byte[]>
toXContent
public void toXContent(XContentBuilder builder,
ToXContent.Params params)
throws java.io.IOException
- Specified by:
toXContent
in interface ToXContent
- Overrides:
toXContent
in class AbstractFieldMapper<byte[]>
- Throws:
java.io.IOException