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.IndexFieldOptionsadapterFields, 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, transformFieldDescriptorsadapterFieldType, fromBinary, getAdapterFields, indexFieldName, init, isCompatibleWith, toBinarypublic void initFromOptions(List<FieldDescriptor<N>> inputFieldDescriptors, IndexFieldMapper.IndexFieldOptions options)
IndexFieldMapperinitFromOptions 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)
IndexFieldMappertoIndex in class IndexFieldMapper<N,org.threeten.extra.Interval>nativeFieldValues - the native field valuespublic void toAdapter(org.threeten.extra.Interval indexFieldValue,
RowBuilder<?> rowBuilder)
IndexFieldMappertoAdapter 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.