Class BlockMetaData

java.lang.Object
org.apache.parquet.hadoop.metadata.BlockMetaData

public class BlockMetaData extends Object
Block metadata stored in the footer and passed in an InputSplit
  • Constructor Details

    • BlockMetaData

      public BlockMetaData()
  • Method Details

    • setPath

      public void setPath(String path)
      Parameters:
      path - the path to the file containing the data. Or null if same file the metadata was found
    • getPath

      public String getPath()
      Returns:
      the path relative to the parent of this file where the data is. Or null if it is in the same file.
    • getRowCount

      public long getRowCount()
      Returns:
      the rowCount
    • setRowCount

      public void setRowCount(long rowCount)
      Parameters:
      rowCount - the rowCount to set
    • getRowIndexOffset

      public long getRowIndexOffset()
      Returns:
      -1 if the rowIndexOffset for the BlockMetaData is unavailable else returns the actual rowIndexOffset
    • setRowIndexOffset

      public void setRowIndexOffset(long rowIndexOffset)
      Parameters:
      rowIndexOffset - the rowIndexOffset to set
    • getTotalByteSize

      public long getTotalByteSize()
      Returns:
      the totalByteSize
    • setTotalByteSize

      public void setTotalByteSize(long totalByteSize)
      Parameters:
      totalByteSize - the totalByteSize to set
    • addColumn

      public void addColumn(ColumnChunkMetaData column)
      Parameters:
      column - the metadata for a column
    • getColumns

      public List<ColumnChunkMetaData> getColumns()
      Returns:
      the metadata for columns
    • getStartingPos

      public long getStartingPos()
      Returns:
      the starting pos of first column
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getCompressedSize

      public long getCompressedSize()
      Returns:
      the compressed size of all columns
    • getOrdinal

      public int getOrdinal()
      Returns:
      row group ordinal
    • setOrdinal

      public void setOrdinal(int ordinal)
      Parameters:
      ordinal - - row group ordinal