T - Metastore metadata unitpublic abstract class AbstractModify<T> extends Object implements Modify<T>
Modify interface which contains
all boilerplace code for collecting overwrite units and delete operations.
Delete operations metadata types are validated
before adding to the list of pending delete operations.| Modifier | Constructor and Description |
|---|---|
protected |
AbstractModify(MetadataTypeValidator metadataTypeValidator) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
addDelete(Delete delete)
Adds delete operation to the list of pending operations.
|
protected abstract void |
addOverwrite(List<T> units)
Adds overwrite operation to the list of pending operations.
|
Modify<T> |
delete(Delete delete)
Adds delete operation for the Metastore component based on the filter expression and metadata types.
|
Modify<T> |
overwrite(List<T> units)
Adds overwrite operation for the Metastore component.
|
protected AbstractModify(MetadataTypeValidator metadataTypeValidator)
public final Modify<T> overwrite(List<T> units)
Modifypublic final Modify<T> delete(Delete delete)
Modifyprotected abstract void addOverwrite(List<T> units)
units - list of Metastore metadata unitsprotected abstract void addDelete(Delete delete)
delete - Metastore delete operation holderCopyright © 2021 The Apache Software Foundation. All rights reserved.