Enum FieldData
- java.lang.Object
-
- java.lang.Enum<FieldData>
-
- org.elasticsearch.index.fielddata.FieldData
-
-
Method Summary
Modifier and Type Method Description static SortedNumericDoubleValuescastToDouble(org.apache.lucene.index.SortedNumericDocValues values)Wrap the providedSortedNumericDocValuesinstance to cast all values to doubles.static org.apache.lucene.index.SortedNumericDocValuescastToLong(SortedNumericDoubleValues values)Wrap the providedSortedNumericDoubleValuesinstance to cast all values to longs.static DocValueBitsdocsWithValue(org.apache.lucene.index.SortedNumericDocValues docValues)Returns aDocValueBitsrepresenting all documents fromdocValuesthat have a value.static DocValueBitsdocsWithValue(org.apache.lucene.index.SortedSetDocValues docValues)Returns aDocValueBitsrepresenting all documents fromdocValuesthat have a value.static DocValueBitsdocsWithValue(MultiGeoPointValues pointValues)Returns aDocValueBitsrepresenting all documents frompointValuesthat have a value.static DocValueBitsdocsWithValue(SortedBinaryDocValues values)Returns aDocValueBitsrepresenting all documents fromvaluesthat have a value.static DocValueBitsdocsWithValue(SortedNumericDoubleValues doubleValues)Returns aDocValueBitsrepresenting all documents fromdoubleValuesthat have a value.static GeoPointValuesemptyGeoPoint()static MultiGeoPointValuesemptyMultiGeoPoints()Return aSortedNumericDoubleValuesthat doesn't contain any value.static NumericDoubleValuesemptyNumericDouble()Return aNumericDoubleValuesthat doesn't contain any value.static SortedBinaryDocValuesemptySortedBinary()Return aSortedBinaryDocValuesthat doesn't contain any value.static SortedNumericDoubleValuesemptySortedNumericDoubles()Return aSortedNumericDoubleValuesthat doesn't contain any value.static booleanisMultiValued(org.apache.lucene.index.SortedSetDocValues values)Returns whether the provided values *might* be multi-valued.static org.apache.lucene.index.NumericDocValuesreplaceMissing(org.apache.lucene.index.NumericDocValues values, long missing)Return aNumericDocValuesinstance that has a value for every document, returns the same value asvaluesif there is a value for the current document andmissingotherwise.static NumericDoubleValuesreplaceMissing(NumericDoubleValues values, double missing)Return aNumericDoubleValuesinstance that has a value for every document, returns the same value asvaluesif there is a value for the current document andmissingotherwise.static SortedBinaryDocValuessingleton(org.apache.lucene.index.BinaryDocValues values)Returns a multi-valued view over the providedBinaryDocValues.static MultiGeoPointValuessingleton(GeoPointValues values)Returns a multi-valued view over the providedGeoPointValues.static SortedNumericDoubleValuessingleton(NumericDoubleValues values)Returns a multi-valued view over the providedNumericDoubleValues.static SortedNumericDoubleValuessortableLongBitsToDoubles(org.apache.lucene.index.SortedNumericDocValues values)Given aSortedNumericDocValues, return aSortedNumericDoubleValuesinstance that will translate long values to doubles usingNumericUtils.sortableLongToDouble(long).static org.apache.lucene.index.SortedNumericDocValuestoSortableLongBits(SortedNumericDoubleValues values)Given aSortedNumericDoubleValues, return aSortedNumericDocValuesinstance that will translate double values to sortable long bits usingNumericUtils.doubleToSortableLong(double).static SortedBinaryDocValuestoString(org.apache.lucene.index.SortedNumericDocValues values)Return aStringrepresentation of the provided values.static SortedBinaryDocValuestoString(org.apache.lucene.index.SortedSetDocValues values)Return aStringrepresentation of the provided values.static SortedBinaryDocValuestoString(MultiGeoPointValues values)Return aStringrepresentation of the provided values.static SortedBinaryDocValuestoString(SortedNumericDoubleValues values)Return aStringrepresentation of the provided values.static GeoPointValuesunwrapSingleton(MultiGeoPointValues values)Returns a single-valued view of theMultiGeoPointValues, if it was previously wrapped withsingleton(GeoPointValues), or null.static org.apache.lucene.index.BinaryDocValuesunwrapSingleton(SortedBinaryDocValues values)Returns a single-valued view of theSortedBinaryDocValues, if it was previously wrapped withsingleton(BinaryDocValues), or null.static NumericDoubleValuesunwrapSingleton(SortedNumericDoubleValues values)Returns a single-valued view of theSortedNumericDoubleValues, if it was previously wrapped withDocValues.singleton(NumericDocValues), or null.static FieldDatavalueOf(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.
-
-
-
Method Detail
-
values
public static FieldData[] values()
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FieldData valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
emptySortedBinary
public static SortedBinaryDocValues emptySortedBinary()
Return aSortedBinaryDocValuesthat doesn't contain any value.
-
emptyNumericDouble
public static NumericDoubleValues emptyNumericDouble()
Return aNumericDoubleValuesthat doesn't contain any value.
-
emptySortedNumericDoubles
public static SortedNumericDoubleValues emptySortedNumericDoubles()
Return aSortedNumericDoubleValuesthat doesn't contain any value.
-
emptyGeoPoint
public static GeoPointValues emptyGeoPoint()
-
emptyMultiGeoPoints
public static MultiGeoPointValues emptyMultiGeoPoints()
Return aSortedNumericDoubleValuesthat doesn't contain any value.
-
docsWithValue
public static DocValueBits docsWithValue(SortedBinaryDocValues values)
Returns aDocValueBitsrepresenting all documents fromvaluesthat have a value.
-
docsWithValue
public static DocValueBits docsWithValue(org.apache.lucene.index.SortedSetDocValues docValues)
Returns aDocValueBitsrepresenting all documents fromdocValuesthat have a value.
-
docsWithValue
public static DocValueBits docsWithValue(MultiGeoPointValues pointValues)
Returns aDocValueBitsrepresenting all documents frompointValuesthat have a value.
-
docsWithValue
public static DocValueBits docsWithValue(SortedNumericDoubleValues doubleValues)
Returns aDocValueBitsrepresenting all documents fromdoubleValuesthat have a value.
-
docsWithValue
public static DocValueBits docsWithValue(org.apache.lucene.index.SortedNumericDocValues docValues)
Returns aDocValueBitsrepresenting all documents fromdocValuesthat have a value.
-
toSortableLongBits
public static org.apache.lucene.index.SortedNumericDocValues toSortableLongBits(SortedNumericDoubleValues values)
Given aSortedNumericDoubleValues, return aSortedNumericDocValuesinstance that will translate double values to sortable long bits usingNumericUtils.doubleToSortableLong(double).
-
sortableLongBitsToDoubles
public static SortedNumericDoubleValues sortableLongBitsToDoubles(org.apache.lucene.index.SortedNumericDocValues values)
Given aSortedNumericDocValues, return aSortedNumericDoubleValuesinstance that will translate long values to doubles usingNumericUtils.sortableLongToDouble(long).
-
castToDouble
public static SortedNumericDoubleValues castToDouble(org.apache.lucene.index.SortedNumericDocValues values)
Wrap the providedSortedNumericDocValuesinstance to cast all values to doubles.
-
castToLong
public static org.apache.lucene.index.SortedNumericDocValues castToLong(SortedNumericDoubleValues values)
Wrap the providedSortedNumericDoubleValuesinstance to cast all values to longs.
-
singleton
public static SortedNumericDoubleValues singleton(NumericDoubleValues values)
Returns a multi-valued view over the providedNumericDoubleValues.
-
unwrapSingleton
public static NumericDoubleValues unwrapSingleton(SortedNumericDoubleValues values)
Returns a single-valued view of theSortedNumericDoubleValues, if it was previously wrapped withDocValues.singleton(NumericDocValues), or null.
-
singleton
public static MultiGeoPointValues singleton(GeoPointValues values)
Returns a multi-valued view over the providedGeoPointValues.
-
unwrapSingleton
public static GeoPointValues unwrapSingleton(MultiGeoPointValues values)
Returns a single-valued view of theMultiGeoPointValues, if it was previously wrapped withsingleton(GeoPointValues), or null.
-
singleton
public static SortedBinaryDocValues singleton(org.apache.lucene.index.BinaryDocValues values)
Returns a multi-valued view over the providedBinaryDocValues.
-
unwrapSingleton
public static org.apache.lucene.index.BinaryDocValues unwrapSingleton(SortedBinaryDocValues values)
Returns a single-valued view of theSortedBinaryDocValues, if it was previously wrapped withsingleton(BinaryDocValues), or null.
-
isMultiValued
public static boolean isMultiValued(org.apache.lucene.index.SortedSetDocValues values)
Returns whether the provided values *might* be multi-valued. There is no guarantee that this method will returnfalsein the single-valued case.
-
toString
public static SortedBinaryDocValues toString(org.apache.lucene.index.SortedNumericDocValues values)
Return aStringrepresentation of the provided values. That is typically used for scripts or for the `map` execution mode of terms aggs. NOTE: this is very slow!
-
toString
public static SortedBinaryDocValues toString(SortedNumericDoubleValues values)
Return aStringrepresentation of the provided values. That is typically used for scripts or for the `map` execution mode of terms aggs. NOTE: this is very slow!
-
toString
public static SortedBinaryDocValues toString(org.apache.lucene.index.SortedSetDocValues values)
Return aStringrepresentation of the provided values. That is typically used for scripts or for the `map` execution mode of terms aggs. NOTE: this is slow!
-
toString
public static SortedBinaryDocValues toString(MultiGeoPointValues values)
Return aStringrepresentation of the provided values. That is typically used for scripts or for the `map` execution mode of terms aggs. NOTE: this is very slow!
-
replaceMissing
public static org.apache.lucene.index.NumericDocValues replaceMissing(org.apache.lucene.index.NumericDocValues values, long missing)Return aNumericDocValuesinstance that has a value for every document, returns the same value asvaluesif there is a value for the current document andmissingotherwise.
-
replaceMissing
public static NumericDoubleValues replaceMissing(NumericDoubleValues values, double missing)
Return aNumericDoubleValuesinstance that has a value for every document, returns the same value asvaluesif there is a value for the current document andmissingotherwise.
-
-