N
- the adapter field typepublic abstract class TimeRangeFieldMapper<N> extends TemporalIntervalFieldMapper<N>
Modifier and Type | Class and Description |
---|---|
static class |
TimeRangeFieldMapper.CalendarRangeFieldMapper
Maps two `Calendar` adapter fields to an `Interval` index field.
|
static class |
TimeRangeFieldMapper.DateRangeFieldMapper
Maps two `Date` adapter fields to an `Interval` index field.
|
static class |
TimeRangeFieldMapper.LongRangeFieldMapper
Maps two `Long` adapter fields to an `Interval` index field.
|
IndexFieldMapper.IndexFieldOptions
adapterFields, indexFieldName
Constructor and Description |
---|
TimeRangeFieldMapper() |
Modifier and Type | Method and Description |
---|---|
short |
adapterFieldCount() |
protected int |
byteLength() |
String[] |
getIndexOrderedAdapterFields() |
Set<String> |
getLowerCaseSuggestedFieldNames() |
void |
initFromOptions(List<FieldDescriptor<N>> inputFieldDescriptors,
IndexFieldMapper.IndexFieldOptions options)
Initialize the field mapper with the given field descriptors and index field options.
|
protected void |
readBytes(ByteBuffer buffer) |
void |
toAdapter(org.threeten.extra.Interval indexFieldValue,
RowBuilder<?> rowBuilder)
Converts an index value back to the fields used by the adapter.
|
org.threeten.extra.Interval |
toIndex(List<N> nativeFieldValues)
Converts native field values to the value expected by the index.
|
protected void |
writeBytes(ByteBuffer buffer) |
indexFieldType, transformFieldDescriptors
adapterFieldType, fromBinary, getAdapterFields, indexFieldName, init, isCompatibleWith, toBinary
public void initFromOptions(List<FieldDescriptor<N>> inputFieldDescriptors, IndexFieldMapper.IndexFieldOptions options)
IndexFieldMapper
initFromOptions
in class TemporalIntervalFieldMapper<N>
inputFieldDescriptors
- the adapter field descriptors to use in the mappingoptions
- the index field options provided by the indexpublic String[] getIndexOrderedAdapterFields()
getIndexOrderedAdapterFields
in class IndexFieldMapper<N,org.threeten.extra.Interval>
public org.threeten.extra.Interval toIndex(List<N> nativeFieldValues)
IndexFieldMapper
toIndex
in class IndexFieldMapper<N,org.threeten.extra.Interval>
nativeFieldValues
- the native field valuespublic void toAdapter(org.threeten.extra.Interval indexFieldValue, RowBuilder<?> rowBuilder)
IndexFieldMapper
toAdapter
in class IndexFieldMapper<N,org.threeten.extra.Interval>
indexFieldValue
- the index valuepublic short adapterFieldCount()
adapterFieldCount
in class IndexFieldMapper<N,org.threeten.extra.Interval>
public Set<String> getLowerCaseSuggestedFieldNames()
getLowerCaseSuggestedFieldNames
in class IndexFieldMapper<N,org.threeten.extra.Interval>
protected int byteLength()
byteLength
in class IndexFieldMapper<N,org.threeten.extra.Interval>
protected void writeBytes(ByteBuffer buffer)
writeBytes
in class IndexFieldMapper<N,org.threeten.extra.Interval>
protected void readBytes(ByteBuffer buffer)
readBytes
in class IndexFieldMapper<N,org.threeten.extra.Interval>
Copyright © 2013–2022. All rights reserved.