Class MetastoreParquetTableMetadataProvider
java.lang.Object
org.apache.drill.exec.metastore.store.MetastoreFileTableMetadataProvider
org.apache.drill.exec.metastore.store.parquet.MetastoreParquetTableMetadataProvider
- All Implemented Interfaces:
ParquetMetadataProvider,ParquetTableMetadataProvider,TableMetadataProvider
public class MetastoreParquetTableMetadataProvider
extends MetastoreFileTableMetadataProvider
implements ParquetTableMetadataProvider
Implementation of
TableMetadataProvider which uses Drill Metastore for providing
table metadata for parquet tables.-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class org.apache.drill.exec.metastore.store.MetastoreFileTableMetadataProvider
basicTablesRequests, fallbackToFileMetadata, files, metastoreTableInfo, partitions, paths, schema, segmentsMetadata, statsProvider, tableInfo, tableMetadata, useSchema, useStatistics -
Method Summary
Modifier and TypeMethodDescriptionReturns list ofReadEntryWithPathinstances which represents paths to files to be scanned.Set<org.apache.hadoop.fs.Path> Returns list of file locations for table.List<org.apache.hadoop.fs.Path> Returns list of file paths which belong to current table.Returns list ofRowGroupMetadatainstances which provides metadata for specific row group and its columns.com.google.common.collect.Multimap<org.apache.hadoop.fs.Path, RowGroupMetadata> Returns multimap ofRowGroupMetadatainstances which provides metadata for specific row group and its columns mapped to their locations.org.apache.hadoop.fs.PathReturns root table path.booleanWhether metadata cache files are used for table which belongs to current metadata provider.Methods inherited from class org.apache.drill.exec.metastore.store.MetastoreFileTableMetadataProvider
checkMetadataVersion, getFileMetadata, getFilesForPartition, getFilesMetadataMap, getNonInterestingColumnsMetadata, getPartitionColumns, getPartitionMetadata, getPartitionsMetadata, getSegmentsMetadataMap, getTableMetadata, throwIfChangedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.drill.metastore.metadata.TableMetadataProvider
checkMetadataVersion, getFileMetadata, getFilesForPartition, getFilesMetadataMap, getNonInterestingColumnsMetadata, getPartitionColumns, getPartitionMetadata, getPartitionsMetadata, getSegmentsMetadataMap, getTableMetadata
-
Method Details
-
isUsedMetadataCache
public boolean isUsedMetadataCache()Description copied from interface:ParquetTableMetadataProviderWhether metadata cache files are used for table which belongs to current metadata provider.- Specified by:
isUsedMetadataCachein interfaceParquetTableMetadataProvider- Returns:
- true if metadata cache files are used
-
getSelectionRoot
public org.apache.hadoop.fs.Path getSelectionRoot()Description copied from interface:ParquetTableMetadataProviderReturns root table path.- Specified by:
getSelectionRootin interfaceParquetTableMetadataProvider- Returns:
- root path of the table
-
getEntries
Description copied from interface:ParquetMetadataProviderReturns list ofReadEntryWithPathinstances which represents paths to files to be scanned.- Specified by:
getEntriesin interfaceParquetMetadataProvider- Returns:
- list of
ReadEntryWithPathinstances whith file paths
-
getRowGroupsMeta
Description copied from interface:ParquetMetadataProviderReturns list ofRowGroupMetadatainstances which provides metadata for specific row group and its columns.- Specified by:
getRowGroupsMetain interfaceParquetMetadataProvider- Returns:
- list of
RowGroupMetadatainstances
-
getLocations
Description copied from interface:ParquetMetadataProviderReturns list of file paths which belong to current table.- Specified by:
getLocationsin interfaceParquetMetadataProvider- Returns:
- list of file paths
-
getRowGroupsMetadataMap
public com.google.common.collect.Multimap<org.apache.hadoop.fs.Path,RowGroupMetadata> getRowGroupsMetadataMap()Description copied from interface:ParquetMetadataProviderReturns multimap ofRowGroupMetadatainstances which provides metadata for specific row group and its columns mapped to their locations.- Specified by:
getRowGroupsMetadataMapin interfaceParquetMetadataProvider- Returns:
- multimap of
RowGroupMetadatainstances
-
getFileSet
Description copied from interface:ParquetMetadataProviderReturns list of file locations for table.- Specified by:
getFileSetin interfaceParquetMetadataProvider- Returns:
- list of file locations for table
-