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 void
addColumn(ColumnChunkMetaData column)
List<ColumnChunkMetaData>
getColumns()
long
getCompressedSize()
int
getOrdinal()
String
getPath()
long
getRowCount()
long
getRowIndexOffset()
long
getStartingPos()
long
getTotalByteSize()
void
setOrdinal(int ordinal)
void
setPath(String path)
void
setRowCount(long rowCount)
void
setRowIndexOffset(long rowIndexOffset)
void
setTotalByteSize(long totalByteSize)
String
toString()
-
-
-
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
-
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
-
-