com.cloudera.api.model
Class ApiHiveReplicationResult

java.lang.Object
  extended by com.cloudera.api.model.ApiHiveReplicationResult

public class ApiHiveReplicationResult
extends Object

Detailed information about a Hive replication job.


Constructor Summary
ApiHiveReplicationResult()
           
 
Method Summary
 boolean equals(Object o)
           
 ApiHdfsReplicationResult getDataReplicationResult()
          Result of table data replication, if performed.
 Integer getErrorCount()
          Number of errors detected during replication job.
 List<ApiHiveReplicationError> getErrors()
          List of errors encountered during replication.
 Integer getHiveUDFCount()
          Number of hive UDFs that were successfully replicated.
 List<ApiHiveUDF> getHiveUDFs()
          The list of Impala UDFs successfully replicated.
 Integer getImpalaUDFCount()
          Number of impala UDFs that were successfully replicated.
 List<ApiImpalaUDF> getImpalaUDFs()
          The list of Impala UDFs successfully replicated.
 String getPhase()
          Phase the replication is in.
 String getRunAsUser()
          Name of the of proxy user, if any.
 String getRunOnSourceAsUser()
          Name of the source proxy user, if any.
 Integer getTableCount()
          Number of tables that were successfully replicated.
 List<ApiHiveTable> getTables()
          The list of tables successfully replicated.
 int hashCode()
           
 boolean isDryRun()
          Whether this was a dry run.
 void setDataReplicationResult(ApiHdfsReplicationResult dataReplicationResult)
           
 void setDryRun(boolean dryRun)
           
 void setErrorCount(Integer errorCount)
           
 void setErrors(List<ApiHiveReplicationError> errors)
           
 void setHiveUDFCount(Integer hiveUDFCount)
           
 void setHiveUDFs(List<ApiHiveUDF> hiveUDFs)
           
 void setImpalaUDFCount(Integer impalaUDFCount)
           
 void setImpalaUDFs(List<ApiImpalaUDF> impalaUDFs)
           
 void setPhase(String phase)
           
 void setRunAsUser(String runAsUser)
           
 void setRunOnSourceAsUser(String runOnSourceAsUser)
           
 void setTableCount(Integer tableCount)
           
 void setTables(List<ApiHiveTable> tables)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ApiHiveReplicationResult

public ApiHiveReplicationResult()
Method Detail

getPhase

public String getPhase()
Phase the replication is in.

If the replication job is still active, this will contain a string describing the current phase. This will be one of: EXPORT, DATA or IMPORT, for, respectively, exporting the source metastore information, replicating table data (if configured), and importing metastore information in the target.

This value will not be present if the replication is not active.

Available since API v4.


setPhase

public void setPhase(String phase)

getTableCount

public Integer getTableCount()
Number of tables that were successfully replicated. Available since API v4.


setTableCount

public void setTableCount(Integer tableCount)

getTables

public List<ApiHiveTable> getTables()
The list of tables successfully replicated.

Since API v4, this is only available in the full view.


setTables

public void setTables(List<ApiHiveTable> tables)

getImpalaUDFCount

public Integer getImpalaUDFCount()
Number of impala UDFs that were successfully replicated. Available since API v6.


setImpalaUDFCount

public void setImpalaUDFCount(Integer impalaUDFCount)

getHiveUDFCount

public Integer getHiveUDFCount()
Number of hive UDFs that were successfully replicated. Available since API v14.


setHiveUDFCount

public void setHiveUDFCount(Integer hiveUDFCount)

getImpalaUDFs

public List<ApiImpalaUDF> getImpalaUDFs()
The list of Impala UDFs successfully replicated. Available since API v6 in the full view.


setImpalaUDFs

public void setImpalaUDFs(List<ApiImpalaUDF> impalaUDFs)

getHiveUDFs

public List<ApiHiveUDF> getHiveUDFs()
The list of Impala UDFs successfully replicated. Available since API v6 in the full view.


setHiveUDFs

public void setHiveUDFs(List<ApiHiveUDF> hiveUDFs)

getErrorCount

public Integer getErrorCount()
Number of errors detected during replication job. Available since API v4.


setErrorCount

public void setErrorCount(Integer errorCount)

getErrors

public List<ApiHiveReplicationError> getErrors()
List of errors encountered during replication.

Since API v4, this is only available in the full view.


setErrors

public void setErrors(List<ApiHiveReplicationError> errors)

getDataReplicationResult

public ApiHdfsReplicationResult getDataReplicationResult()
Result of table data replication, if performed.


setDataReplicationResult

public void setDataReplicationResult(ApiHdfsReplicationResult dataReplicationResult)

isDryRun

public boolean isDryRun()
Whether this was a dry run.


setDryRun

public void setDryRun(boolean dryRun)

getRunAsUser

public String getRunAsUser()
Name of the of proxy user, if any. Available since API v11.


setRunAsUser

public void setRunAsUser(String runAsUser)

getRunOnSourceAsUser

public String getRunOnSourceAsUser()
Name of the source proxy user, if any. Available since API v18.


setRunOnSourceAsUser

public void setRunOnSourceAsUser(String runOnSourceAsUser)

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © Cloudera, Inc. Released under Apache License, Version 2.0.