public class JSONInsertMessage extends InsertMessage
EventMessage.EventTypeeventType| Constructor and Description |
|---|
JSONInsertMessage()
Default constructor, needed for Jackson.
|
JSONInsertMessage(String server,
String servicePrincipal,
org.apache.hadoop.hive.metastore.api.Table tableObj,
org.apache.hadoop.hive.metastore.api.Partition ptnObj,
boolean replace,
Iterator<String> fileIter,
Long timestamp) |
| Modifier and Type | Method and Description |
|---|---|
String |
getDB()
Getter for the name of the Database on which the Metastore operation is done.
|
Iterable<String> |
getFiles()
Get list of file name and checksum created as a result of this DML operation
|
org.apache.hadoop.hive.metastore.api.Partition |
getPtnObj()
Get the partition object associated with the insert
|
String |
getServer()
Getter for HCatalog Server's URL.
|
String |
getServicePrincipal()
Getter for the Kerberos principal of the HCatalog service.
|
String |
getTable()
Getter for the name of the table being insert into.
|
org.apache.hadoop.hive.metastore.api.Table |
getTableObj()
Get the table object associated with the insert
|
String |
getTableType() |
Long |
getTimestamp()
Getter for the timestamp associated with the operation.
|
boolean |
isReplace()
Getter for the replace flag being insert into/overwrite
|
String |
toString() |
checkValidgetEventTypepublic JSONInsertMessage()
public String getTable()
InsertMessagegetTable in class InsertMessagepublic String getTableType()
getTableType in class InsertMessagepublic String getServer()
EventMessagegetServer in class EventMessagepublic Iterable<String> getFiles()
InsertMessagegetFiles in class InsertMessagepublic String getServicePrincipal()
EventMessagegetServicePrincipal in class EventMessagepublic String getDB()
EventMessagegetDB in class EventMessagepublic Long getTimestamp()
EventMessagegetTimestamp in class EventMessagepublic boolean isReplace()
InsertMessageisReplace in class InsertMessagepublic org.apache.hadoop.hive.metastore.api.Table getTableObj()
throws Exception
InsertMessagegetTableObj in class InsertMessageExceptionpublic org.apache.hadoop.hive.metastore.api.Partition getPtnObj()
throws Exception
InsertMessagegetPtnObj in class InsertMessageExceptionCopyright © 2019 The Apache Software Foundation. All Rights Reserved.