Class MultiGeoPointValues


  • public abstract class MultiGeoPointValues
    extends Object
    A stateful lightweight per document set of GeoPoint values. To iterate over values in a document use the following pattern:
       GeoPointValues values = ..;
       values.setDocId(docId);
       final int numValues = values.count();
       for (int i = 0; i < numValues; i++) {
           GeoPoint value = values.valueAt(i);
           // process value
       }
     
    The set of values associated with a document might contain duplicates and comes in a non-specified order.
    • Constructor Detail

      • MultiGeoPointValues

        protected MultiGeoPointValues()
        Creates a new MultiGeoPointValues instance
    • Method Detail

      • advanceExact

        public abstract boolean advanceExact​(int doc)
                                      throws IOException
        Advance this instance to the given document id
        Returns:
        true if there is a value for this document
        Throws:
        IOException
      • docValueCount

        public abstract int docValueCount()
        Return the number of geo points the current document has.