T - Metastore metadata unitpublic abstract class AbstractRead<T> extends Object implements Read<T>
Read interface which contains
all boilerplace code for collecting metadata types, columns and filter condition.
Given metadata types are also validated during execution.| Modifier and Type | Field and Description |
|---|---|
protected List<MetastoreColumn> |
columns |
protected FilterExpression |
filter |
protected Set<MetadataType> |
metadataTypes |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractRead(MetadataTypeValidator metadataTypeValidator) |
| Modifier and Type | Method and Description |
|---|---|
Read<T> |
columns(List<MetastoreColumn> columns)
Provides list of columns to be read from Metastore component.
|
List<T> |
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.
|
Read<T> |
filter(FilterExpression filter)
Provides filter expression by which metastore component data will be filtered.
|
protected abstract List<T> |
internalExecute() |
Read<T> |
metadataTypes(Set<MetadataType> metadataTypes)
Provides set of metadata types to be read.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcolumns, metadataTypeprotected final Set<MetadataType> metadataTypes
protected final List<MetastoreColumn> columns
protected FilterExpression filter
protected AbstractRead(MetadataTypeValidator metadataTypeValidator)
public Read<T> metadataTypes(Set<MetadataType> metadataTypes)
ReadMetadataType.ALL can be passed.metadataTypes in interface Read<T>metadataTypes - set of metadata typespublic Read<T> filter(FilterExpression filter)
Readpublic Read<T> columns(List<MetastoreColumn> columns)
Readpublic final List<T> execute()
ReadCopyright © 2021 The Apache Software Foundation. All rights reserved.