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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCollection<org.apache.lucene.util.Accountable>org.apache.lucene.index.SortedSetDocValuesordinals(Ordinals.ValuesHolder values)longThe memory size this ordinals take.static booleansignificantlySmallerThanSinglePackedOrdinals(int maxDoc, int numDocsWithValue, long numOrds, float acceptableOverheadRatio)Return true if this impl is going to be smaller thanSinglePackedOrdinalsby 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 thanSinglePackedOrdinalsby at least 20%. -
ramBytesUsed
public long ramBytesUsed()Description copied from class:OrdinalsThe memory size this ordinals take.- Specified by:
ramBytesUsedin interfaceorg.apache.lucene.util.Accountable- Specified by:
ramBytesUsedin classOrdinals
-
getChildResources
-
ordinals
-