Package org.elasticsearch.index.mapper
Class BinaryFieldMapper
java.lang.Object
org.elasticsearch.index.mapper.Mapper
org.elasticsearch.index.mapper.FieldMapper
org.elasticsearch.index.mapper.ParametrizedFieldMapper
org.elasticsearch.index.mapper.BinaryFieldMapper
- All Implemented Interfaces:
java.lang.Cloneable
,java.lang.Iterable<Mapper>
,org.elasticsearch.common.xcontent.ToXContent
,org.elasticsearch.common.xcontent.ToXContentFragment
public class BinaryFieldMapper extends ParametrizedFieldMapper
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BinaryFieldMapper.BinaryFieldType
static class
BinaryFieldMapper.Builder
static class
BinaryFieldMapper.CustomBinaryDocValuesField
static class
BinaryFieldMapper.TypeParser
Nested classes/interfaces inherited from class org.elasticsearch.index.mapper.ParametrizedFieldMapper
ParametrizedFieldMapper.Parameter<T>
Nested classes/interfaces inherited from class org.elasticsearch.index.mapper.FieldMapper
FieldMapper.CopyTo, FieldMapper.MultiFields
Nested classes/interfaces inherited from class org.elasticsearch.index.mapper.Mapper
Mapper.BuilderContext
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
CONTENT_TYPE
Fields inherited from class org.elasticsearch.index.mapper.FieldMapper
COERCE_SETTING, copyTo, fieldType, IGNORE_MALFORMED_SETTING, mappedFieldType, multiFields
-
Constructor Summary
Constructors Modifier Constructor Description protected
BinaryFieldMapper(java.lang.String simpleName, MappedFieldType mappedFieldType, FieldMapper.MultiFields multiFields, FieldMapper.CopyTo copyTo, BinaryFieldMapper.Builder builder)
-
Method Summary
Modifier and Type Method Description protected java.lang.String
contentType()
ParametrizedFieldMapper.Builder
getMergeBuilder()
Returns aParametrizedFieldMapper.Builder
to be used for merging and serialization Implement as follows:return new MyBuilder(simpleName()).init(this);
protected void
parseCreateField(ParseContext context)
Parse the field value and populate the fields onParseContext.doc()
.Methods inherited from class org.elasticsearch.index.mapper.ParametrizedFieldMapper
merge, mergeOptions, toXContent
Methods inherited from class org.elasticsearch.index.mapper.FieldMapper
clone, copyTo, createFieldNamesField, docValuesByDefault, doXContentAnalyzers, doXContentBody, fieldType, indexedByDefault, indexOptionToString, iterator, name, parse, parsesArrayValue, storedByDefault, termVectorOptionsToString, typeName
-
Field Details
-
CONTENT_TYPE
public static final java.lang.String CONTENT_TYPE- See Also:
- Constant Field Values
-
-
Constructor Details
-
BinaryFieldMapper
protected BinaryFieldMapper(java.lang.String simpleName, MappedFieldType mappedFieldType, FieldMapper.MultiFields multiFields, FieldMapper.CopyTo copyTo, BinaryFieldMapper.Builder builder)
-
-
Method Details
-
parseCreateField
Description copied from class:FieldMapper
Parse the field value and populate the fields onParseContext.doc()
. Implementations of this method should ensure that on failing to parse parser.currentToken() must be the current failing token- Specified by:
parseCreateField
in classFieldMapper
- Throws:
java.io.IOException
-
getMergeBuilder
Description copied from class:ParametrizedFieldMapper
Returns aParametrizedFieldMapper.Builder
to be used for merging and serialization Implement as follows:return new MyBuilder(simpleName()).init(this);
- Specified by:
getMergeBuilder
in classParametrizedFieldMapper
-
contentType
protected java.lang.String contentType()- Specified by:
contentType
in classFieldMapper
-