Package org.elasticsearch.index.mapper
Class MockFieldMapper
- java.lang.Object
-
- org.elasticsearch.index.mapper.Mapper
-
- org.elasticsearch.index.mapper.FieldMapper
-
- org.elasticsearch.index.mapper.MockFieldMapper
-
- All Implemented Interfaces:
java.lang.Cloneable
,java.lang.Iterable<Mapper>
,ToXContent
,ToXContentFragment
public class MockFieldMapper extends FieldMapper
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MockFieldMapper.FakeFieldType
-
Nested classes/interfaces inherited from class org.elasticsearch.index.mapper.FieldMapper
FieldMapper.Builder<T extends FieldMapper.Builder,Y extends FieldMapper>, FieldMapper.CopyTo, FieldMapper.MultiFields
-
Nested classes/interfaces inherited from class org.elasticsearch.index.mapper.Mapper
Mapper.BuilderContext, Mapper.TypeParser
-
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
-
-
Field Summary
-
Fields inherited from class org.elasticsearch.index.mapper.FieldMapper
COERCE_SETTING, copyTo, defaultFieldType, fieldType, IGNORE_MALFORMED_SETTING, indexCreatedVersion, multiFields
-
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
-
Constructor Summary
Constructors Constructor Description MockFieldMapper(java.lang.String fullName)
MockFieldMapper(java.lang.String fullName, MappedFieldType fieldType)
-
Method Summary
Modifier and Type Method Description protected java.lang.String
contentType()
protected void
parseCreateField(ParseContext context, java.util.List list)
-
Methods inherited from class org.elasticsearch.index.mapper.FieldMapper
clone, copyTo, createFieldNamesField, doMerge, doXContentAnalyzers, doXContentBody, doXContentDocValues, fieldType, indexOptionToString, iterator, merge, name, parse, termVectorOptionsToString, toXContent, typeName, updateFieldType
-
Methods inherited from class org.elasticsearch.index.mapper.Mapper
simpleName
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContentFragment
isFragment
-
-
-
-
Constructor Detail
-
MockFieldMapper
public MockFieldMapper(java.lang.String fullName)
-
MockFieldMapper
public MockFieldMapper(java.lang.String fullName, MappedFieldType fieldType)
-
-
Method Detail
-
contentType
protected java.lang.String contentType()
- Specified by:
contentType
in classFieldMapper
-
parseCreateField
protected void parseCreateField(ParseContext context, java.util.List list) throws java.io.IOException
- Specified by:
parseCreateField
in classFieldMapper
- Throws:
java.io.IOException
-
-