Record Class ColumnMetaData

java.lang.Object
java.lang.Record
dev.hardwood.metadata.ColumnMetaData

public record ColumnMetaData(PhysicalType type, List<Encoding> encodings, List<String> pathInSchema, CompressionCodec codec, long numValues, long totalUncompressedSize, long totalCompressedSize, long dataPageOffset, Long dictionaryPageOffset) extends Record
Metadata for a column chunk.
  • Constructor Details

    • ColumnMetaData

      public ColumnMetaData(PhysicalType type, List<Encoding> encodings, List<String> pathInSchema, CompressionCodec codec, long numValues, long totalUncompressedSize, long totalCompressedSize, long dataPageOffset, Long dictionaryPageOffset)
      Creates an instance of a ColumnMetaData record class.
      Parameters:
      type - the value for the type record component
      encodings - the value for the encodings record component
      pathInSchema - the value for the pathInSchema record component
      codec - the value for the codec record component
      numValues - the value for the numValues record component
      totalUncompressedSize - the value for the totalUncompressedSize record component
      totalCompressedSize - the value for the totalCompressedSize record component
      dataPageOffset - the value for the dataPageOffset record component
      dictionaryPageOffset - the value for the dictionaryPageOffset record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • type

      public PhysicalType type()
      Returns the value of the type record component.
      Returns:
      the value of the type record component
    • encodings

      public List<Encoding> encodings()
      Returns the value of the encodings record component.
      Returns:
      the value of the encodings record component
    • pathInSchema

      public List<String> pathInSchema()
      Returns the value of the pathInSchema record component.
      Returns:
      the value of the pathInSchema record component
    • codec

      public CompressionCodec codec()
      Returns the value of the codec record component.
      Returns:
      the value of the codec record component
    • numValues

      public long numValues()
      Returns the value of the numValues record component.
      Returns:
      the value of the numValues record component
    • totalUncompressedSize

      public long totalUncompressedSize()
      Returns the value of the totalUncompressedSize record component.
      Returns:
      the value of the totalUncompressedSize record component
    • totalCompressedSize

      public long totalCompressedSize()
      Returns the value of the totalCompressedSize record component.
      Returns:
      the value of the totalCompressedSize record component
    • dataPageOffset

      public long dataPageOffset()
      Returns the value of the dataPageOffset record component.
      Returns:
      the value of the dataPageOffset record component
    • dictionaryPageOffset

      public Long dictionaryPageOffset()
      Returns the value of the dictionaryPageOffset record component.
      Returns:
      the value of the dictionaryPageOffset record component