Class Metadata_V4.ParquetTableMetadata_v4
java.lang.Object
org.apache.drill.exec.store.parquet.metadata.MetadataBase.ParquetTableMetadataBase
org.apache.drill.exec.store.parquet.metadata.Metadata_V4.ParquetTableMetadata_v4
- Enclosing class:
- Metadata_V4
public static class Metadata_V4.ParquetTableMetadata_v4
extends MetadataBase.ParquetTableMetadataBase
-
Constructor Summary
ConstructorDescriptionParquetTableMetadata_v4
(String metadataVersion, MetadataBase.ParquetTableMetadataBase parquetTableMetadata, List<Metadata_V4.ParquetFileMetadata_v4> files, List<org.apache.hadoop.fs.Path> directories, String drillVersion, long totalRowCount, boolean allColumnsInteresting) ParquetTableMetadata_v4
(Metadata_V4.MetadataSummary metadataSummary) ParquetTableMetadata_v4
(Metadata_V4.MetadataSummary metadataSummary, Metadata_V4.FileMetadata fileMetadata) -
Method Summary
Modifier and TypeMethodDescriptionvoid
assignFiles
(List<? extends MetadataBase.ParquetFileMetadata> newFiles) clone()
getColumnTypeInfo
(String[] name) List<? extends MetadataBase.ColumnTypeMetadata>
getDefinitionLevel
(String[] columnName) List<org.apache.hadoop.fs.Path>
List<? extends MetadataBase.ParquetFileMetadata>
getFiles()
org.apache.parquet.schema.OriginalType
getOriginalType
(String[] columnName) getPrecision
(String[] columnName) org.apache.parquet.schema.PrimitiveType.PrimitiveTypeName
getPrimitiveType
(String[] columnName) org.apache.parquet.schema.Type.Repetition
getRepetition
(String[] columnName) getRepetitionLevel
(String[] columnName) long
getTotalNullCount
(String[] columnName) long
boolean
boolean
boolean
void
setTotalRowCount
(long totalRowCount) void
updateRelativePaths
(String baseDir) If directories list and file metadata list contain relative paths, update it to absolute ones
-
Constructor Details
-
ParquetTableMetadata_v4
public ParquetTableMetadata_v4() -
ParquetTableMetadata_v4
-
ParquetTableMetadata_v4
public ParquetTableMetadata_v4(Metadata_V4.MetadataSummary metadataSummary, Metadata_V4.FileMetadata fileMetadata) -
ParquetTableMetadata_v4
public ParquetTableMetadata_v4(String metadataVersion, MetadataBase.ParquetTableMetadataBase parquetTableMetadata, List<Metadata_V4.ParquetFileMetadata_v4> files, List<org.apache.hadoop.fs.Path> directories, String drillVersion, long totalRowCount, boolean allColumnsInteresting)
-
-
Method Details
-
getColumnTypeInfo
-
getDirectories
- Specified by:
getDirectories
in classMetadataBase.ParquetTableMetadataBase
-
getFiles
- Specified by:
getFiles
in classMetadataBase.ParquetTableMetadataBase
-
getMetadataVersion
- Specified by:
getMetadataVersion
in classMetadataBase.ParquetTableMetadataBase
-
updateRelativePaths
If directories list and file metadata list contain relative paths, update it to absolute ones- Parameters:
baseDir
- base parent directory
-
assignFiles
- Specified by:
assignFiles
in classMetadataBase.ParquetTableMetadataBase
-
hasColumnMetadata
public boolean hasColumnMetadata()- Specified by:
hasColumnMetadata
in classMetadataBase.ParquetTableMetadataBase
-
getPrimitiveType
public org.apache.parquet.schema.PrimitiveType.PrimitiveTypeName getPrimitiveType(String[] columnName) - Specified by:
getPrimitiveType
in classMetadataBase.ParquetTableMetadataBase
-
getOriginalType
- Specified by:
getOriginalType
in classMetadataBase.ParquetTableMetadataBase
-
getRepetitionLevel
- Specified by:
getRepetitionLevel
in classMetadataBase.ParquetTableMetadataBase
-
getDefinitionLevel
- Specified by:
getDefinitionLevel
in classMetadataBase.ParquetTableMetadataBase
-
getScale
- Specified by:
getScale
in classMetadataBase.ParquetTableMetadataBase
-
getPrecision
- Specified by:
getPrecision
in classMetadataBase.ParquetTableMetadataBase
-
isRowGroupPrunable
public boolean isRowGroupPrunable()- Specified by:
isRowGroupPrunable
in classMetadataBase.ParquetTableMetadataBase
-
clone
- Specified by:
clone
in classMetadataBase.ParquetTableMetadataBase
-
getDrillVersion
- Specified by:
getDrillVersion
in classMetadataBase.ParquetTableMetadataBase
-
getRepetition
- Overrides:
getRepetition
in classMetadataBase.ParquetTableMetadataBase
-
getSummary
-
getTotalRowCount
public long getTotalRowCount() -
getTotalNullCount
-
isAllColumnsInteresting
public boolean isAllColumnsInteresting() -
getColumnTypeInfoMap
public ConcurrentHashMap<Metadata_V4.ColumnTypeMetadata_v4.Key,Metadata_V4.ColumnTypeMetadata_v4> getColumnTypeInfoMap() -
getColumnTypeInfoList
- Specified by:
getColumnTypeInfoList
in classMetadataBase.ParquetTableMetadataBase
-
setTotalRowCount
public void setTotalRowCount(long totalRowCount)
-