org.apache.accumulo.core.data
Class ByteSequence
java.lang.Object
org.apache.accumulo.core.data.ByteSequence
- All Implemented Interfaces:
- Comparable<ByteSequence>
- Direct Known Subclasses:
- ArrayByteSequence
public abstract class ByteSequence
- extends Object
- implements Comparable<ByteSequence>
ByteSequence
public ByteSequence()
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.