- All Known Implementing Classes:
IdLoader.StoredIdLoader,IdLoader.TsIdLoader
Responsible for loading the _id from stored fields or for TSDB synthesizing the _id from the routing, _tsid and @timestamp fields.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceReturns a leaf instance for a leaf reader that returns the _id for segment level doc ids.static final classstatic final classstatic final classstatic final class -
Method Summary
Modifier and TypeMethodDescriptionstatic IdLoadercreateTsIdLoader(IndexRouting.ExtractFromSource indexRouting, List<String> routingPaths) static IdLoaderleaf(LeafStoredFieldLoader loader, org.apache.lucene.index.LeafReader reader, int[] docIdsInLeaf)
-
Method Details
-
fromLeafStoredFieldLoader
- Returns:
- returns an
IdLoaderinstance the loads the _id from stored field.
-
createTsIdLoader
static IdLoader createTsIdLoader(IndexRouting.ExtractFromSource indexRouting, List<String> routingPaths) - Returns:
- returns an
IdLoaderinstance that syn synthesizes _id from routing, _tsid and @timestamp fields.
-
leaf
IdLoader.Leaf leaf(LeafStoredFieldLoader loader, org.apache.lucene.index.LeafReader reader, int[] docIdsInLeaf) throws IOException - Throws:
IOException
-