public class SequenceFile.Sorter.SegmentDescriptor extends Object implements Comparable
| 构造器和说明 |
|---|
SequenceFile.Sorter.SegmentDescriptor(long segmentOffset,
long segmentLength,
Path segmentPathName)
Constructs a segment
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
cleanup()
The default cleanup.
|
int |
compareTo(Object o) |
void |
doSync()
Do the sync checks
|
boolean |
equals(Object o) |
DataOutputBuffer |
getKey()
Returns the stored rawKey
|
int |
hashCode() |
boolean |
nextRawKey()
Fills up the rawKey object with the key returned by the Reader
|
int |
nextRawValue(SequenceFile.ValueBytes rawValue)
Fills up the passed rawValue with the value corresponding to the key
read earlier
|
void |
preserveInput(boolean preserve)
Whether to delete the files when no longer needed
|
boolean |
shouldPreserveInput() |
public SequenceFile.Sorter.SegmentDescriptor(long segmentOffset,
long segmentLength,
Path segmentPathName)
segmentOffset - the offset of the segment in the filesegmentLength - the length of the segmentsegmentPathName - the path name of the file containing the segmentpublic void doSync()
public void preserveInput(boolean preserve)
public boolean shouldPreserveInput()
public int compareTo(Object o)
compareTo 在接口中 Comparablepublic boolean nextRawKey()
throws IOException
IOExceptionpublic int nextRawValue(SequenceFile.ValueBytes rawValue) throws IOException
rawValue - IOExceptionpublic DataOutputBuffer getKey()
public void cleanup()
throws IOException
IOExceptionCopyright © 2009 The Apache Software Foundation