org.apache.accumulo.core.data
Class ArrayByteSequence

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

public class ArrayByteSequence
extends ByteSequence


Field Summary
protected  byte[] data
           
protected  int length
           
protected  int offset
           
 
Constructor Summary
ArrayByteSequence(byte[] data)
           
ArrayByteSequence(byte[] data, int offset, int length)
           
ArrayByteSequence(String s)
           
 
Method Summary
 byte byteAt(int i)
           
 byte[] getBackingArray()
           
 boolean isBackedByArray()
           
 int length()
           
 int offset()
           
 ByteSequence subSequence(int start, int end)
           
 byte[] toArray()
           
 String toString()
           
 
Methods inherited from class org.apache.accumulo.core.data.ByteSequence
compareBytes, compareTo, equals, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

data

protected byte[] data

offset

protected int offset

length

protected int length
Constructor Detail

ArrayByteSequence

public ArrayByteSequence(byte[] data)

ArrayByteSequence

public ArrayByteSequence(byte[] data,
                         int offset,
                         int length)

ArrayByteSequence

public ArrayByteSequence(String s)
Method Detail

byteAt

public byte byteAt(int i)
Specified by:
byteAt in class ByteSequence

getBackingArray

public byte[] getBackingArray()
Specified by:
getBackingArray in class ByteSequence

isBackedByArray

public boolean isBackedByArray()
Specified by:
isBackedByArray in class ByteSequence

length

public int length()
Specified by:
length in class ByteSequence

offset

public int offset()
Specified by:
offset in class ByteSequence

subSequence

public ByteSequence subSequence(int start,
                                int end)
Specified by:
subSequence in class ByteSequence

toArray

public byte[] toArray()
Specified by:
toArray in class ByteSequence

toString

public String toString()
Overrides:
toString in class Object


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