Package org.apache.lucene.spatial.util
Class ShapeAreaValueSource
- java.lang.Object
-
- org.apache.lucene.search.DoubleValuesSource
-
- org.apache.lucene.spatial.util.ShapeAreaValueSource
-
- All Implemented Interfaces:
SegmentCacheable
public class ShapeAreaValueSource extends DoubleValuesSource
The area of a Shape retrieved from an ShapeValuesSource- See Also:
Shape.getArea(org.locationtech.spatial4j.context.SpatialContext)- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
-
Field Summary
-
Fields inherited from class org.apache.lucene.search.DoubleValuesSource
SCORES
-
-
Constructor Summary
Constructors Constructor Description ShapeAreaValueSource(ShapeValuesSource shapeValueSource, org.locationtech.spatial4j.context.SpatialContext ctx, boolean geoArea, double multiplier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)DoubleValuesgetValues(LeafReaderContext readerContext, DoubleValues scores)inthashCode()booleanisCacheable(LeafReaderContext ctx)booleanneedsScores()DoubleValuesSourcerewrite(IndexSearcher searcher)StringtoString()-
Methods inherited from class org.apache.lucene.search.DoubleValuesSource
constant, explain, fromDoubleField, fromField, fromFloatField, fromIntField, fromLongField, fromQuery, fromScorer, getSortField, similarityToQueryVector, similarityToQueryVector, toLongValuesSource, toSortableLongDoubleValuesSource
-
-
-
-
Constructor Detail
-
ShapeAreaValueSource
public ShapeAreaValueSource(ShapeValuesSource shapeValueSource, org.locationtech.spatial4j.context.SpatialContext ctx, boolean geoArea, double multiplier)
-
-
Method Detail
-
toString
public String toString()
- Specified by:
toStringin classDoubleValuesSource
-
getValues
public DoubleValues getValues(LeafReaderContext readerContext, DoubleValues scores) throws IOException
- Specified by:
getValuesin classDoubleValuesSource- Throws:
IOException
-
needsScores
public boolean needsScores()
- Specified by:
needsScoresin classDoubleValuesSource
-
isCacheable
public boolean isCacheable(LeafReaderContext ctx)
-
rewrite
public DoubleValuesSource rewrite(IndexSearcher searcher) throws IOException
- Specified by:
rewritein classDoubleValuesSource- Throws:
IOException
-
equals
public boolean equals(Object o)
- Specified by:
equalsin classDoubleValuesSource
-
hashCode
public int hashCode()
- Specified by:
hashCodein classDoubleValuesSource
-
-