org.apache.accumulo.core.data
Class ByteSequence

java.lang.Object
  extended by org.apache.accumulo.core.data.ByteSequence
All Implemented Interfaces:
Comparable<ByteSequence>
Direct Known Subclasses:
ArrayByteSequence

public abstract class ByteSequence
extends Object
implements Comparable<ByteSequence>


Constructor Summary
ByteSequence()
           
 
Method Summary
abstract  byte byteAt(int i)
           
static int compareBytes(ByteSequence bs1, ByteSequence bs2)
           
 int compareTo(ByteSequence obs)
           
 boolean equals(Object o)
           
abstract  byte[] getBackingArray()
           
 int hashCode()
           
abstract  boolean isBackedByArray()
           
abstract  int length()
           
abstract  int offset()
           
abstract  ByteSequence subSequence(int start, int end)
           
abstract  byte[] toArray()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ByteSequence

public ByteSequence()
Method Detail

byteAt

public abstract byte byteAt(int i)

length

public abstract int length()

subSequence

public abstract ByteSequence subSequence(int start,
                                         int end)

toArray

public abstract byte[] toArray()

isBackedByArray

public abstract boolean isBackedByArray()

getBackingArray

public abstract byte[] getBackingArray()

offset

public abstract int offset()

compareBytes

public static int compareBytes(ByteSequence bs1,
                               ByteSequence bs2)

compareTo

public int compareTo(ByteSequence obs)
Specified by:
compareTo in interface Comparable<ByteSequence>

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.