Interface Read<T>
- Type Parameters:
T
- component unit type
- All Known Implementing Classes:
AbstractRead
,IcebergRead
,MongoRead
,RdbmsRead
public interface Read<T>
Drill Metastore Read interface contains methods to be implemented in order
to provide read functionality from the Metastore component.
-
Method Summary
Modifier and TypeMethodDescriptioncolumns
(List<MetastoreColumn> columns) Provides list of columns to be read from Metastore component.columns
(MetastoreColumn... columns) execute()
Executes read operation from Metastore component, returns obtained result in a form of list of component units which later can be transformed into suitable format.filter
(FilterExpression filter) Provides filter expression by which metastore component data will be filtered.metadataType
(MetadataType... metadataType) metadataTypes
(Set<MetadataType> metadataTypes) Provides set of metadata types to be read.
-
Method Details
-
metadataTypes
Provides set of metadata types to be read. Note: providing at least one metadata type is required. If all metadata types should be read,MetadataType.ALL
can be passed.- Parameters:
metadataTypes
- set of metadata types- Returns:
- current instance of Read interface implementation
-
metadataType
-
filter
Provides filter expression by which metastore component data will be filtered. If filter expression is not indicated, all Metastore component data will be read.- Parameters:
filter
- filter expression- Returns:
- current instance of Read interface implementation
-
columns
Provides list of columns to be read from Metastore component. If no columns are indicated, all columns will be read. Depending on Metastore component implementation, providing list of columns to be read, can improve retrieval performance.- Parameters:
columns
- list of columns to be read from Metastore component- Returns:
- current instance of Read interface implementation
-
columns
-
execute
Executes read operation from Metastore component, returns obtained result in a form of list of component units which later can be transformed into suitable format.- Returns:
- list of component units
-