|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.core.persistence.bundle.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 |
NodeId |
readID(java.io.DataInputStream in)
Deserializes a NodeID |
Name |
readIndexedQName(java.io.DataInputStream in)
Deserializes an indexed Name |
short |
readModCount(java.io.DataInputStream in)
Deserializes a mod-count |
PropertyId |
readPropertyId(java.io.DataInputStream in)
Deserializes a PropertyId |
Name |
readQName(java.io.DataInputStream in)
Deserializes a Name |
NodeState |
readState(java.io.DataInputStream in,
NodeId id,
PersistenceManager pMgr)
Deserializes a NodeState from the data input stream. |
NodeReferences |
readState(java.io.DataInputStream in,
NodeReferencesId id,
PersistenceManager pMgr)
Deserializes a NodeReferences from the data input stream. |
UUID |
readUUID(java.io.DataInputStream in)
Deserializes a UUID |
void |
setMinBlobSize(long minBlobSize)
Sets the minimum blob size. |
void |
writeID(java.io.DataOutputStream out,
NodeId id)
Serializes a node id |
void |
writeIndexedQName(java.io.DataOutputStream out,
Name name)
Serializes a indexed Name |
void |
writeModCount(java.io.DataOutputStream out,
short modCount)
Sersializes a mod-count |
void |
writePropertyId(java.io.DataOutputStream out,
PropertyId id)
Serializes a PropertyId |
void |
writeQName(java.io.DataOutputStream out,
Name name)
Serializes a Name |
void |
writeState(java.io.DataOutputStream out,
NodeReferences state)
Serializes a NodeReferences to the data output stream. |
void |
writeState(java.io.DataOutputStream out,
NodeState state)
Serializes a NodeState to the data output stream |
void |
writeUUID(java.io.DataOutputStream out,
java.lang.String uuid)
Serializes a UUID |
void |
writeUUID(java.io.DataOutputStream out,
UUID uuid)
Serializes a UUID |
| 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 NodeReferences readState(java.io.DataInputStream in,
NodeReferencesId id,
PersistenceManager pMgr)
throws java.io.IOException
NodeReferences from the data input stream.
in - the input streamid - the id of the nodereference to deserializepMgr - the persistence manager
java.io.IOException - in an I/O error occurs.
public void writeState(java.io.DataOutputStream out,
NodeReferences state)
throws java.io.IOException
NodeReferences to the data output stream.
out - the output streamstate - the state to write.
java.io.IOException - in an I/O error occurs.
public NodeState readState(java.io.DataInputStream in,
NodeId id,
PersistenceManager pMgr)
throws java.io.IOException
NodeState from the data input stream.
in - the input streaamid - the id of the nodestate to readpMgr - the persistence manager
java.io.IOException - in an I/O error occurs.
public void writeState(java.io.DataOutputStream out,
NodeState state)
throws java.io.IOException
NodeState to the data output stream
out - the output streamstate - the state to write
java.io.IOException - in an I/O error occurs.
public UUID readUUID(java.io.DataInputStream in)
throws java.io.IOException
in - the input stream
java.io.IOException - in an I/O error occurs.
public void writeUUID(java.io.DataOutputStream out,
java.lang.String uuid)
throws java.io.IOException
out - the output streamuuid - the uuid
java.io.IOException - in an I/O error occurs.
public NodeId readID(java.io.DataInputStream in)
throws java.io.IOException
in - the input stream
java.io.IOException - in an I/O error occurs.
public void writeID(java.io.DataOutputStream out,
NodeId id)
throws java.io.IOException
out - the output streamid - the id
java.io.IOException - in an I/O error occurs.
public void writeUUID(java.io.DataOutputStream out,
UUID uuid)
throws java.io.IOException
out - the output streamuuid - the uuid
java.io.IOException - in an I/O error occurs.
public Name readQName(java.io.DataInputStream in)
throws java.io.IOException
in - the input stream
java.io.IOException - in an I/O error occurs.
public short readModCount(java.io.DataInputStream in)
throws java.io.IOException
in - the input stream
java.io.IOException - in an I/O error occurs.
public void writeModCount(java.io.DataOutputStream out,
short modCount)
throws java.io.IOException
out - the output streammodCount - the mod count
java.io.IOException - in an I/O error occurs.
public void writeQName(java.io.DataOutputStream out,
Name name)
throws java.io.IOException
out - the output streamname - the name
java.io.IOException - in an I/O error occurs.
public Name readIndexedQName(java.io.DataInputStream in)
throws java.io.IOException
in - the input stream
java.io.IOException - in an I/O error occurs.
public void writeIndexedQName(java.io.DataOutputStream out,
Name name)
throws java.io.IOException
out - the output streamname - the name
java.io.IOException - in an I/O error occurs.
public void writePropertyId(java.io.DataOutputStream out,
PropertyId id)
throws java.io.IOException
out - the output streamid - the id
java.io.IOException - in an I/O error occurs.
public PropertyId readPropertyId(java.io.DataInputStream in)
throws java.io.IOException
in - the input stream
java.io.IOException - in an I/O error occurs.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||