public abstract class LegacyNumberFieldMapper extends FieldMapper
Modifier and Type | Class and Description |
---|---|
static class |
LegacyNumberFieldMapper.Builder<T extends LegacyNumberFieldMapper.Builder,Y extends LegacyNumberFieldMapper> |
static class |
LegacyNumberFieldMapper.CustomNumericField |
static class |
LegacyNumberFieldMapper.Defaults |
static class |
LegacyNumberFieldMapper.NumberFieldType |
FieldMapper.CopyTo, FieldMapper.MultiFields
Mapper.BuilderContext, Mapper.TypeParser
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Modifier and Type | Field and Description |
---|---|
protected Explicit<java.lang.Boolean> |
coerce |
protected Explicit<java.lang.Boolean> |
ignoreMalformed |
protected java.lang.Boolean |
includeInAll |
copyTo, defaultFieldType, fieldType, IGNORE_MALFORMED_SETTING, indexCreatedVersion, multiFields
EMPTY_PARAMS
Modifier | Constructor and Description |
---|---|
protected |
LegacyNumberFieldMapper(java.lang.String simpleName,
MappedFieldType fieldType,
MappedFieldType defaultFieldType,
Explicit<java.lang.Boolean> ignoreMalformed,
Explicit<java.lang.Boolean> coerce,
java.lang.Boolean includeInAll,
Settings indexSettings,
FieldMapper.MultiFields multiFields,
FieldMapper.CopyTo copyTo) |
Modifier and Type | Method and Description |
---|---|
protected void |
addDocValue(ParseContext context,
java.util.List<org.apache.lucene.index.IndexableField> fields,
long value) |
protected LegacyNumberFieldMapper |
clone() |
protected void |
doMerge(Mapper mergeWith,
boolean updateAllTypes)
Merge changes coming from
mergeWith in place. |
protected void |
doXContentBody(XContentBuilder builder,
boolean includeDefaults,
ToXContent.Params params) |
protected abstract void |
innerParseCreateField(ParseContext context,
java.util.List<org.apache.lucene.index.IndexableField> fields) |
protected void |
parseCreateField(ParseContext context,
java.util.List<org.apache.lucene.index.IndexableField> fields)
Parse the field value and populate
fields . |
static double |
parseDoubleValue(java.lang.Object value)
Converts an object value into a double
|
static long |
parseLongValue(java.lang.Object value)
Converts an object value into a long
|
contentType, copyTo, customBoost, doXContentAnalyzers, doXContentDocValues, fieldType, indexOptionToString, indexTokenizeOption, iterator, merge, name, parse, termVectorOptionsToString, toXContent, updateFieldType
simpleName
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isFragment
protected java.lang.Boolean includeInAll
protected Explicit<java.lang.Boolean> ignoreMalformed
protected Explicit<java.lang.Boolean> coerce
protected LegacyNumberFieldMapper(java.lang.String simpleName, MappedFieldType fieldType, MappedFieldType defaultFieldType, Explicit<java.lang.Boolean> ignoreMalformed, Explicit<java.lang.Boolean> coerce, java.lang.Boolean includeInAll, Settings indexSettings, FieldMapper.MultiFields multiFields, FieldMapper.CopyTo copyTo)
protected LegacyNumberFieldMapper clone()
clone
in class FieldMapper
protected void parseCreateField(ParseContext context, java.util.List<org.apache.lucene.index.IndexableField> fields) throws java.io.IOException
FieldMapper
fields
.parseCreateField
in class FieldMapper
java.io.IOException
protected abstract void innerParseCreateField(ParseContext context, java.util.List<org.apache.lucene.index.IndexableField> fields) throws java.io.IOException
java.io.IOException
protected final void addDocValue(ParseContext context, java.util.List<org.apache.lucene.index.IndexableField> fields, long value)
public static double parseDoubleValue(java.lang.Object value)
public static long parseLongValue(java.lang.Object value)
protected void doMerge(Mapper mergeWith, boolean updateAllTypes)
FieldMapper
mergeWith
in place.doMerge
in class FieldMapper
updateAllTypes
- TODOprotected void doXContentBody(XContentBuilder builder, boolean includeDefaults, ToXContent.Params params) throws java.io.IOException
doXContentBody
in class FieldMapper
java.io.IOException