Interface MetadataInfoCollector
- All Known Implementing Classes:
FileMetadataInfoCollector
public interface MetadataInfoCollector
Interface for obtaining information about segments, files etc which should be handled in Metastore
when producing incremental analyze.
-
Method Summary
Modifier and TypeMethodDescriptionReturns list of all metadata info instances which should be handled either producing analyze or when fetching from the Metastore.Returns list of files metadata info which should be fetched from the Metastore.Returns list of all metadata info which corresponds to top-level segments and should be removed from the Metastore.org.apache.calcite.rel.core.TableScan
ReturnsTableScan
instance which will be used when produced incremental analyze.Returns list of row groups metadata info which should be fetched from the Metastore.org.apache.drill.shaded.guava.com.google.common.collect.Multimap<Integer,
MetadataInfo> Returns list of segments metadata info which should be fetched from the Metastore.boolean
Returns true if table metadata is outdated.
-
Method Details
-
getRowGroupsInfo
List<MetadataInfo> getRowGroupsInfo()Returns list of row groups metadata info which should be fetched from the Metastore.- Returns:
- list of row groups metadata info
-
getFilesInfo
List<MetadataInfo> getFilesInfo()Returns list of files metadata info which should be fetched from the Metastore.- Returns:
- list of files metadata info
-
getSegmentsInfo
org.apache.drill.shaded.guava.com.google.common.collect.Multimap<Integer,MetadataInfo> getSegmentsInfo()Returns list of segments metadata info which should be fetched from the Metastore.- Returns:
- list of segments metadata info
-
getAllMetaToHandle
List<MetadataInfo> getAllMetaToHandle()Returns list of all metadata info instances which should be handled either producing analyze or when fetching from the Metastore.- Returns:
- list of all metadata info
-
getMetadataToRemove
List<MetadataInfo> getMetadataToRemove()Returns list of all metadata info which corresponds to top-level segments and should be removed from the Metastore.- Returns:
- list of all metadata info which should be removed
-
getPrunedScan
org.apache.calcite.rel.core.TableScan getPrunedScan()ReturnsTableScan
instance which will be used when produced incremental analyze. Table scan will contain minimal selection required for obtaining correct metadata.- Returns:
TableScan
instance
-
isOutdated
boolean isOutdated()Returns true if table metadata is outdated.- Returns:
- true if table metadata is outdated
-