Ordinals.ValuesHolder
Constructor and Description |
---|
MultiOrdinals(OrdinalsBuilder builder,
float acceptableOverheadRatio) |
Modifier and Type | Method and Description |
---|---|
Collection<org.apache.lucene.util.Accountable> |
getChildResources() |
org.apache.lucene.index.RandomAccessOrds |
ordinals(Ordinals.ValuesHolder values) |
long |
ramBytesUsed()
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 than
SinglePackedOrdinals by at least 20%. |
public MultiOrdinals(OrdinalsBuilder builder, float acceptableOverheadRatio)
public static boolean significantlySmallerThanSinglePackedOrdinals(int maxDoc, int numDocsWithValue, long numOrds, float acceptableOverheadRatio)
SinglePackedOrdinals
by at least 20%.public long ramBytesUsed()
Ordinals
ramBytesUsed
in interface org.apache.lucene.util.Accountable
ramBytesUsed
in class Ordinals
public Collection<org.apache.lucene.util.Accountable> getChildResources()
public org.apache.lucene.index.RandomAccessOrds ordinals(Ordinals.ValuesHolder values)
Copyright © 2009–2016. All rights reserved.