Module org.elasticsearch.server
Class CellIdSource.CellSingleValue
java.lang.Object
org.apache.lucene.search.DocIdSetIterator
org.apache.lucene.index.NumericDocValues
org.elasticsearch.index.fielddata.AbstractNumericDocValues
org.elasticsearch.search.aggregations.bucket.geogrid.CellIdSource.CellSingleValue
- Enclosing class:
CellIdSource
Class representing the long-encoded grid-cells belonging to
the singleton geo-doc-values.
-
Field Summary
FieldsFields inherited from class org.apache.lucene.search.DocIdSetIterator
NO_MORE_DOCS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract booleanSets the appropriate long-encoded value fortargetinvalue.booleanadvanceExact(int docId) intdocID()longMethods inherited from class org.elasticsearch.index.fielddata.AbstractNumericDocValues
advance, cost, nextDocMethods inherited from class org.apache.lucene.search.DocIdSetIterator
all, empty, range, slowAdvance
-
Field Details
-
precision
protected final int precision -
value
protected long value
-
-
Constructor Details
-
CellSingleValue
-
-
Method Details
-
advanceExact
- Throws:
IOException
-
longValue
- Specified by:
longValuein classorg.apache.lucene.index.NumericDocValues- Throws:
IOException
-
advance
Sets the appropriate long-encoded value fortargetinvalue.- Parameters:
target- the geo-value to encode- Returns:
- true if the value needs to be added, otherwise false.
-
docID
public int docID()- Specified by:
docIDin classorg.apache.lucene.search.DocIdSetIterator
-