Class BlockMetaData


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

      • BlockMetaData

        public BlockMetaData()
    • Method Detail

      • 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
      • getStartingPos

        public long getStartingPos()
        Returns:
        the starting pos of first column
      • 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