public class PMetaDataImpl extends Object implements PMetaData
PMetaData.Pruner
Constructor and Description |
---|
PMetaDataImpl(int initialCapacity,
ReadOnlyProps props) |
PMetaDataImpl(int initialCapacity,
TimeKeeper timeKeeper,
ReadOnlyProps props) |
Modifier and Type | Method and Description |
---|---|
void |
addFunction(PFunction function) |
void |
addSchema(PSchema schema) |
void |
addTable(PTable table,
long resolvedTime) |
PMetaDataImpl |
clone() |
long |
getAge(PTableRef ref) |
PFunction |
getFunction(PTableKey key) |
PSchema |
getSchema(PTableKey key) |
PTableRef |
getTableRef(PTableKey key) |
Iterator<PTable> |
iterator() |
void |
pruneFunctions(PMetaData.Pruner pruner) |
void |
pruneTables(PMetaData.Pruner pruner) |
void |
removeColumn(PName tenantId,
String tableName,
List<PColumn> columnsToRemove,
long tableTimeStamp,
long tableSeqNum,
long resolvedTime) |
void |
removeFunction(PName tenantId,
String function,
long functionTimeStamp) |
void |
removeSchema(PSchema schema,
long schemaTimeStamp) |
void |
removeTable(PName tenantId,
String tableName,
String parentTableName,
long tableTimeStamp) |
int |
size() |
void |
updateResolvedTimestamp(PTable table,
long resolvedTimestamp) |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public PMetaDataImpl(int initialCapacity, ReadOnlyProps props)
public PMetaDataImpl(int initialCapacity, TimeKeeper timeKeeper, ReadOnlyProps props)
public PMetaDataImpl clone()
public PTableRef getTableRef(PTableKey key) throws TableNotFoundException
getTableRef
in interface PMetaData
TableNotFoundException
public PFunction getFunction(PTableKey key) throws FunctionNotFoundException
getFunction
in interface PMetaData
FunctionNotFoundException
public void updateResolvedTimestamp(PTable table, long resolvedTimestamp) throws SQLException
updateResolvedTimestamp
in interface MetaDataMutated
SQLException
public void addTable(PTable table, long resolvedTime) throws SQLException
addTable
in interface MetaDataMutated
SQLException
public void removeTable(PName tenantId, String tableName, String parentTableName, long tableTimeStamp) throws SQLException
removeTable
in interface MetaDataMutated
SQLException
public void removeColumn(PName tenantId, String tableName, List<PColumn> columnsToRemove, long tableTimeStamp, long tableSeqNum, long resolvedTime) throws SQLException
removeColumn
in interface MetaDataMutated
SQLException
public void pruneTables(PMetaData.Pruner pruner)
pruneTables
in interface PMetaData
public void addFunction(PFunction function) throws SQLException
addFunction
in interface MetaDataMutated
SQLException
public void removeFunction(PName tenantId, String function, long functionTimeStamp) throws SQLException
removeFunction
in interface MetaDataMutated
SQLException
public void pruneFunctions(PMetaData.Pruner pruner)
pruneFunctions
in interface PMetaData
public void addSchema(PSchema schema) throws SQLException
addSchema
in interface MetaDataMutated
SQLException
public PSchema getSchema(PTableKey key) throws SchemaNotFoundException
getSchema
in interface PMetaData
SchemaNotFoundException
public void removeSchema(PSchema schema, long schemaTimeStamp)
removeSchema
in interface MetaDataMutated
Copyright © 2019 Apache Software Foundation. All Rights Reserved.