|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hcatalog.mapreduce.HCatTableInfo
public class HCatTableInfo
HCatTableInfo - class to communicate table information to HCatInputFormat
and HCatOutputFormat
Nested Class Summary | |
---|---|
static class |
HCatTableInfo.TableInfoType
|
Method Summary | |
---|---|
java.lang.String |
getDatabaseName()
Gets the value of dbName |
java.util.List<java.lang.String> |
getDynamicPartitioningKeys()
|
java.lang.String |
getFilter()
Gets the value of partition filter |
static HCatTableInfo |
getInputTableInfo(java.lang.String serverUri,
java.lang.String serverKerberosPrincipal,
java.lang.String dbName,
java.lang.String tableName)
Initializes a new HCatTableInfo instance to be used with HCatInputFormat
for reading data from a table. |
static HCatTableInfo |
getInputTableInfo(java.lang.String serverUri,
java.lang.String serverKerberosPrincipal,
java.lang.String dbName,
java.lang.String tableName,
java.lang.String filter)
Initializes a new HCatTableInfo instance to be used with HCatInputFormat
for reading data from a table. |
JobInfo |
getJobInfo()
Gets the value of job info |
static HCatTableInfo |
getOutputTableInfo(java.lang.String serverUri,
java.lang.String serverKerberosPrincipal,
java.lang.String dbName,
java.lang.String tableName,
java.util.Map<java.lang.String,java.lang.String> partitionValues)
Initializes a new HCatTableInfo instance to be used with HCatOutputFormat
for writing data from a table. |
java.lang.String |
getPartitionPredicates()
Gets the value of partitionPredicates |
java.util.Map<java.lang.String,java.lang.String> |
getPartitionValues()
Gets the value of partitionValues |
java.lang.String |
getServerKerberosPrincipal()
|
java.lang.String |
getServerUri()
Gets the value of serverUri |
java.lang.String |
getTableName()
Gets the value of tableName |
HCatTableInfo.TableInfoType |
getTableType()
|
int |
hashCode()
|
boolean |
isDynamicPartitioningUsed()
Returns whether or not Dynamic Partitioning is used |
void |
setDynamicPartitioningKeys(java.util.List<java.lang.String> dynamicPartitioningKeys)
Sets the list of dynamic partitioning keys used for outputting without specifying all the keys |
void |
setJobInfo(JobInfo jobInfo)
Sets the value of jobInfo |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static HCatTableInfo getInputTableInfo(java.lang.String serverUri, java.lang.String serverKerberosPrincipal, java.lang.String dbName, java.lang.String tableName)
HCatInputFormat
for reading data from a table.
serverUri
- the Metadata server uriserverKerberosPrincipal
- If the hcat server is configured to
work with hadoop security, the kerberos principal name of the server - else null
The principal name should be of the form:
dbName
- the db nametableName
- the table namepublic static HCatTableInfo getInputTableInfo(java.lang.String serverUri, java.lang.String serverKerberosPrincipal, java.lang.String dbName, java.lang.String tableName, java.lang.String filter)
HCatInputFormat
for reading data from a table.
serverUri
- the Metadata server uriserverKerberosPrincipal
- If the hcat server is configured to
work with hadoop security, the kerberos principal name of the server - else null
The principal name should be of the form:
dbName
- the db nametableName
- the table namefilter
- the partition filterpublic static HCatTableInfo getOutputTableInfo(java.lang.String serverUri, java.lang.String serverKerberosPrincipal, java.lang.String dbName, java.lang.String tableName, java.util.Map<java.lang.String,java.lang.String> partitionValues)
HCatOutputFormat
for writing data from a table.
serverUri
- the Metadata server uriserverKerberosPrincipal
- If the hcat server is configured to
work with hadoop security, the kerberos principal name of the server - else null
The principal name should be of the form:
dbName
- the db nametableName
- the table namepartitionValues
- The partition values to publish to, can be null or empty Map to
indicate write to a unpartitioned table. For partitioned tables, this map should
contain keys for all partition columns with corresponding values.public java.lang.String getServerUri()
public java.lang.String getDatabaseName()
public java.lang.String getTableName()
public java.lang.String getPartitionPredicates()
public java.util.Map<java.lang.String,java.lang.String> getPartitionValues()
public JobInfo getJobInfo()
public void setJobInfo(JobInfo jobInfo)
jobInfo
- the jobInfo to setpublic HCatTableInfo.TableInfoType getTableType()
public java.lang.String getFilter()
public java.lang.String getServerKerberosPrincipal()
public boolean isDynamicPartitioningUsed()
public void setDynamicPartitioningKeys(java.util.List<java.lang.String> dynamicPartitioningKeys)
dynamicPartitioningKeys
- public java.util.List<java.lang.String> getDynamicPartitioningKeys()
public int hashCode()
hashCode
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |