Class TableHiveInputSplit
- All Implemented Interfaces:
Writable
,InputSplit
,InputSplitWithLocationInfo
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
String[]
long
Get the size of the split, so that the input splits can be sorted by size.String[]
Get the list of nodes by name where the data for the split would be local.getPath()
Returns the HDFS Path associated with this split.int
int
hashCode()
void
readFields
(DataInput in) Deserialize the fields of this object fromin
.toString()
void
write
(DataOutput out) Serialize the fields of this object toout
.Methods inherited from class org.apache.hadoop.mapred.FileSplit
getLocationInfo, getStart
-
Constructor Details
-
TableHiveInputSplit
public TableHiveInputSplit() -
TableHiveInputSplit
-
-
Method Details
-
getPath
Returns the HDFS Path associated with this split. -
getLength
public long getLength()Get the size of the split, so that the input splits can be sorted by size.- Specified by:
getLength
in interfaceInputSplit
- Overrides:
getLength
in classFileSplit
- Returns:
- the number of bytes in the split
-
getLocations
Get the list of nodes by name where the data for the split would be local. The locations do not need to be serialized.- Specified by:
getLocations
in interfaceInputSplit
- Overrides:
getLocations
in classFileSplit
- Returns:
- a new array of the node nodes.
- Throws:
IOException
- if an I/O error occurs
-
write
Serialize the fields of this object toout
.- Specified by:
write
in interfaceWritable
- Overrides:
write
in classFileSplit
- Parameters:
out
-DataOuput
to serialize this object into.- Throws:
IOException
- if an I/O error occurs
-
readFields
Deserialize the fields of this object fromin
.For efficiency, implementations should attempt to re-use storage in the existing object where possible.
- Specified by:
readFields
in interfaceWritable
- Overrides:
readFields
in classFileSplit
- Parameters:
in
-DataInput
to deseriablize this object from.- Throws:
IOException
- if an I/O error occurs
-
equals
-
hashCode
public int hashCode() -
toString
-
getKVStoreName
-
getKVHelperHosts
-
getTableName
-
getQueryBy
public int getQueryBy() -
getWhereClause
-
getSecurityLogin
-
getSecurityCredentials
-
getSecurityTrust
-