public class JSONMessageFactory extends MessageFactory
HCAT_SERVER_URL, HCAT_SERVICE_PRINCIPAL, hiveConf| Constructor and Description |
|---|
JSONMessageFactory() |
| Modifier and Type | Method and Description |
|---|---|
AddPartitionMessage |
buildAddPartitionMessage(org.apache.hadoop.hive.metastore.api.Table table,
Iterator<org.apache.hadoop.hive.metastore.api.Partition> partitionsIterator)
Factory method for AddPartitionMessage.
|
AlterPartitionMessage |
buildAlterPartitionMessage(org.apache.hadoop.hive.metastore.api.Table table,
org.apache.hadoop.hive.metastore.api.Partition before,
org.apache.hadoop.hive.metastore.api.Partition after)
Factory method for building AlterPartitionMessage
|
AlterTableMessage |
buildAlterTableMessage(org.apache.hadoop.hive.metastore.api.Table before,
org.apache.hadoop.hive.metastore.api.Table after)
Factory method for AlterTableMessage.
|
CreateDatabaseMessage |
buildCreateDatabaseMessage(org.apache.hadoop.hive.metastore.api.Database db)
Factory method for CreateDatabaseMessage.
|
CreateFunctionMessage |
buildCreateFunctionMessage(org.apache.hadoop.hive.metastore.api.Function fn)
Factory method for CreateFunctionMessage.
|
CreateTableMessage |
buildCreateTableMessage(org.apache.hadoop.hive.metastore.api.Table table)
Factory method for CreateTableMessage.
|
DropDatabaseMessage |
buildDropDatabaseMessage(org.apache.hadoop.hive.metastore.api.Database db)
Factory method for DropDatabaseMessage.
|
DropFunctionMessage |
buildDropFunctionMessage(org.apache.hadoop.hive.metastore.api.Function fn)
Factory method for DropFunctionMessage.
|
DropPartitionMessage |
buildDropPartitionMessage(org.apache.hadoop.hive.metastore.api.Table table,
Iterator<org.apache.hadoop.hive.metastore.api.Partition> partitions)
Factory method for DropPartitionMessage.
|
DropTableMessage |
buildDropTableMessage(org.apache.hadoop.hive.metastore.api.Table table)
Factory method for DropTableMessage.
|
InsertMessage |
buildInsertMessage(String db,
String table,
Map<String,String> partKeyVals,
List<String> files)
Factory method for building insert message
|
InsertMessage |
buildInsertMessage(String db,
org.apache.hadoop.hive.metastore.api.Table table,
Map<String,String> partKeyVals,
List<String> files)
Factory method for building insert message
|
MessageDeserializer |
getDeserializer() |
String |
getMessageFormat()
Getter for message-format.
|
String |
getVersion()
Getter for version-string, corresponding to all constructed messages.
|
getDeserializer, getInstancepublic MessageDeserializer getDeserializer()
getDeserializer in class MessageFactorypublic String getVersion()
MessageFactorygetVersion in class MessageFactorypublic String getMessageFormat()
MessageFactorygetMessageFormat in class MessageFactorypublic CreateDatabaseMessage buildCreateDatabaseMessage(org.apache.hadoop.hive.metastore.api.Database db)
MessageFactorybuildCreateDatabaseMessage in class MessageFactorydb - The Database being added.public DropDatabaseMessage buildDropDatabaseMessage(org.apache.hadoop.hive.metastore.api.Database db)
MessageFactorybuildDropDatabaseMessage in class MessageFactorydb - The Database being dropped.public CreateTableMessage buildCreateTableMessage(org.apache.hadoop.hive.metastore.api.Table table)
MessageFactorybuildCreateTableMessage in class MessageFactorytable - The Table being created.public AlterTableMessage buildAlterTableMessage(org.apache.hadoop.hive.metastore.api.Table before, org.apache.hadoop.hive.metastore.api.Table after)
MessageFactorybuildAlterTableMessage in class MessageFactorybefore - The table before the alterafter - The table after the alterpublic DropTableMessage buildDropTableMessage(org.apache.hadoop.hive.metastore.api.Table table)
MessageFactorybuildDropTableMessage in class MessageFactorytable - The Table being dropped.public AddPartitionMessage buildAddPartitionMessage(org.apache.hadoop.hive.metastore.api.Table table, Iterator<org.apache.hadoop.hive.metastore.api.Partition> partitionsIterator)
MessageFactorybuildAddPartitionMessage in class MessageFactorytable - The Table to which the partitions are added.partitionsIterator - The iterator to set of Partitions being added.public AlterPartitionMessage buildAlterPartitionMessage(org.apache.hadoop.hive.metastore.api.Table table, org.apache.hadoop.hive.metastore.api.Partition before, org.apache.hadoop.hive.metastore.api.Partition after)
MessageFactorybuildAlterPartitionMessage in class MessageFactorytable - The table in which the partition is being alteredbefore - The partition before it was alteredafter - The partition after it was alteredpublic DropPartitionMessage buildDropPartitionMessage(org.apache.hadoop.hive.metastore.api.Table table, Iterator<org.apache.hadoop.hive.metastore.api.Partition> partitions)
MessageFactorybuildDropPartitionMessage in class MessageFactorytable - The Table from which the partition is dropped.partitions - The set of partitions being dropped.public CreateFunctionMessage buildCreateFunctionMessage(org.apache.hadoop.hive.metastore.api.Function fn)
MessageFactorybuildCreateFunctionMessage in class MessageFactoryfn - The Function being added.public DropFunctionMessage buildDropFunctionMessage(org.apache.hadoop.hive.metastore.api.Function fn)
MessageFactorybuildDropFunctionMessage in class MessageFactoryfn - The Function being dropped.public InsertMessage buildInsertMessage(String db, String table, Map<String,String> partKeyVals, List<String> files)
MessageFactorybuildInsertMessage in class MessageFactorydb - Name of the database the insert occurred intable - Name of the table the insert occurred inpartKeyVals - Partition values for the partition that the insert occurred in, may be null
if the insert was done into a non-partitioned tablefiles - List of files created as a result of the insert, may be null.public InsertMessage buildInsertMessage(String db, org.apache.hadoop.hive.metastore.api.Table table, Map<String,String> partKeyVals, List<String> files)
MessageFactorybuildInsertMessage in class MessageFactorydb - Name of the database the insert occurred intable - Table the insert occurred inpartKeyVals - Partition values for the partition that the insert occurred in, may be null
if the insert was done into a non-partitioned tablefiles - List of files created as a result of the insert, may be null.Copyright © 2019 The Apache Software Foundation. All Rights Reserved.