public class FSTableEvent extends Object implements TableEvent
BootstrapEvent.EventType| Modifier and Type | Method and Description |
|---|---|
org.apache.hadoop.fs.Path |
dataPath() |
BootstrapEvent.EventType |
eventType() |
String |
getDbName() |
MetaData |
getMetaData() |
String |
getTableName() |
org.apache.hadoop.fs.Path |
metadataPath()
Exposing the FileSystem implementation outside which is what it should NOT do.
|
List<AlterTableAddPartitionDesc> |
partitionDescriptions(ImportTableDesc tblDesc) |
List<String> |
partitions(ImportTableDesc tblDesc) |
ReplicationSpec |
replicationSpec() |
boolean |
shouldNotReplicate() |
ImportTableDesc |
tableDesc(String dbName)
To determine if the tableDesc is for an external table,
use
ImportTableDesc.isExternal()
and not ImportTableDesc.tableType() method. |
public String getDbName()
public String getTableName()
public boolean shouldNotReplicate()
shouldNotReplicate in interface TableEventpublic org.apache.hadoop.fs.Path metadataPath()
TableEventmetadataPath in interface TableEventpublic org.apache.hadoop.fs.Path dataPath()
dataPath in interface TableEventpublic MetaData getMetaData()
public ImportTableDesc tableDesc(String dbName) throws SemanticException
ImportTableDesc.isExternal()
and not ImportTableDesc.tableType() method.tableDesc in interface TableEventSemanticExceptionpublic List<AlterTableAddPartitionDesc> partitionDescriptions(ImportTableDesc tblDesc) throws SemanticException
partitionDescriptions in interface TableEventSemanticExceptionpublic List<String> partitions(ImportTableDesc tblDesc) throws SemanticException
partitions in interface TableEventSemanticExceptionpublic ReplicationSpec replicationSpec()
replicationSpec in interface TableEventpublic BootstrapEvent.EventType eventType()
eventType in interface BootstrapEventCopyright © 2024 The Apache Software Foundation. All rights reserved.