public class MetastoreParquetTableMetadataProvider extends MetastoreFileTableMetadataProvider implements ParquetTableMetadataProvider
TableMetadataProvider
which uses Drill Metastore for providing
table metadata for parquet tables.Modifier and Type | Class and Description |
---|---|
static class |
MetastoreParquetTableMetadataProvider.Builder |
basicTablesRequests, fallbackToFileMetadata, files, metastoreTableInfo, partitions, paths, schema, segmentsMetadata, statsProvider, tableInfo, tableMetadata, useSchema, useStatistics
Modifier and Type | Method and Description |
---|---|
List<ReadEntryWithPath> |
getEntries()
Returns list of
ReadEntryWithPath instances which represents paths to files to be scanned. |
Set<org.apache.hadoop.fs.Path> |
getFileSet()
Returns list of file locations for table.
|
List<org.apache.hadoop.fs.Path> |
getLocations()
Returns list of file paths which belong to current table.
|
List<RowGroupMetadata> |
getRowGroupsMeta()
Returns list of
RowGroupMetadata 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> |
getRowGroupsMetadataMap()
Returns multimap of
RowGroupMetadata instances which provides metadata
for specific row group and its columns mapped to their locations. |
org.apache.hadoop.fs.Path |
getSelectionRoot()
Returns root table path.
|
boolean |
isUsedMetadataCache()
Whether metadata cache files are used for table which belongs to current metadata provider.
|
checkMetadataVersion, getFileMetadata, getFilesForPartition, getFilesMetadataMap, getNonInterestingColumnsMetadata, getPartitionColumns, getPartitionMetadata, getPartitionsMetadata, getSegmentsMetadataMap, getTableMetadata, throwIfChanged
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkMetadataVersion, getFileMetadata, getFilesForPartition, getFilesMetadataMap, getNonInterestingColumnsMetadata, getPartitionColumns, getPartitionMetadata, getPartitionsMetadata, getSegmentsMetadataMap, getTableMetadata
public boolean isUsedMetadataCache()
ParquetTableMetadataProvider
isUsedMetadataCache
in interface ParquetTableMetadataProvider
public org.apache.hadoop.fs.Path getSelectionRoot()
ParquetTableMetadataProvider
getSelectionRoot
in interface ParquetTableMetadataProvider
public List<ReadEntryWithPath> getEntries()
ParquetMetadataProvider
ReadEntryWithPath
instances which represents paths to files to be scanned.getEntries
in interface ParquetMetadataProvider
ReadEntryWithPath
instances whith file pathspublic List<RowGroupMetadata> getRowGroupsMeta()
ParquetMetadataProvider
RowGroupMetadata
instances which provides metadata for specific row group and its columns.getRowGroupsMeta
in interface ParquetMetadataProvider
RowGroupMetadata
instancespublic List<org.apache.hadoop.fs.Path> getLocations()
ParquetMetadataProvider
getLocations
in interface ParquetMetadataProvider
public org.apache.drill.shaded.guava.com.google.common.collect.Multimap<org.apache.hadoop.fs.Path,RowGroupMetadata> getRowGroupsMetadataMap()
ParquetMetadataProvider
RowGroupMetadata
instances which provides metadata
for specific row group and its columns mapped to their locations.getRowGroupsMetadataMap
in interface ParquetMetadataProvider
RowGroupMetadata
instancespublic Set<org.apache.hadoop.fs.Path> getFileSet()
ParquetMetadataProvider
getFileSet
in interface ParquetMetadataProvider
Copyright © 1970 The Apache Software Foundation. All rights reserved.