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
-
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 ofReadEntryWithPath
instances 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 ofRowGroupMetadata
instances which provides metadata for specific row group and its columns.org.apache.drill.shaded.guava.com.google.common.collect.Multimap<org.apache.hadoop.fs.Path,
RowGroupMetadata> Returns multimap ofRowGroupMetadata
instances which provides metadata for specific row group and its columns mapped to their locations.org.apache.hadoop.fs.Path
Returns root table path.boolean
Whether 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, throwIfChanged
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:ParquetTableMetadataProvider
Whether metadata cache files are used for table which belongs to current metadata provider.- Specified by:
isUsedMetadataCache
in interfaceParquetTableMetadataProvider
- Returns:
- true if metadata cache files are used
-
getSelectionRoot
public org.apache.hadoop.fs.Path getSelectionRoot()Description copied from interface:ParquetTableMetadataProvider
Returns root table path.- Specified by:
getSelectionRoot
in interfaceParquetTableMetadataProvider
- Returns:
- root path of the table
-
getEntries
Description copied from interface:ParquetMetadataProvider
Returns list ofReadEntryWithPath
instances which represents paths to files to be scanned.- Specified by:
getEntries
in interfaceParquetMetadataProvider
- Returns:
- list of
ReadEntryWithPath
instances whith file paths
-
getRowGroupsMeta
Description copied from interface:ParquetMetadataProvider
Returns list ofRowGroupMetadata
instances which provides metadata for specific row group and its columns.- Specified by:
getRowGroupsMeta
in interfaceParquetMetadataProvider
- Returns:
- list of
RowGroupMetadata
instances
-
getLocations
Description copied from interface:ParquetMetadataProvider
Returns list of file paths which belong to current table.- Specified by:
getLocations
in interfaceParquetMetadataProvider
- Returns:
- list of file paths
-
getRowGroupsMetadataMap
public org.apache.drill.shaded.guava.com.google.common.collect.Multimap<org.apache.hadoop.fs.Path,RowGroupMetadata> getRowGroupsMetadataMap()Description copied from interface:ParquetMetadataProvider
Returns multimap ofRowGroupMetadata
instances which provides metadata for specific row group and its columns mapped to their locations.- Specified by:
getRowGroupsMetadataMap
in interfaceParquetMetadataProvider
- Returns:
- multimap of
RowGroupMetadata
instances
-
getFileSet
Description copied from interface:ParquetMetadataProvider
Returns list of file locations for table.- Specified by:
getFileSet
in interfaceParquetMetadataProvider
- Returns:
- list of file locations for table
-