public class JSONCommitTxnMessage extends CommitTxnMessage
EventMessage.EventTypeeventType| Constructor and Description |
|---|
JSONCommitTxnMessage()
Default constructor, needed for Jackson.
|
JSONCommitTxnMessage(String server,
String servicePrincipal,
Long txnid,
Long timestamp) |
| Modifier and Type | Method and Description |
|---|---|
void |
addWriteEventInfo(List<WriteEventInfo> writeEventInfoList) |
List<String> |
getDatabases() |
String |
getDB()
Getter for the name of the Database on which the Metastore operation is done.
|
String |
getFiles(int idx) |
List<String> |
getFilesList() |
Partition |
getPartitionObj(int idx) |
List<String> |
getPartitions() |
String |
getServer()
Getter for HCatalog Server's URL.
|
String |
getServicePrincipal()
Getter for the Kerberos principal of the HCatalog service.
|
Table |
getTableObj(int idx) |
List<String> |
getTables() |
Long |
getTimestamp()
Getter for the timestamp associated with the operation.
|
Long |
getTxnId()
Get the transaction id to be committed.
|
List<Long> |
getWriteIds() |
String |
toString() |
checkValid, getEventTypepublic JSONCommitTxnMessage()
public Long getTxnId()
CommitTxnMessagegetTxnId in class CommitTxnMessagepublic Long getTimestamp()
EventMessagegetTimestamp in class EventMessagepublic String getDB()
EventMessagegetDB in class EventMessagepublic String getServicePrincipal()
EventMessagegetServicePrincipal in class EventMessagepublic String getServer()
EventMessagegetServer in class EventMessagepublic List<Long> getWriteIds()
getWriteIds in class CommitTxnMessagepublic List<String> getDatabases()
getDatabases in class CommitTxnMessagepublic List<String> getTables()
getTables in class CommitTxnMessagepublic List<String> getPartitions()
getPartitions in class CommitTxnMessagepublic Table getTableObj(int idx) throws Exception
getTableObj in class CommitTxnMessageExceptionpublic Partition getPartitionObj(int idx) throws Exception
getPartitionObj in class CommitTxnMessageExceptionpublic String getFiles(int idx)
getFiles in class CommitTxnMessagepublic List<String> getFilesList()
getFilesList in class CommitTxnMessagepublic void addWriteEventInfo(List<WriteEventInfo> writeEventInfoList)
addWriteEventInfo in class CommitTxnMessageCopyright © 2024 The Apache Software Foundation. All rights reserved.