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 Summary
Constructors Constructor Description BlockMetaData()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddColumn(ColumnChunkMetaData column)List<ColumnChunkMetaData>getColumns()longgetCompressedSize()intgetOrdinal()StringgetPath()longgetRowCount()longgetStartingPos()longgetTotalByteSize()voidsetOrdinal(int ordinal)voidsetPath(String path)voidsetRowCount(long rowCount)voidsetTotalByteSize(long totalByteSize)StringtoString()
-
-
-
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
-
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
-
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
-
-