Class BlockMetaData
java.lang.Object
org.apache.parquet.hadoop.metadata.BlockMetaData
Block metadata stored in the footer and passed in an InputSplit
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddColumn(ColumnChunkMetaData column) longintgetPath()longlonglonglongvoidsetOrdinal(int ordinal) voidvoidsetRowCount(long rowCount) voidsetRowIndexOffset(long rowIndexOffset) voidsetTotalByteSize(long totalByteSize) toString()
-
Constructor Details
-
BlockMetaData
public BlockMetaData()
-
-
Method Details
-
setPath
- Parameters:
path- the path to the file containing the data. Or null if same file the metadata was found
-
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
BlockMetaDatais 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
- Parameters:
column- the metadata for a column
-
getColumns
- Returns:
- the metadata for columns
-
getStartingPos
public long getStartingPos()- Returns:
- the starting pos of first column
-
toString
-
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
-