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.
|
Field Summary |
protected long |
address
|
protected byte[] |
data
|
protected int |
len
|
protected int |
pos
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
address
protected long address
data
protected byte[] data
pos
protected int pos
len
protected int len
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()
hashCode
public int hashCode()
equals
public boolean equals(Value value)
equals
public boolean equals(java.lang.Object obj)
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)
<oXygen/>
XML Editor
provides support for editing and debugging XQuery
expressions against the eXist XML Database.