org.elasticsearch.index.mapper.xcontent
Class XContentBinaryFieldMapper

java.lang.Object
  extended by org.elasticsearch.index.mapper.xcontent.XContentFieldMapper<byte[]>
      extended by org.elasticsearch.index.mapper.xcontent.XContentBinaryFieldMapper
All Implemented Interfaces:
ToXContent, FieldMapper<byte[]>, XContentMapper

public class XContentBinaryFieldMapper
extends XContentFieldMapper<byte[]>


Nested Class Summary
static class XContentBinaryFieldMapper.Builder
           
static class XContentBinaryFieldMapper.TypeParser
           
 
Nested classes/interfaces inherited from class org.elasticsearch.index.mapper.xcontent.XContentFieldMapper
XContentFieldMapper.Defaults, XContentFieldMapper.OpenBuilder<T extends XContentFieldMapper.Builder,Y extends XContentFieldMapper>
 
Nested classes/interfaces inherited from interface org.elasticsearch.index.mapper.FieldMapper
FieldMapper.Names
 
Nested classes/interfaces inherited from interface org.elasticsearch.index.mapper.xcontent.XContentMapper
XContentMapper.BuilderContext
 
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.MapParams, ToXContent.Params
 
Field Summary
static java.lang.String CONTENT_TYPE
           
 
Fields inherited from class org.elasticsearch.index.mapper.xcontent.XContentFieldMapper
boost, index, indexAnalyzer, names, omitNorms, omitTermFreqAndPositions, searchAnalyzer, store, termVector
 
Fields inherited from interface org.elasticsearch.index.mapper.xcontent.XContentMapper
EMPTY_ARRAY
 
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
 
Constructor Summary
protected XContentBinaryFieldMapper(FieldMapper.Names names)
           
 
Method Summary
protected  java.lang.String contentType()
           
 java.lang.String indexedValue(java.lang.String value)
          Returns the indexed value.
protected  org.apache.lucene.document.Field parseCreateField(ParseContext context)
           
 void toXContent(XContentBuilder builder, ToXContent.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.xcontent.XContentFieldMapper
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, valueFromTerm
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONTENT_TYPE

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

XContentBinaryFieldMapper

protected XContentBinaryFieldMapper(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 XContentFieldMapper<byte[]>

parseCreateField

protected org.apache.lucene.document.Field parseCreateField(ParseContext context)
                                                     throws java.io.IOException
Specified by:
parseCreateField in class XContentFieldMapper<byte[]>
Throws:
java.io.IOException

contentType

protected java.lang.String contentType()
Specified by:
contentType in class XContentFieldMapper<byte[]>

toXContent

public void toXContent(XContentBuilder builder,
                       ToXContent.Params params)
                throws java.io.IOException
Specified by:
toXContent in interface ToXContent
Overrides:
toXContent in class XContentFieldMapper<byte[]>
Throws:
java.io.IOException