Class MetadataBase.ParquetTableMetadataBase
java.lang.Object
org.apache.drill.exec.store.parquet.metadata.MetadataBase.ParquetTableMetadataBase
- Direct Known Subclasses:
Metadata_V1.ParquetTableMetadata_v1
,Metadata_V2.ParquetTableMetadata_v2
,Metadata_V3.ParquetTableMetadata_v3
,Metadata_V4.ParquetTableMetadata_v4
- Enclosing class:
- MetadataBase
Basic class for parquet metadata. Inheritors of this class are json serializable structures which contain
different metadata versions for an entire parquet directory structure
If any new code changes affect on the metadata files content, please update metadata version in such manner: Bump up metadata major version if metadata structure is changed. Bump up metadata minor version if only metadata content is changed, but metadata structure is the same.
Note: keep metadata versions synchronized with MetadataVersion.Constants
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract void
assignFiles
(List<? extends MetadataBase.ParquetFileMetadata> newFiles) clone()
abstract List<? extends MetadataBase.ColumnTypeMetadata>
abstract Integer
getDefinitionLevel
(String[] columnName) abstract List<org.apache.hadoop.fs.Path>
abstract String
abstract List<? extends MetadataBase.ParquetFileMetadata>
getFiles()
abstract String
abstract org.apache.parquet.schema.OriginalType
getOriginalType
(String[] columnName) abstract Integer
getPrecision
(String[] columnName) abstract org.apache.parquet.schema.PrimitiveType.PrimitiveTypeName
getPrimitiveType
(String[] columnName) org.apache.parquet.schema.Type.Repetition
getRepetition
(String[] columnName) abstract Integer
getRepetitionLevel
(String[] columnName) abstract Integer
abstract boolean
abstract boolean
-
Constructor Details
-
ParquetTableMetadataBase
public ParquetTableMetadataBase()
-
-
Method Details
-
getDirectories
-
getFiles
-
assignFiles
-
hasColumnMetadata
public abstract boolean hasColumnMetadata() -
getPrimitiveType
public abstract org.apache.parquet.schema.PrimitiveType.PrimitiveTypeName getPrimitiveType(String[] columnName) -
getOriginalType
-
getRepetitionLevel
-
getDefinitionLevel
-
getScale
-
getPrecision
-
isRowGroupPrunable
public abstract boolean isRowGroupPrunable() -
clone
-
getDrillVersion
-
getMetadataVersion
-
getColumnTypeInfoList
-
getRepetition
-