Writable, InputSplit, InputSplitWithLocationInfopublic class TableHiveInputSplit extends FileSplit
Note that the Hive infrastructure requires that even though the data associated with instances of this class resides in a table in an Oracle NoSQL Database store rather than an HDFS file, this class still must subclass FileSplit. As a result, a Hadoop HDFS Path must be specified for this class.
Also note that although this InputSplit is based on version 1 of MapReduce (as requied by the Hive infrastructure), it wraps and delegates to a YARN based (MapReduce version 2) InputSplit. This is done because the InputSplit class Oracle NoSQL Database provides to support Hadoop integration is YARN based, and this class wishes to exploit and reuse the functionality already provided by the YARN based InputSplit class.
| Constructor | Description |
|---|---|
TableHiveInputSplit() |
|
TableHiveInputSplit(Path filePath,
TableInputSplit v2Split) |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
equals(java.lang.Object obj) |
|
java.lang.String[] |
getKVHelperHosts() |
|
java.lang.String |
getKVStoreName() |
|
long |
getLength() |
Get the size of the split, so that the input splits can be sorted by
size.
|
java.lang.String[] |
getLocations() |
Get the list of nodes by name where the data for the split would be
local.
|
Path |
getPath() |
Returns the HDFS Path associated with this split.
|
int |
getQueryBy() |
|
PasswordCredentials |
getSecurityCredentials() |
|
java.lang.String |
getSecurityLogin() |
|
java.lang.String |
getSecurityTrust() |
|
java.lang.String |
getTableName() |
|
java.lang.String |
getWhereClause() |
|
int |
hashCode() |
|
void |
readFields(java.io.DataInput in) |
Deserialize the fields of this object from
in. |
java.lang.String |
toString() |
|
void |
write(java.io.DataOutput out) |
Serialize the fields of this object to
out. |
getLocationInfo, getStartpublic TableHiveInputSplit()
public TableHiveInputSplit(Path filePath, TableInputSplit v2Split)
public Path getPath()
public long getLength()
getLength in interface InputSplitgetLength in class FileSplitpublic java.lang.String[] getLocations()
throws java.io.IOException
getLocations in interface InputSplitgetLocations in class FileSplitjava.io.IOException - if an I/O error occurspublic void write(java.io.DataOutput out)
throws java.io.IOException
out.public void readFields(java.io.DataInput in)
throws java.io.IOException
in.
For efficiency, implementations should attempt to re-use storage in the existing object where possible.
readFields in interface WritablereadFields in class FileSplitin - DataInput to deseriablize this object from.java.io.IOException - if an I/O error occurspublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String getKVStoreName()
public java.lang.String[] getKVHelperHosts()
public java.lang.String getTableName()
public int getQueryBy()
public java.lang.String getWhereClause()
public java.lang.String getSecurityLogin()
public PasswordCredentials getSecurityCredentials()
public java.lang.String getSecurityTrust()
Copyright (c) 2011, 2018 Oracle and/or its affiliates. All rights reserved.