Modifier and Type | Method and Description |
---|---|
static SortedNumericDoubleValues |
castToDouble(org.apache.lucene.index.SortedNumericDocValues values)
Wrap the provided
SortedNumericDocValues instance to cast all values to doubles. |
static org.apache.lucene.index.SortedNumericDocValues |
castToLong(SortedNumericDoubleValues values)
Wrap the provided
SortedNumericDoubleValues instance to cast all values to longs. |
static org.apache.lucene.util.Bits |
docsWithValue(MultiGeoPointValues dv,
int maxDoc)
Returns a Bits representing all documents from
dv that have a value. |
static org.apache.lucene.util.Bits |
docsWithValue(SortedBinaryDocValues dv,
int maxDoc)
Returns a
Bits representing all documents from dv that have a value. |
static org.apache.lucene.util.Bits |
docsWithValue(SortedNumericDoubleValues dv,
int maxDoc)
Returns a Bits representing all documents from
dv that have a value. |
static GeoPointValues |
emptyGeoPoint() |
static MultiGeoPointValues |
emptyMultiGeoPoints(int maxDoc)
Return a
SortedNumericDoubleValues that doesn't contain any value. |
static NumericDoubleValues |
emptyNumericDouble()
Return a
NumericDoubleValues that doesn't contain any value. |
static SortedBinaryDocValues |
emptySortedBinary(int maxDoc)
Return a
SortedBinaryDocValues that doesn't contain any value. |
static SortedNumericDoubleValues |
emptySortedNumericDoubles(int maxDoc)
Return a
SortedNumericDoubleValues that doesn't contain any value. |
static boolean |
isMultiValued(MultiGeoPointValues values)
Returns whether the provided values *might* be multi-valued.
|
static boolean |
isMultiValued(SortedBinaryDocValues values)
Returns whether the provided values *might* be multi-valued.
|
static boolean |
isMultiValued(org.apache.lucene.index.SortedNumericDocValues values)
Returns whether the provided values *might* be multi-valued.
|
static boolean |
isMultiValued(SortedNumericDoubleValues values)
Returns whether the provided values *might* be multi-valued.
|
static boolean |
isMultiValued(org.apache.lucene.index.SortedSetDocValues values)
Returns whether the provided values *might* be multi-valued.
|
static org.apache.lucene.index.RandomAccessOrds |
maybeSlowRandomAccessOrds(org.apache.lucene.index.SortedSetDocValues dv)
If
dv is an instance of RandomAccessOrds , then return
it, otherwise wrap it into a slow wrapper that implements random access. |
static SortedBinaryDocValues |
singleton(org.apache.lucene.index.BinaryDocValues values,
org.apache.lucene.util.Bits docsWithField)
Returns a multi-valued view over the provided
BinaryDocValues . |
static MultiGeoPointValues |
singleton(GeoPointValues values,
org.apache.lucene.util.Bits docsWithField)
Returns a multi-valued view over the provided
GeoPointValues . |
static SortedNumericDoubleValues |
singleton(NumericDoubleValues values,
org.apache.lucene.util.Bits docsWithField)
Returns a multi-valued view over the provided
NumericDoubleValues . |
static SortedNumericDoubleValues |
sortableLongBitsToDoubles(org.apache.lucene.index.SortedNumericDocValues values)
Given a
SortedNumericDocValues , return a SortedNumericDoubleValues
instance that will translate long values to doubles using
NumericUtils.sortableLongToDouble(long) . |
static org.apache.lucene.index.SortedNumericDocValues |
toSortableLongBits(SortedNumericDoubleValues values)
Given a
SortedNumericDoubleValues , return a SortedNumericDocValues
instance that will translate double values to sortable long bits using
NumericUtils.doubleToSortableLong(double) . |
static SortedBinaryDocValues |
toString(MultiGeoPointValues values)
Return a
String representation of the provided values. |
static SortedBinaryDocValues |
toString(org.apache.lucene.index.RandomAccessOrds values)
Return a
String representation of the provided values. |
static SortedBinaryDocValues |
toString(org.apache.lucene.index.SortedNumericDocValues values)
Return a
String representation of the provided values. |
static SortedBinaryDocValues |
toString(SortedNumericDoubleValues values)
Return a
String representation of the provided values. |
static GeoPointValues |
unwrapSingleton(MultiGeoPointValues values)
Returns a single-valued view of the
MultiGeoPointValues ,
if it was previously wrapped with singleton(GeoPointValues, Bits) ,
or null. |
static org.apache.lucene.index.BinaryDocValues |
unwrapSingleton(SortedBinaryDocValues values)
Returns a single-valued view of the
SortedBinaryDocValues ,
if it was previously wrapped with singleton(BinaryDocValues, Bits) ,
or null. |
static NumericDoubleValues |
unwrapSingleton(SortedNumericDoubleValues values)
Returns a single-valued view of the
SortedNumericDoubleValues ,
if it was previously wrapped with DocValues.singleton(NumericDocValues, Bits) ,
or null. |
static org.apache.lucene.util.Bits |
unwrapSingletonBits(MultiGeoPointValues values)
Returns the documents with a value for the
MultiGeoPointValues ,
if it was previously wrapped with singleton(GeoPointValues, Bits) ,
or null. |
static org.apache.lucene.util.Bits |
unwrapSingletonBits(SortedBinaryDocValues values)
Returns the documents with a value for the
SortedBinaryDocValues ,
if it was previously wrapped with singleton(BinaryDocValues, Bits) ,
or null. |
static org.apache.lucene.util.Bits |
unwrapSingletonBits(SortedNumericDoubleValues dv)
Returns the documents with a value for the
SortedNumericDoubleValues ,
if it was previously wrapped with singleton(NumericDoubleValues, Bits) ,
or null. |
static FieldData |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static FieldData[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static FieldData[] values()
for (FieldData c : FieldData.values()) System.out.println(c);
public static FieldData valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static SortedBinaryDocValues emptySortedBinary(int maxDoc)
SortedBinaryDocValues
that doesn't contain any value.public static NumericDoubleValues emptyNumericDouble()
NumericDoubleValues
that doesn't contain any value.public static SortedNumericDoubleValues emptySortedNumericDoubles(int maxDoc)
SortedNumericDoubleValues
that doesn't contain any value.public static GeoPointValues emptyGeoPoint()
public static MultiGeoPointValues emptyMultiGeoPoints(int maxDoc)
SortedNumericDoubleValues
that doesn't contain any value.public static org.apache.lucene.util.Bits docsWithValue(SortedBinaryDocValues dv, int maxDoc)
Bits
representing all documents from dv
that have a value.public static org.apache.lucene.util.Bits docsWithValue(MultiGeoPointValues dv, int maxDoc)
dv
that have a value.public static org.apache.lucene.util.Bits docsWithValue(SortedNumericDoubleValues dv, int maxDoc)
dv
that have a value.public static org.apache.lucene.index.SortedNumericDocValues toSortableLongBits(SortedNumericDoubleValues values)
SortedNumericDoubleValues
, return a SortedNumericDocValues
instance that will translate double values to sortable long bits using
NumericUtils.doubleToSortableLong(double)
.public static SortedNumericDoubleValues sortableLongBitsToDoubles(org.apache.lucene.index.SortedNumericDocValues values)
SortedNumericDocValues
, return a SortedNumericDoubleValues
instance that will translate long values to doubles using
NumericUtils.sortableLongToDouble(long)
.public static SortedNumericDoubleValues castToDouble(org.apache.lucene.index.SortedNumericDocValues values)
SortedNumericDocValues
instance to cast all values to doubles.public static org.apache.lucene.index.SortedNumericDocValues castToLong(SortedNumericDoubleValues values)
SortedNumericDoubleValues
instance to cast all values to longs.public static SortedNumericDoubleValues singleton(NumericDoubleValues values, org.apache.lucene.util.Bits docsWithField)
NumericDoubleValues
.public static NumericDoubleValues unwrapSingleton(SortedNumericDoubleValues values)
SortedNumericDoubleValues
,
if it was previously wrapped with DocValues.singleton(NumericDocValues, Bits)
,
or null.DocValues.unwrapSingletonBits(SortedNumericDocValues)
public static org.apache.lucene.util.Bits unwrapSingletonBits(SortedNumericDoubleValues dv)
SortedNumericDoubleValues
,
if it was previously wrapped with singleton(NumericDoubleValues, Bits)
,
or null.public static MultiGeoPointValues singleton(GeoPointValues values, org.apache.lucene.util.Bits docsWithField)
GeoPointValues
.public static GeoPointValues unwrapSingleton(MultiGeoPointValues values)
MultiGeoPointValues
,
if it was previously wrapped with singleton(GeoPointValues, Bits)
,
or null.unwrapSingletonBits(MultiGeoPointValues)
public static org.apache.lucene.util.Bits unwrapSingletonBits(MultiGeoPointValues values)
MultiGeoPointValues
,
if it was previously wrapped with singleton(GeoPointValues, Bits)
,
or null.public static SortedBinaryDocValues singleton(org.apache.lucene.index.BinaryDocValues values, org.apache.lucene.util.Bits docsWithField)
BinaryDocValues
.public static org.apache.lucene.index.BinaryDocValues unwrapSingleton(SortedBinaryDocValues values)
SortedBinaryDocValues
,
if it was previously wrapped with singleton(BinaryDocValues, Bits)
,
or null.public static org.apache.lucene.util.Bits unwrapSingletonBits(SortedBinaryDocValues values)
SortedBinaryDocValues
,
if it was previously wrapped with singleton(BinaryDocValues, Bits)
,
or null.public static boolean isMultiValued(org.apache.lucene.index.SortedSetDocValues values)
public static boolean isMultiValued(org.apache.lucene.index.SortedNumericDocValues values)
public static boolean isMultiValued(SortedNumericDoubleValues values)
public static boolean isMultiValued(SortedBinaryDocValues values)
public static boolean isMultiValued(MultiGeoPointValues values)
public static SortedBinaryDocValues toString(org.apache.lucene.index.SortedNumericDocValues values)
String
representation of the provided values. That is
typically used for scripts or for the `map` execution mode of terms aggs.
NOTE: this is very slow!public static SortedBinaryDocValues toString(SortedNumericDoubleValues values)
String
representation of the provided values. That is
typically used for scripts or for the `map` execution mode of terms aggs.
NOTE: this is very slow!public static SortedBinaryDocValues toString(org.apache.lucene.index.RandomAccessOrds values)
String
representation of the provided values. That is
typically used for scripts or for the `map` execution mode of terms aggs.
NOTE: this is slow!public static SortedBinaryDocValues toString(MultiGeoPointValues values)
String
representation of the provided values. That is
typically used for scripts or for the `map` execution mode of terms aggs.
NOTE: this is very slow!public static org.apache.lucene.index.RandomAccessOrds maybeSlowRandomAccessOrds(org.apache.lucene.index.SortedSetDocValues dv)
dv
is an instance of RandomAccessOrds
, then return
it, otherwise wrap it into a slow wrapper that implements random access.