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
FieldsModifier and TypeFieldDescriptionprotected final List<MetastoreColumn> protected FilterExpressionprotected final Set<MetadataType> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractRead(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, waitMethods 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:ReadProvides set of metadata types to be read. Note: providing at least one metadata type is required. If all metadata types should be read,MetadataType.ALLcan be passed.- Specified by:
metadataTypesin interfaceRead<T>- Parameters:
metadataTypes- set of metadata types- Returns:
- current instance of Read interface implementation
-
filter
Description copied from interface:ReadProvides 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:ReadProvides 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:ReadExecutes 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
-