java.lang.Comparablepublic class SequenceFile.Sorter.SegmentDescriptor
extends java.lang.Object
implements java.lang.Comparable
| Constructor | Description |
|---|---|
SegmentDescriptor(long segmentOffset,
long segmentLength,
Path segmentPathName) |
Constructs a segment
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
cleanup() |
The default cleanup.
|
int |
compareTo(java.lang.Object o) |
|
void |
doSync() |
Do the sync checks.
|
boolean |
equals(java.lang.Object o) |
|
DataOutputBuffer |
getKey() |
|
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 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)
preserve - input boolean preserve.public boolean shouldPreserveInput()
public int compareTo(java.lang.Object o)
compareTo in interface java.lang.Comparablepublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean nextRawKey()
throws java.io.IOException
java.io.IOException - raised on errors performing I/O.public int nextRawValue(SequenceFile.ValueBytes rawValue) throws java.io.IOException
rawValue - input ValueBytes rawValue.java.io.IOException - raised on errors performing I/O.public DataOutputBuffer getKey()
public void cleanup()
throws java.io.IOException
java.io.IOException - raised on errors performing I/O.Copyright © 2008–2025 Apache Software Foundation. All rights reserved.