@InterfaceAudience.Public @InterfaceStability.Evolving public class FileSplitComparable extends Object implements org.apache.hadoop.io.WritableComparable<FileSplitComparable>, Serializable
Modifier and Type | Field and Description |
---|---|
protected String |
filename |
protected Long |
offset |
Constructor and Description |
---|
FileSplitComparable() |
FileSplitComparable(String fileName,
long offset) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(FileSplitComparable other) |
boolean |
equals(Object obj) |
int |
hashCode() |
void |
readFields(DataInput in) |
String |
toString() |
void |
write(DataOutput out) |
public FileSplitComparable()
public FileSplitComparable(String fileName, long offset)
public int compareTo(FileSplitComparable other)
compareTo
in interface Comparable<FileSplitComparable>
public void readFields(DataInput in) throws IOException
readFields
in interface org.apache.hadoop.io.Writable
IOException
public void write(DataOutput out) throws IOException
write
in interface org.apache.hadoop.io.Writable
IOException
Copyright © 2007-2012 The Apache Software Foundation