Record Class FrameIndex
java.lang.Object
java.lang.Record
org.elasticsearch.xpack.esql.datasources.spi.FrameIndex
Index of independently decompressible frames within a compressed file.
Used by
IndexedDecompressionCodec to enable random access to
compressed data without scanning the entire file.
Each frame entry describes a contiguous region of compressed data that can be decompressed independently. The decompressed sizes enable the split provider to create splits targeting a specific decompressed data volume.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionFrameIndex(List<FrameIndex.FrameEntry> frames) Creates an instance of aFrameIndexrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.frames()Returns the value of theframesrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
FrameIndex
Creates an instance of aFrameIndexrecord class.- Parameters:
frames- the value for theframesrecord 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). -
frames
Returns the value of theframesrecord component.- Returns:
- the value of the
framesrecord component
-