java.lang.Object
java.lang.Record
org.elasticsearch.compute.data.BlockUtils.Doc
- Enclosing class:
BlockUtils
Returned by
BlockUtils.toJavaObject(org.elasticsearch.compute.data.Block, int) for "doc" type blocks.-
Constructor Summary
ConstructorsConstructorDescriptionDoc(int shard, int segment, int doc) Creates an instance of aDocrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintdoc()Returns the value of thedocrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intsegment()Returns the value of thesegmentrecord component.intshard()Returns the value of theshardrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Doc
public Doc(int shard, int segment, int doc) Creates an instance of aDocrecord class.- Parameters:
shard- the value for theshardrecord componentsegment- the value for thesegmentrecord componentdoc- the value for thedocrecord 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 with '=='. -
shard
public int shard()Returns the value of theshardrecord component.- Returns:
- the value of the
shardrecord component
-
segment
public int segment()Returns the value of thesegmentrecord component.- Returns:
- the value of the
segmentrecord component
-
doc
public int doc()Returns the value of thedocrecord component.- Returns:
- the value of the
docrecord component
-