IndexFieldData<AtomicFieldData>, IndexComponentpublic final class UidIndexFieldData extends java.lang.Object implements IndexFieldData<AtomicFieldData>
_id field, which is in-memory since the _id
field does not have doc values, and prepends ${type}# to all values.
Note that it does not add memory compared to what fielddata on the _id is
already using: this is just a view.
TODO: Remove fielddata access on _uid and _id, or add doc values to _id.IndexFieldData.Builder, IndexFieldData.CommonSettings, IndexFieldData.Global<FD extends AtomicFieldData>, IndexFieldData.XFieldComparatorSource| Constructor | Description |
|---|---|
UidIndexFieldData(Index index,
java.lang.String type,
IndexFieldData<?> idFieldData) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
clear() |
Clears any resources associated with this field data.
|
java.lang.String |
getFieldName() |
The field name.
|
Index |
index() |
|
AtomicFieldData |
load(org.apache.lucene.index.LeafReaderContext context) |
Loads the atomic field data for the reader, possibly cached.
|
AtomicFieldData |
loadDirect(org.apache.lucene.index.LeafReaderContext context) |
Loads directly the atomic field data for the reader, ignoring any caching involved.
|
org.apache.lucene.search.SortField |
sortField(java.lang.Object missingValue,
MultiValueMode sortMode,
IndexFieldData.XFieldComparatorSource.Nested nested,
boolean reverse) |
Returns the
SortField to used for sorting. |
public UidIndexFieldData(Index index, java.lang.String type, IndexFieldData<?> idFieldData)
public Index index()
index in interface IndexComponentpublic java.lang.String getFieldName()
IndexFieldDatagetFieldName in interface IndexFieldData<AtomicFieldData>public org.apache.lucene.search.SortField sortField(java.lang.Object missingValue,
MultiValueMode sortMode,
IndexFieldData.XFieldComparatorSource.Nested nested,
boolean reverse)
IndexFieldDataSortField to used for sorting.sortField in interface IndexFieldData<AtomicFieldData>public AtomicFieldData load(org.apache.lucene.index.LeafReaderContext context)
IndexFieldDataload in interface IndexFieldData<AtomicFieldData>public AtomicFieldData loadDirect(org.apache.lucene.index.LeafReaderContext context) throws java.lang.Exception
IndexFieldDataloadDirect in interface IndexFieldData<AtomicFieldData>java.lang.Exceptionpublic void clear()
IndexFieldDataclear in interface IndexFieldData<AtomicFieldData>