org.exist.storage.btree
Class Value
java.lang.Object
org.exist.storage.btree.Value
- All Implemented Interfaces:
- java.lang.Comparable
- Direct Known Subclasses:
- DocumentKey, ElementValue, NativeBroker.NodeRef
public class Value
- extends java.lang.Object
- implements java.lang.Comparable
Value is the primary base class for all data storing objects.
The content window of Value objects are immutable, but the
underlying byte array is not.
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Value
public Value()
Value
public Value(Value value)
Value
public Value(byte[] data)
Value
public Value(byte[] data,
int pos,
int len)
Value
public Value(java.lang.String data)
setAddress
public void setAddress(long addr)
getAddress
public long getAddress()
getData
public byte[] getData()
- getData retrieves the data being stored by the Value as a byte array.
- Returns:
- The Data
data
public final byte[] data()
start
public final int start()
getLength
public final int getLength()
- getLength retrieves the length of the data being stored by the Value.
- Returns:
- The Value length
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
equals
public boolean equals(Value value)
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
compareTo
public final int compareTo(Value value)
compareTo
public final int compareTo(java.lang.Object obj)
- Specified by:
compareTo
in interface java.lang.Comparable
comparePrefix
public final int comparePrefix(Value value)
startsWith
public final boolean startsWith(Value value)
endsWith
public final boolean endsWith(Value value)
Copyright (C) Wolfgang Meier. All rights reserved.