Class RoundingValuesSource
java.lang.Object
org.opensearch.search.aggregations.support.ValuesSource
org.opensearch.search.aggregations.support.ValuesSource.Numeric
org.opensearch.search.aggregations.bucket.composite.RoundingValuesSource
A wrapper for
ValuesSource.Numeric
that uses Rounding
to transform the long values
produced by the underlying source.- Opensearch.internal:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.opensearch.search.aggregations.support.ValuesSource.Numeric
ValuesSource.Numeric.FieldData, ValuesSource.Numeric.Script, ValuesSource.Numeric.WithScript
Nested classes/interfaces inherited from class org.opensearch.search.aggregations.support.ValuesSource
ValuesSource.Bytes, ValuesSource.GeoPoint, ValuesSource.GeoShape, ValuesSource.Numeric, ValuesSource.Range
-
Field Summary
Fields inherited from class org.opensearch.search.aggregations.support.ValuesSource.Numeric
EMPTY
-
Method Summary
Modifier and TypeMethodDescriptionbytesValues
(org.apache.lucene.index.LeafReaderContext context) Get the currentValuesSource.Bytes.WithScript.BytesValues
.doubleValues
(org.apache.lucene.index.LeafReaderContext context) Get the currentSortedNumericDoubleValues
.boolean
Whether the underlying data is big integer or not.boolean
Whether the underlying data is floating-point or not.org.apache.lucene.index.SortedNumericDocValues
longValues
(org.apache.lucene.index.LeafReaderContext context) Get the currentSortedNumericDocValues
.long
round
(long value) Methods inherited from class org.opensearch.search.aggregations.support.ValuesSource.Numeric
docsWithValue, roundingPreparer
Methods inherited from class org.opensearch.search.aggregations.support.ValuesSource
hasGlobalOrdinals, needsScores
-
Method Details
-
isFloatingPoint
public boolean isFloatingPoint()Description copied from class:ValuesSource.Numeric
Whether the underlying data is floating-point or not.- Specified by:
isFloatingPoint
in classValuesSource.Numeric
-
isBigInteger
public boolean isBigInteger()Description copied from class:ValuesSource.Numeric
Whether the underlying data is big integer or not.- Specified by:
isBigInteger
in classValuesSource.Numeric
-
getPreparedRounding
-
getRounding
-
round
public long round(long value) -
longValues
public org.apache.lucene.index.SortedNumericDocValues longValues(org.apache.lucene.index.LeafReaderContext context) throws IOException Description copied from class:ValuesSource.Numeric
Get the currentSortedNumericDocValues
.- Specified by:
longValues
in classValuesSource.Numeric
- Throws:
IOException
-
bytesValues
public SortedBinaryDocValues bytesValues(org.apache.lucene.index.LeafReaderContext context) throws IOException Description copied from class:ValuesSource
Get the currentValuesSource.Bytes.WithScript.BytesValues
.- Specified by:
bytesValues
in classValuesSource
- Throws:
IOException
-
doubleValues
public SortedNumericDoubleValues doubleValues(org.apache.lucene.index.LeafReaderContext context) throws IOException Description copied from class:ValuesSource.Numeric
Get the currentSortedNumericDoubleValues
.- Specified by:
doubleValues
in classValuesSource.Numeric
- Throws:
IOException
-