Record Class Query.IdWithRouting
java.lang.Object
java.lang.Record
org.springframework.data.elasticsearch.core.query.Query.IdWithRouting
- Enclosing interface:
Query
Value class combining an id with a routing value. Used in multi-get requests.
- Since:
- 4.3
- Author:
- Rizwan Idrees, Mohsin Husen, Mark Paluch, Alen Turkovic, Sascha Woo, Christoph Strobl, Farid Azaza, Peter-Josef Meisch, Peer Mueller, vdisk
-
Constructor Summary
ConstructorsConstructorDescriptionIdWithRouting(String id, @Nullable String routing) Creates an instance of aIdWithRoutingrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.@Nullable Stringrouting()Returns the value of theroutingrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
IdWithRouting
-
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
routing
Returns the value of theroutingrecord component.- Returns:
- the value of the
routingrecord component
-