Record Class GEOSEARCH.GeoResult
java.lang.Object
java.lang.Record
org.infinispan.server.resp.commands.geo.GEOSEARCH.GeoResult
- Enclosing class:
GEOSEARCH
public static record GEOSEARCH.GeoResult(byte[] member, double longitude, double latitude, double distanceMeters, double score)
extends Record
Result of a geo search.
- Since:
- 16.2
-
Constructor Summary
ConstructorsConstructorDescriptionGeoResult(byte[] member, double longitude, double latitude, double distanceMeters, double score) Creates an instance of aGeoResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the value of thedistanceMetersrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.doublelatitude()Returns the value of thelatituderecord component.doubleReturns the value of thelongituderecord component.byte[]member()Returns the value of thememberrecord component.doublescore()Returns the value of thescorerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GeoResult
public GeoResult(byte[] member, double longitude, double latitude, double distanceMeters, double score) Creates an instance of aGeoResultrecord class.- Parameters:
member- the value for thememberrecord componentlongitude- the value for thelongituderecord componentlatitude- the value for thelatituderecord componentdistanceMeters- the value for thedistanceMetersrecord componentscore- the value for thescorerecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
member
public byte[] member()Returns the value of thememberrecord component.- Returns:
- the value of the
memberrecord component
-
longitude
public double longitude()Returns the value of thelongituderecord component.- Returns:
- the value of the
longituderecord component
-
latitude
public double latitude()Returns the value of thelatituderecord component.- Returns:
- the value of the
latituderecord component
-
distanceMeters
public double distanceMeters()Returns the value of thedistanceMetersrecord component.- Returns:
- the value of the
distanceMetersrecord component
-
score
public double score()Returns the value of thescorerecord component.- Returns:
- the value of the
scorerecord component
-