org.apache.accumulo.core.file.rfile
Class RelativeKey
java.lang.Object
org.apache.accumulo.core.file.rfile.RelativeKey
- All Implemented Interfaces:
- org.apache.hadoop.io.Writable
public class RelativeKey
- extends Object
- implements org.apache.hadoop.io.Writable
Constructor Summary |
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RelativeKey
public RelativeKey()
- This constructor is used when one needs to read from an input stream
RelativeKey
public RelativeKey(Key prevKey,
Key key)
- This constructor is used when constructing a key for writing to an output stream
setPrevKey
public void setPrevKey(Key pk)
readFields
public void readFields(DataInput in)
throws IOException
- Specified by:
readFields
in interface org.apache.hadoop.io.Writable
- Throws:
IOException
fastSkip
public static RelativeKey.SkippR fastSkip(DataInput in,
Key seekKey,
MutableByteSequence value,
Key prevKey,
Key currKey)
throws IOException
- Throws:
IOException
getKey
public Key getKey()
write
public void write(DataOutput out)
throws IOException
- Specified by:
write
in interface org.apache.hadoop.io.Writable
- Throws:
IOException
Copyright © 2015 Apache Accumulo Project. All rights reserved.