Package io.camunda.search.clients.core
Record Class SearchQueryHit<T>
java.lang.Object
java.lang.Record
io.camunda.search.clients.core.SearchQueryHit<T>
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
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.index()Returns the value of theindexrecord component.routing()Returns the value of theroutingrecord component.seqNo()Returns the value of theseqNorecord component.shard()Returns the value of theshardrecord component.Object[]Returns the value of thesortValuesrecord component.source()Returns the value of thesourcerecord component.final StringtoString()Returns a string representation of this record class.version()Returns the value of theversionrecord component.
-
Constructor Details
-
SearchQueryHit
public SearchQueryHit(String id, String index, String shard, String routing, Long seqNo, Long version, T source, Object[] sortValues) Creates an instance of aSearchQueryHitrecord class.- Parameters:
id- the value for theidrecord componentindex- the value for theindexrecord componentshard- the value for theshardrecord componentrouting- the value for theroutingrecord componentseqNo- the value for theseqNorecord componentversion- the value for theversionrecord componentsource- the value for thesourcerecord componentsortValues- the value for thesortValuesrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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
-
index
Returns the value of theindexrecord component.- Returns:
- the value of the
indexrecord component
-
shard
Returns the value of theshardrecord component.- Returns:
- the value of the
shardrecord component
-
routing
Returns the value of theroutingrecord component.- Returns:
- the value of the
routingrecord component
-
seqNo
Returns the value of theseqNorecord component.- Returns:
- the value of the
seqNorecord component
-
version
Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-
source
Returns the value of thesourcerecord component.- Returns:
- the value of the
sourcerecord component
-
sortValues
Returns the value of thesortValuesrecord component.- Returns:
- the value of the
sortValuesrecord component
-