Class AbstractRead<T>
java.lang.Object
org.apache.drill.metastore.operate.AbstractRead<T>
- Type Parameters:
T
- Metastore metadata unit
- All Implemented Interfaces:
Read<T>
- Direct Known Subclasses:
IcebergRead
,MongoRead
,RdbmsRead
-
Field Summary
Modifier and TypeFieldDescriptionprotected final List<MetastoreColumn>
protected FilterExpression
protected final Set<MetadataType>
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractRead
(MetadataTypeValidator metadataTypeValidator) -
Method Summary
Modifier and TypeMethodDescriptioncolumns
(List<MetastoreColumn> columns) Provides list of columns to be read from Metastore component.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.metadataTypes
(Set<MetadataType> metadataTypes) Provides set of metadata types to be read.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.operate.Read
columns, metadataType
-
Field Details
-
metadataTypes
-
columns
-
filter
-
-
Constructor Details
-
AbstractRead
-
-
Method Details
-
metadataTypes
Description copied from interface:Read
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.- Specified by:
metadataTypes
in interfaceRead<T>
- Parameters:
metadataTypes
- set of metadata types- Returns:
- current instance of Read interface implementation
-
filter
Description copied from interface:Read
Provides filter expression by which metastore component data will be filtered. If filter expression is not indicated, all Metastore component data will be read. -
columns
Description copied from interface:Read
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. -
execute
Description copied from interface:Read
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. -
internalExecute
-