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
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
ConstructorDescriptionShapeAreaValueSource
(ShapeValuesSource shapeValueSource, org.locationtech.spatial4j.context.SpatialContext ctx, boolean geoArea, double multiplier) -
Method Summary
Modifier and TypeMethodDescriptionboolean
getValues
(LeafReaderContext readerContext, DoubleValues scores) int
hashCode()
boolean
boolean
rewrite
(IndexSearcher searcher) toString()
Methods inherited from class org.apache.lucene.search.DoubleValuesSource
constant, explain, fromDoubleField, fromField, fromFloatField, fromIntField, fromLongField, fromQuery, fromScorer, getSortField, toLongValuesSource
-
Constructor Details
-
ShapeAreaValueSource
public ShapeAreaValueSource(ShapeValuesSource shapeValueSource, org.locationtech.spatial4j.context.SpatialContext ctx, boolean geoArea, double multiplier)
-
-
Method Details
-
toString
- Specified by:
toString
in classDoubleValuesSource
-
getValues
public DoubleValues getValues(LeafReaderContext readerContext, DoubleValues scores) throws IOException - Specified by:
getValues
in classDoubleValuesSource
- Throws:
IOException
-
needsScores
public boolean needsScores()- Specified by:
needsScores
in classDoubleValuesSource
-
isCacheable
-
rewrite
- Specified by:
rewrite
in classDoubleValuesSource
- Throws:
IOException
-
equals
- Specified by:
equals
in classDoubleValuesSource
-
hashCode
public int hashCode()- Specified by:
hashCode
in classDoubleValuesSource
-