|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.core.persistence.util.ItemStateBinding
public class ItemStateBinding
This Class implements relatively efficient serialization methods for item states.
| Field Summary | |
|---|---|
protected BLOBStore |
blobStore
the blob store |
protected DataStore |
dataStore
Data store for binary properties. |
protected ErrorHandling |
errorHandling
the error handling |
protected long |
minBlobSize
minimum size of binaries to store in blob store |
protected StringIndex |
nameIndex
the name index |
protected StringIndex |
nsIndex
the namespace index |
static int |
VERSION_1
serialization version 1 |
static int |
VERSION_2
serialization version 2 |
static int |
VERSION_CURRENT
current version |
| Constructor Summary | |
|---|---|
ItemStateBinding(ErrorHandling errorHandling,
BLOBStore blobStore,
StringIndex nsIndex,
StringIndex nameIndex,
DataStore dataStore)
Creates a new item state binding |
|
| Method Summary | |
|---|---|
BLOBStore |
getBlobStore()
Returns the blob store that is assosiated with this binding. |
long |
getMinBlobSize()
Returns the minimum blob size |
BigDecimal |
readDecimal(DataInputStream in)
Deserializes a BigDecimal |
NodeId |
readID(DataInputStream in)
Deserializes a NodeID |
Name |
readIndexedQName(DataInputStream in)
Deserializes an indexed Name |
short |
readModCount(DataInputStream in)
Deserializes a mod-count |
NodeId |
readNodeId(DataInputStream in)
Deserializes a node identifier |
PropertyId |
readPropertyId(DataInputStream in)
Deserializes a PropertyId |
Name |
readQName(DataInputStream in)
Deserializes a Name |
NodeState |
readState(DataInputStream in,
NodeId id,
PersistenceManager pMgr)
Deserializes a NodeState from the data input stream. |
void |
setMinBlobSize(long minBlobSize)
Sets the minimum blob size. |
void |
writeDecimal(DataOutputStream out,
BigDecimal decimal)
Serializes a BigDecimal |
void |
writeID(DataOutputStream out,
NodeId id)
Serializes a node id |
void |
writeIndexedQName(DataOutputStream out,
Name name)
Serializes a indexed Name |
void |
writeModCount(DataOutputStream out,
short modCount)
Sersializes a mod-count |
void |
writeNodeId(DataOutputStream out,
String id)
Serializes a node identifier |
void |
writePropertyId(DataOutputStream out,
PropertyId id)
Serializes a PropertyId |
void |
writeQName(DataOutputStream out,
Name name)
Serializes a Name |
void |
writeState(DataOutputStream out,
NodeState state)
Serializes a NodeState to the data output stream |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int VERSION_1
public static final int VERSION_2
public static final int VERSION_CURRENT
protected final StringIndex nsIndex
protected final StringIndex nameIndex
protected final BLOBStore blobStore
protected long minBlobSize
protected final ErrorHandling errorHandling
protected final DataStore dataStore
| Constructor Detail |
|---|
public ItemStateBinding(ErrorHandling errorHandling,
BLOBStore blobStore,
StringIndex nsIndex,
StringIndex nameIndex,
DataStore dataStore)
errorHandling - the error handing configurationblobStore - the blobstorensIndex - the namespace indexnameIndex - the name indexdataStore - the data store| Method Detail |
|---|
public long getMinBlobSize()
for details.public void setMinBlobSize(long minBlobSize)
minBlobSize - the minimum blob size.public BLOBStore getBlobStore()
public NodeState readState(DataInputStream in,
NodeId id,
PersistenceManager pMgr)
throws IOException
NodeState from the data input stream.
in - the input streaamid - the id of the nodestate to readpMgr - the persistence manager
IOException - in an I/O error occurs.
public void writeState(DataOutputStream out,
NodeState state)
throws IOException
NodeState to the data output stream
out - the output streamstate - the state to write
IOException - in an I/O error occurs.
public NodeId readNodeId(DataInputStream in)
throws IOException
in - the input stream
IOException - in an I/O error occurs.
public void writeNodeId(DataOutputStream out,
String id)
throws IOException
out - the output streamid - the node id
IOException - in an I/O error occurs.
public BigDecimal readDecimal(DataInputStream in)
throws IOException
in - the input stream
IOException - in an I/O error occurs.
public void writeDecimal(DataOutputStream out,
BigDecimal decimal)
throws IOException
out - the output streamdecimal - the decimal number
IOException - in an I/O error occurs.
public NodeId readID(DataInputStream in)
throws IOException
in - the input stream
IOException - in an I/O error occurs.
public void writeID(DataOutputStream out,
NodeId id)
throws IOException
out - the output streamid - the id
IOException - in an I/O error occurs.
public Name readQName(DataInputStream in)
throws IOException
in - the input stream
IOException - in an I/O error occurs.
public short readModCount(DataInputStream in)
throws IOException
in - the input stream
IOException - in an I/O error occurs.
public void writeModCount(DataOutputStream out,
short modCount)
throws IOException
out - the output streammodCount - the mod count
IOException - in an I/O error occurs.
public void writeQName(DataOutputStream out,
Name name)
throws IOException
out - the output streamname - the name
IOException - in an I/O error occurs.
public Name readIndexedQName(DataInputStream in)
throws IOException
in - the input stream
IOException - in an I/O error occurs.
public void writeIndexedQName(DataOutputStream out,
Name name)
throws IOException
out - the output streamname - the name
IOException - in an I/O error occurs.
public void writePropertyId(DataOutputStream out,
PropertyId id)
throws IOException
out - the output streamid - the id
IOException - in an I/O error occurs.
public PropertyId readPropertyId(DataInputStream in)
throws IOException
in - the input stream
IOException - in an I/O error occurs.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||