Class MultiOrdinals
java.lang.Object
org.elasticsearch.index.fielddata.ordinals.Ordinals
org.elasticsearch.index.fielddata.ordinals.MultiOrdinals
- All Implemented Interfaces:
org.apache.lucene.util.Accountable
Ordinals
implementation which is efficient at storing field data ordinals for multi-valued or sparse fields.-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.index.fielddata.ordinals.Ordinals
Ordinals.ValuesHolder
-
Field Summary
Fields inherited from interface org.apache.lucene.util.Accountable
NULL_ACCOUNTABLE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionCollection<org.apache.lucene.util.Accountable>
org.apache.lucene.index.SortedSetDocValues
ordinals(Ordinals.ValuesHolder values)
long
The memory size this ordinals take.static boolean
significantlySmallerThanSinglePackedOrdinals(int maxDoc, int numDocsWithValue, long numOrds, float acceptableOverheadRatio)
Return true if this impl is going to be smaller thanSinglePackedOrdinals
by at least 20%.
-
Constructor Details
-
MultiOrdinals
-
-
Method Details
-
significantlySmallerThanSinglePackedOrdinals
public static boolean significantlySmallerThanSinglePackedOrdinals(int maxDoc, int numDocsWithValue, long numOrds, float acceptableOverheadRatio)Return true if this impl is going to be smaller thanSinglePackedOrdinals
by at least 20%. -
ramBytesUsed
public long ramBytesUsed()Description copied from class:Ordinals
The memory size this ordinals take.- Specified by:
ramBytesUsed
in interfaceorg.apache.lucene.util.Accountable
- Specified by:
ramBytesUsed
in classOrdinals
-
getChildResources
-
ordinals
-