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:
- Comparable<ByteSequence>
public class ArrayByteSequence
- extends ByteSequence
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(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 String toString()
- Overrides:
toString
in class Object
Copyright © 2012 The Apache Software Foundation. All Rights Reserved.