|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jackrabbit.core.persistence.util.BundleBinding
public class BundleBinding
This Class implements 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 |
Constructor Summary | |
---|---|
BundleBinding(ErrorHandling errorHandling,
BLOBStore blobStore,
StringIndex nsIndex,
StringIndex nameIndex,
DataStore dataStore)
Creates a new bundle binding |
Method Summary | |
---|---|
BLOBStore |
getBlobStore()
Returns the blob store that is assosiated with this binding. |
long |
getMinBlobSize()
Returns the minimum blob size |
NodePropBundle |
readBundle(InputStream in,
NodeId id)
Deserializes a NodePropBundle from a data input stream. |
void |
setMinBlobSize(long minBlobSize)
Sets the minimum blob size. |
void |
writeBundle(OutputStream out,
NodePropBundle bundle)
Serializes a NodePropBundle to a data output stream |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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 BundleBinding(ErrorHandling errorHandling, BLOBStore blobStore, StringIndex nsIndex, StringIndex nameIndex, DataStore dataStore)
errorHandling
- the error handlingblobStore
- the blobstore for retrieving blobsnsIndex
- the namespace indexnameIndex
- the name indexdataStore
- the data storeMethod Detail |
---|
public long getMinBlobSize()
for details.
public void setMinBlobSize(long minBlobSize)
minBlobSize
- the minimum blob size.public BLOBStore getBlobStore()
public NodePropBundle readBundle(InputStream in, NodeId id) throws IOException
NodePropBundle
from a data input stream.
in
- the input streamid
- the node id for the new bundle
IOException
- if an I/O error occurs.public void writeBundle(OutputStream out, NodePropBundle bundle) throws IOException
NodePropBundle
to a data output stream
out
- the output streambundle
- the bundle to serialize
IOException
- if an I/O error occurs.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |