|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.hadoop.mapreduce.InputSplit org.apache.cassandra.hadoop.ColumnFamilySplit
public class ColumnFamilySplit
Constructor Summary | |
---|---|
protected |
ColumnFamilySplit()
|
|
ColumnFamilySplit(java.lang.String startToken,
java.lang.String endToken,
java.lang.String[] dataNodes)
|
Method Summary | |
---|---|
java.lang.String |
getEndToken()
|
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.lang.String |
getStartToken()
|
static ColumnFamilySplit |
read(java.io.DataInput in)
|
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 . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ColumnFamilySplit(java.lang.String startToken, java.lang.String endToken, java.lang.String[] dataNodes)
protected ColumnFamilySplit()
Method Detail |
---|
public java.lang.String getStartToken()
public java.lang.String getEndToken()
public long getLength()
org.apache.hadoop.mapreduce.InputSplit
getLength
in class org.apache.hadoop.mapreduce.InputSplit
public java.lang.String[] getLocations()
org.apache.hadoop.mapreduce.InputSplit
getLocations
in class org.apache.hadoop.mapreduce.InputSplit
public void write(java.io.DataOutput out) throws java.io.IOException
org.apache.hadoop.io.Writable
out
.
write
in interface org.apache.hadoop.io.Writable
out
- DataOuput
to serialize this object into.
java.io.IOException
public void readFields(java.io.DataInput in) throws java.io.IOException
org.apache.hadoop.io.Writable
in
.
For efficiency, implementations should attempt to re-use storage in the existing object where possible.
readFields
in interface org.apache.hadoop.io.Writable
in
- DataInput
to deseriablize this object from.
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object
public static ColumnFamilySplit read(java.io.DataInput in) throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |