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