org.apache.accumulo.core.file.rfile
Class RelativeKey

java.lang.Object
  extended by 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


Nested Class Summary
static class RelativeKey.SkippR
           
 
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
 
Method Summary
static RelativeKey.SkippR fastSkip(DataInput in, Key seekKey, org.apache.accumulo.core.file.rfile.RelativeKey.MByteSequence value, Key prevKey, Key currKey)
           
 Key getKey()
           
 void readFields(DataInput in)
           
 void setPrevKey(Key pk)
           
 void write(DataOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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

Method Detail

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,
                                          org.apache.accumulo.core.file.rfile.RelativeKey.MByteSequence 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 © 2013 Apache Accumulo Project. All Rights Reserved.