Record Class RangeAwareFormatReader.SplitRange
java.lang.Object
java.lang.Record
org.elasticsearch.xpack.esql.datasources.spi.RangeAwareFormatReader.SplitRange
- Enclosing interface:
RangeAwareFormatReader
public static record RangeAwareFormatReader.SplitRange(long offset, long length, Map<String,Object> statistics)
extends Record
A byte range within a file with optional per-range statistics (e.g. per-row-group
Parquet statistics). Statistics use the same
_stats.* key convention as
sourceMetadata for consistency with SourceStatisticsSerializer.-
Constructor Summary
ConstructorsConstructorDescriptionSplitRange(long offset, long length) SplitRange(long offset, long length, Map<String, Object> statistics) Creates an instance of aSplitRangerecord 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.longlength()Returns the value of thelengthrecord component.longoffset()Returns the value of theoffsetrecord component.Returns the value of thestatisticsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SplitRange
Creates an instance of aSplitRangerecord class.- Parameters:
offset- the value for theoffsetrecord componentlength- the value for thelengthrecord componentstatistics- the value for thestatisticsrecord component
-
SplitRange
public SplitRange(long offset, long length)
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
offset
public long offset()Returns the value of theoffsetrecord component.- Returns:
- the value of the
offsetrecord component
-
length
public long length()Returns the value of thelengthrecord component.- Returns:
- the value of the
lengthrecord component
-
statistics
Returns the value of thestatisticsrecord component.- Returns:
- the value of the
statisticsrecord component
-