Class Metadata_V3.ParquetTableMetadata_v3
java.lang.Object
org.apache.drill.exec.store.parquet.metadata.MetadataBase.ParquetTableMetadataBase
org.apache.drill.exec.store.parquet.metadata.Metadata_V3.ParquetTableMetadata_v3
- Enclosing class:
- Metadata_V3
public static class Metadata_V3.ParquetTableMetadata_v3
extends MetadataBase.ParquetTableMetadataBase
-
Field Summary
Modifier and TypeFieldDescription -
Constructor Summary
ConstructorDescriptionDefault constructor needed for deserialization from Parquet Metadata Cache FilesParquetTableMetadata_v3
(String metadataVersion, String drillVersion) Used for creating the Parquet Metadata cache files and in the process of reading Parquet metadata footersParquetTableMetadata_v3
(String metadataVersion, List<Metadata_V3.ParquetFileMetadata_v3> files, List<org.apache.hadoop.fs.Path> directories, ConcurrentHashMap<Metadata_V3.ColumnTypeMetadata_v3.Key, Metadata_V3.ColumnTypeMetadata_v3> columnTypeInfo, String drillVersion) ParquetTableMetadata_v3
(String metadataVersion, MetadataBase.ParquetTableMetadataBase parquetTable, List<Metadata_V3.ParquetFileMetadata_v3> files, List<org.apache.hadoop.fs.Path> directories, String drillVersion) -
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) getRepetitionLevel
(String[] columnName) boolean
boolean
void
updateRelativePaths
(String baseDir) If directories list and file metadata list contain relative paths, update it to absolute onesMethods inherited from class org.apache.drill.exec.store.parquet.metadata.MetadataBase.ParquetTableMetadataBase
getRepetition
-
Field Details
-
columnTypeInfo
public ConcurrentHashMap<Metadata_V3.ColumnTypeMetadata_v3.Key,Metadata_V3.ColumnTypeMetadata_v3> columnTypeInfo
-
-
Constructor Details
-
ParquetTableMetadata_v3
public ParquetTableMetadata_v3()Default constructor needed for deserialization from Parquet Metadata Cache Files -
ParquetTableMetadata_v3
Used for creating the Parquet Metadata cache files and in the process of reading Parquet metadata footers- Parameters:
metadataVersion
- metadata versiondrillVersion
- apache drill version
-
ParquetTableMetadata_v3
public ParquetTableMetadata_v3(String metadataVersion, MetadataBase.ParquetTableMetadataBase parquetTable, List<Metadata_V3.ParquetFileMetadata_v3> files, List<org.apache.hadoop.fs.Path> directories, String drillVersion) -
ParquetTableMetadata_v3
public ParquetTableMetadata_v3(String metadataVersion, List<Metadata_V3.ParquetFileMetadata_v3> files, List<org.apache.hadoop.fs.Path> directories, ConcurrentHashMap<Metadata_V3.ColumnTypeMetadata_v3.Key, Metadata_V3.ColumnTypeMetadata_v3> columnTypeInfo, String drillVersion)
-
-
Method Details
-
getColumnTypeInfo
-
getDirectories
- Specified by:
getDirectories
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
-
getFiles
- Specified by:
getFiles
in classMetadataBase.ParquetTableMetadataBase
-
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
-
getColumnTypeInfoMap
public ConcurrentHashMap<Metadata_V3.ColumnTypeMetadata_v3.Key,Metadata_V3.ColumnTypeMetadata_v3> getColumnTypeInfoMap() -
getColumnTypeInfoList
- Specified by:
getColumnTypeInfoList
in classMetadataBase.ParquetTableMetadataBase
-