org.apache.accumulo.core.data
Class ArrayByteSequence
java.lang.Object
org.apache.accumulo.core.data.ByteSequence
org.apache.accumulo.core.data.ArrayByteSequence
- All Implemented Interfaces:
- java.lang.Comparable<ByteSequence>
public class ArrayByteSequence
- extends ByteSequence
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
data
protected byte[] data
offset
protected int offset
length
protected int length
ArrayByteSequence
public ArrayByteSequence(byte[] data)
ArrayByteSequence
public ArrayByteSequence(byte[] data,
int offset,
int length)
ArrayByteSequence
public ArrayByteSequence(java.lang.String s)
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 java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2012 The Apache Software Foundation. All Rights Reserved.