public class RelativeKey extends Object implements org.apache.hadoop.io.Writable
Modifier and Type | Class and Description |
---|---|
static class |
RelativeKey.SkippR |
Constructor and Description |
---|
RelativeKey()
This constructor is used when one needs to read from an input stream
|
RelativeKey(Key prevKey,
Key key)
This constructor is used when constructing a key for writing to an output stream
|
Modifier and Type | Method and Description |
---|---|
static RelativeKey.SkippR |
fastSkip(DataInput in,
Key seekKey,
MutableByteSequence value,
Key prevKey,
Key currKey) |
Key |
getKey() |
void |
readFields(DataInput in) |
void |
setPrevKey(Key pk) |
void |
write(DataOutput out) |
public RelativeKey()
public void setPrevKey(Key pk)
public void readFields(DataInput in) throws IOException
readFields
in interface org.apache.hadoop.io.Writable
IOException
public static RelativeKey.SkippR fastSkip(DataInput in, Key seekKey, MutableByteSequence value, Key prevKey, Key currKey) throws IOException
IOException
public Key getKey()
public void write(DataOutput out) throws IOException
write
in interface org.apache.hadoop.io.Writable
IOException
Copyright © 2011–2018 The Apache Software Foundation. All rights reserved.