public class TimestampFieldMapper extends DateFieldMapper implements InternalMapper, RootMapper
| Modifier and Type | Class and Description |
|---|---|
static class |
TimestampFieldMapper.Builder |
static class |
TimestampFieldMapper.Defaults |
static class |
TimestampFieldMapper.TypeParser |
DateFieldMapper.LateParsingQueryNumberFieldMapper.CustomLongNumericDocValuesField, NumberFieldMapper.CustomNumericDocValuesField, NumberFieldMapper.CustomNumericFieldAbstractFieldMapper.CopyTo, AbstractFieldMapper.MultiFieldsMapper.BuilderContextToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsFieldMapper.Loading, FieldMapper.Names| Modifier and Type | Field and Description |
|---|---|
static String |
CONTENT_TYPE |
static String |
DEFAULT_DATE_TIME_FORMAT |
static String |
NAME |
dateTimeFormatter, timeUnitcoerce, ignoreMalformed, includeInAll, precisionStep, useSortedNumericDocValuesboost, copyTo, customFieldDataSettings, docValues, docValuesFormat, fieldDataType, fieldType, indexAnalyzer, multiFields, names, normsLoading, postingsFormat, searchAnalyzer, similarityEMPTY_ARRAYEMPTY_PARAMSDOC_VALUES_FORMAT| Modifier | Constructor and Description |
|---|---|
protected |
TimestampFieldMapper(org.apache.lucene.document.FieldType fieldType,
Boolean docValues,
EnabledAttributeMapper enabledState,
String path,
FormatDateTimeFormatter dateTimeFormatter,
String defaultTimestamp,
boolean roundCeil,
Boolean ignoreMissing,
Explicit<Boolean> ignoreMalformed,
Explicit<Boolean> coerce,
PostingsFormatProvider postingsProvider,
DocValuesFormatProvider docValuesProvider,
FieldMapper.Loading normsLoading,
Settings fieldDataSettings,
Settings indexSettings) |
|
TimestampFieldMapper(Settings indexSettings) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
contentType() |
FormatDateTimeFormatter |
dateTimeFormatter() |
org.apache.lucene.document.FieldType |
defaultFieldType() |
String |
defaultTimestamp() |
boolean |
enabled() |
Boolean |
ignoreMissing() |
boolean |
includeInObject()
Should the mapper be included in the root
ObjectMapper. |
protected void |
innerParseCreateField(ParseContext context,
List<org.apache.lucene.document.Field> fields) |
void |
merge(Mapper mergeWith,
MergeContext mergeContext) |
void |
parse(ParseContext context) |
String |
path() |
void |
postParse(ParseContext context)
Called after
Mapper.parse(ParseContext) on the RootObjectMapper. |
void |
preParse(ParseContext context)
Called before
Mapper.parse(ParseContext) on the RootObjectMapper. |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
Object |
valueForSearch(Object value)
Override the default behavior to return a timestamp
|
customBoost, dateMathParser, defaultFieldDataType, doXContentBody, fuzzyQuery, indexedValueForSearch, maxPrecisionStep, nullValueFilter, parseToMilliseconds, parseToMilliseconds, parseToMilliseconds, rangeFilter, rangeFilter, rangeFilter, rangeFilter, rangeQuery, rangeQuery, stats, valueaddDocValue, close, fieldDataTermsFilter, includeInAll, includeInAllIfNotSet, isNumeric, parseCreateField, parseDoubleValue, parseLongValue, popCachedStream, precisionStep, termFilter, termQuery, unsetIncludeInAll, useTermQueryWithQueryStringboost, copyTo, defaultDocValuesFormat, defaultPostingFormat, docValuesFormatProvider, fieldDataType, fieldType, hasDocValues, indexAnalyzer, indexOptionToString, indexTokenizeOptionToString, isGenerated, isSortable, name, names, normsLoading, postingsFormatProvider, prefixFilter, prefixQuery, queryStringTermQuery, regexpFilter, regexpQuery, searchAnalyzer, searchQuoteAnalyzer, similarity, supportsNullValue, termsFilter, termVectorOptionsToString, traverse, traversepublic static final String NAME
public static final String CONTENT_TYPE
public static final String DEFAULT_DATE_TIME_FORMAT
public TimestampFieldMapper(Settings indexSettings)
protected TimestampFieldMapper(org.apache.lucene.document.FieldType fieldType,
Boolean docValues,
EnabledAttributeMapper enabledState,
String path,
FormatDateTimeFormatter dateTimeFormatter,
String defaultTimestamp,
boolean roundCeil,
Boolean ignoreMissing,
Explicit<Boolean> ignoreMalformed,
Explicit<Boolean> coerce,
PostingsFormatProvider postingsProvider,
DocValuesFormatProvider docValuesProvider,
FieldMapper.Loading normsLoading,
@Nullable
Settings fieldDataSettings,
Settings indexSettings)
public org.apache.lucene.document.FieldType defaultFieldType()
defaultFieldType in class DateFieldMapperpublic boolean enabled()
public String path()
public String defaultTimestamp()
public Boolean ignoreMissing()
public FormatDateTimeFormatter dateTimeFormatter()
dateTimeFormatter in class DateFieldMapperpublic Object valueForSearch(Object value)
valueForSearch in interface FieldMapper<Long>valueForSearch in class DateFieldMapperpublic void preParse(ParseContext context) throws IOException
RootMapperMapper.parse(ParseContext) on the RootObjectMapper.preParse in interface RootMapperIOExceptionpublic void postParse(ParseContext context) throws IOException
RootMapperMapper.parse(ParseContext) on the RootObjectMapper.postParse in interface RootMapperIOExceptionpublic void parse(ParseContext context) throws IOException
parse in interface Mapperparse in class AbstractFieldMapper<Long>IOExceptionpublic boolean includeInObject()
RootMapperObjectMapper.
If this method returns true, then Mapper.parse(ParseContext) will be
called if the context has a property that matches the name of this
RootMapper. Otherwise Mapper.parse(ParseContext) will not
be called.includeInObject in interface RootMapperprotected void innerParseCreateField(ParseContext context, List<org.apache.lucene.document.Field> fields) throws IOException
innerParseCreateField in class DateFieldMapperIOExceptionprotected String contentType()
contentType in class DateFieldMapperpublic XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent in interface ToXContenttoXContent in class AbstractFieldMapper<Long>IOExceptionpublic void merge(Mapper mergeWith, MergeContext mergeContext) throws MergeMappingException
merge in interface Mappermerge in class DateFieldMapperMergeMappingExceptionCopyright © 2009–2016. All rights reserved.