org.elasticsearch.index.mapper.json
Class JsonBinaryFieldMapper
java.lang.Object
org.elasticsearch.index.mapper.json.JsonFieldMapper<byte[]>
org.elasticsearch.index.mapper.json.JsonBinaryFieldMapper
- All Implemented Interfaces:
- FieldMapper<byte[]>, JsonMapper, ToJson
public class JsonBinaryFieldMapper
- extends JsonFieldMapper<byte[]>
Field Summary |
static java.lang.String |
JSON_TYPE
|
Methods inherited from class org.elasticsearch.index.mapper.json.JsonFieldMapper |
analyzed, boost, doJsonBody, fieldFilter, fieldQuery, index, indexAnalyzer, indexed, indexedValue, merge, name, names, omitNorms, omitTermFreqAndPositions, parse, queryStringTermQuery, rangeFilter, rangeQuery, searchAnalyzer, shouldBreakTermEnumeration, sortType, store, stored, termVector, traverse, useFieldQueryWithQueryString, valueForSearch, valueForSearch, valueFromString, valueFromTerm |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JSON_TYPE
public static final java.lang.String JSON_TYPE
- See Also:
- Constant Field Values
JsonBinaryFieldMapper
protected JsonBinaryFieldMapper(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.
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 JsonFieldMapper<byte[]>
parseCreateField
protected org.apache.lucene.document.Field parseCreateField(JsonParseContext jsonContext)
throws java.io.IOException
- Specified by:
parseCreateField
in class JsonFieldMapper<byte[]>
- Throws:
java.io.IOException
jsonType
protected java.lang.String jsonType()
- Specified by:
jsonType
in class JsonFieldMapper<byte[]>
toJson
public void toJson(JsonBuilder builder,
ToJson.Params params)
throws java.io.IOException
- Specified by:
toJson
in interface ToJson
- Overrides:
toJson
in class JsonFieldMapper<byte[]>
- Throws:
java.io.IOException