org.elasticsearch.index.mapper.json
Class JsonBinaryFieldMapper

java.lang.Object
  extended by org.elasticsearch.index.mapper.json.JsonFieldMapper<byte[]>
      extended by org.elasticsearch.index.mapper.json.JsonBinaryFieldMapper
All Implemented Interfaces:
FieldMapper<byte[]>, JsonMapper, ToJson

public class JsonBinaryFieldMapper
extends JsonFieldMapper<byte[]>


Nested Class Summary
static class JsonBinaryFieldMapper.Builder
           
static class JsonBinaryFieldMapper.TypeParser
           
 
Nested classes/interfaces inherited from class org.elasticsearch.index.mapper.json.JsonFieldMapper
JsonFieldMapper.Defaults, JsonFieldMapper.OpenBuilder<T extends JsonFieldMapper.Builder,Y extends JsonFieldMapper>
 
Nested classes/interfaces inherited from interface org.elasticsearch.index.mapper.FieldMapper
FieldMapper.Names
 
Nested classes/interfaces inherited from interface org.elasticsearch.index.mapper.json.JsonMapper
JsonMapper.BuilderContext
 
Nested classes/interfaces inherited from interface org.elasticsearch.util.json.ToJson
ToJson.MapParams, ToJson.Params
 
Field Summary
static java.lang.String JSON_TYPE
           
 
Fields inherited from class org.elasticsearch.index.mapper.json.JsonFieldMapper
boost, index, indexAnalyzer, names, omitNorms, omitTermFreqAndPositions, searchAnalyzer, store, termVector
 
Fields inherited from interface org.elasticsearch.index.mapper.json.JsonMapper
EMPTY_ARRAY
 
Fields inherited from interface org.elasticsearch.util.json.ToJson
EMPTY_PARAMS
 
Constructor Summary
protected JsonBinaryFieldMapper(FieldMapper.Names names)
           
 
Method Summary
 java.lang.String indexedValue(java.lang.String value)
          Returns the indexed value.
protected  java.lang.String jsonType()
           
protected  org.apache.lucene.document.Field parseCreateField(JsonParseContext jsonContext)
           
 void toJson(JsonBuilder builder, ToJson.Params params)
           
 byte[] value(org.apache.lucene.document.Fieldable field)
          Returns the actual value of the field.
 java.lang.String valueAsString(org.apache.lucene.document.Fieldable field)
          Returns the actual value of the field as string.
 
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
 

Field Detail

JSON_TYPE

public static final java.lang.String JSON_TYPE
See Also:
Constant Field Values
Constructor Detail

JsonBinaryFieldMapper

protected JsonBinaryFieldMapper(FieldMapper.Names names)
Method Detail

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