Modifier and Type | Method | 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 DocValueBits |
docsWithValue(org.apache.lucene.index.SortedNumericDocValues docValues) |
Returns a
DocValueBits representing all documents from docValues that have
a value. |
static DocValueBits |
docsWithValue(org.apache.lucene.index.SortedSetDocValues docValues) |
Returns a
DocValueBits representing all documents from docValues
that have a value. |
static DocValueBits |
docsWithValue(MultiGeoPointValues pointValues) |
Returns a
DocValueBits representing all documents from pointValues that have
a value. |
static DocValueBits |
docsWithValue(SortedBinaryDocValues values) |
Returns a
DocValueBits representing all documents from values that have a value. |
static DocValueBits |
docsWithValue(SortedNumericDoubleValues doubleValues) |
Returns a
DocValueBits representing all documents from doubleValues that have a value. |
static GeoPointValues |
emptyGeoPoint() |
|
static MultiGeoPointValues |
emptyMultiGeoPoints() |
Return a
SortedNumericDoubleValues that doesn't contain any value. |
static NumericDoubleValues |
emptyNumericDouble() |
Return a
NumericDoubleValues that doesn't contain any value. |
static SortedBinaryDocValues |
emptySortedBinary() |
Return a
SortedBinaryDocValues that doesn't contain any value. |
static SortedNumericDoubleValues |
emptySortedNumericDoubles() |
Return a
SortedNumericDoubleValues that doesn't contain any value. |
static boolean |
isMultiValued(org.apache.lucene.index.SortedNumericDocValues 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 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(SortedNumericDoubleValues values) |
Returns whether the provided values *might* be multi-valued.
|
static SortedBinaryDocValues |
singleton(org.apache.lucene.index.BinaryDocValues values) |
Returns a multi-valued view over the provided
BinaryDocValues . |
static MultiGeoPointValues |
singleton(GeoPointValues values) |
Returns a multi-valued view over the provided
GeoPointValues . |
static SortedNumericDoubleValues |
singleton(NumericDoubleValues values) |
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(org.apache.lucene.index.SortedNumericDocValues values) |
Return a
String representation of the provided values. |
static SortedBinaryDocValues |
toString(org.apache.lucene.index.SortedSetDocValues values) |
Return a
String representation of the provided values. |
static SortedBinaryDocValues |
toString(MultiGeoPointValues 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) ,
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) ,
or null. |
static NumericDoubleValues |
unwrapSingleton(SortedNumericDoubleValues values) |
Returns a single-valued view of the
SortedNumericDoubleValues ,
if it was previously wrapped with DocValues.singleton(NumericDocValues) ,
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()
SortedBinaryDocValues
that doesn't contain any value.public static NumericDoubleValues emptyNumericDouble()
NumericDoubleValues
that doesn't contain any value.public static SortedNumericDoubleValues emptySortedNumericDoubles()
SortedNumericDoubleValues
that doesn't contain any value.public static GeoPointValues emptyGeoPoint()
public static MultiGeoPointValues emptyMultiGeoPoints()
SortedNumericDoubleValues
that doesn't contain any value.public static DocValueBits docsWithValue(SortedBinaryDocValues values)
DocValueBits
representing all documents from values
that have a value.public static DocValueBits docsWithValue(org.apache.lucene.index.SortedSetDocValues docValues)
DocValueBits
representing all documents from docValues
that have a value.public static DocValueBits docsWithValue(MultiGeoPointValues pointValues)
DocValueBits
representing all documents from pointValues
that have
a value.public static DocValueBits docsWithValue(SortedNumericDoubleValues doubleValues)
DocValueBits
representing all documents from doubleValues
that have a value.public static DocValueBits docsWithValue(org.apache.lucene.index.SortedNumericDocValues docValues)
DocValueBits
representing all documents from docValues
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)
NumericDoubleValues
.public static NumericDoubleValues unwrapSingleton(SortedNumericDoubleValues values)
SortedNumericDoubleValues
,
if it was previously wrapped with DocValues.singleton(NumericDocValues)
,
or null.public static MultiGeoPointValues singleton(GeoPointValues values)
GeoPointValues
.public static GeoPointValues unwrapSingleton(MultiGeoPointValues values)
MultiGeoPointValues
,
if it was previously wrapped with singleton(GeoPointValues)
,
or null.public static SortedBinaryDocValues singleton(org.apache.lucene.index.BinaryDocValues values)
BinaryDocValues
.public static org.apache.lucene.index.BinaryDocValues unwrapSingleton(SortedBinaryDocValues values)
SortedBinaryDocValues
,
if it was previously wrapped with singleton(BinaryDocValues)
,
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.SortedSetDocValues 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!