Writablepublic class TableInputSplit extends InputSplit implements Writable
| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String |
EMPTY_STR |
|
static int |
QUERY_BY_INDEX |
|
static int |
QUERY_BY_ONQL_ALL_PARTITIONS |
|
static int |
QUERY_BY_ONQL_SHARDS |
|
static int |
QUERY_BY_ONQL_SINGLE_PARTITION |
|
static int |
QUERY_BY_PRIMARY_ALL_PARTITIONS |
|
static int |
QUERY_BY_PRIMARY_SINGLE_PARTITION |
| Constructor | Description |
|---|---|
TableInputSplit() |
No-arg constructor required by Hadoop semantics.
|
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
equals(java.lang.Object obj) |
|
java.lang.String[] |
getKVHelperHosts() |
Returns a String array with elements of the form,
'<hostname:port>'; where each elment specifies the connection
information for each of store's helper hosts.
|
java.lang.String |
getKVStoreName() |
Returns the name of the store containing the records associated with
this split.
|
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.
|
java.util.List<java.util.Set<java.lang.Integer>> |
getPartitionSets() |
Returns a
List whose elements are Sets of
partitions; whose union is the set of all partitions in the store. |
int |
getQueryBy() |
|
PasswordCredentials |
getSecurityCredentials() |
|
java.lang.String |
getSecurityLogin() |
|
java.lang.String |
getSecurityTrust() |
|
java.util.Set<oracle.kv.impl.topo.RepGroupId> |
getShardSet() |
|
java.lang.String |
getTableName() |
|
java.lang.String |
getWhereClause() |
|
int |
hashCode() |
|
void |
readFields(java.io.DataInput in) |
Deserialize the fields of this object from
in. |
TableInputSplit |
setQueryInfo(int newQueryBy,
java.lang.String whereClause) |
|
java.lang.String |
toString() |
|
void |
write(java.io.DataOutput out) |
Serialize the fields of this object to
out. |
getLocationInfopublic static final int QUERY_BY_PRIMARY_ALL_PARTITIONS
public static final int QUERY_BY_PRIMARY_SINGLE_PARTITION
public static final int QUERY_BY_INDEX
public static final int QUERY_BY_ONQL_ALL_PARTITIONS
public static final int QUERY_BY_ONQL_SINGLE_PARTITION
public static final int QUERY_BY_ONQL_SHARDS
public static final java.lang.String EMPTY_STR
public TableInputSplit()
public long getLength()
getLength in class InputSplitpublic java.lang.String[] getLocations()
getLocations in class InputSplitpublic java.lang.String[] getKVHelperHosts()
public java.lang.String getKVStoreName()
public java.lang.String getTableName()
public java.util.List<java.util.Set<java.lang.Integer>> getPartitionSets()
List whose elements are Sets of
partitions; whose union is the set of all partitions in the store.
Note that this method is declared public so that the
method TableHiveInputSplit.getPartitionSets can delegate
to this method.public TableInputSplit setQueryInfo(int newQueryBy, java.lang.String whereClause)
public int getQueryBy()
public java.lang.String getWhereClause()
public java.util.Set<oracle.kv.impl.topo.RepGroupId> getShardSet()
public java.lang.String getSecurityLogin()
public PasswordCredentials getSecurityCredentials()
public java.lang.String getSecurityTrust()
public 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 Writablein - 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 toString()
toString in class java.lang.ObjectCopyright (c) 2011, 2018 Oracle and/or its affiliates. All rights reserved.