public class BundleBinding extends Object
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
BundleBinding(ErrorHandling errorHandling,
BLOBStore blobStore,
StringIndex nsIndex,
StringIndex nameIndex,
DataStore dataStore)
Creates a new bundle binding
|
Modifier and Type | Method and Description |
---|---|
BLOBStore |
getBlobStore()
Returns the blob store that is associated 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 |
protected final StringIndex nsIndex
protected final StringIndex nameIndex
protected final BLOBStore blobStore
protected long minBlobSize
protected final ErrorHandling errorHandling
protected final DataStore dataStore
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 storepublic 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 bundleIOException
- if an I/O error occurs.public void writeBundle(OutputStream out, NodePropBundle bundle) throws IOException
NodePropBundle
to a data output streamout
- the output streambundle
- the bundle to serializeIOException
- if an I/O error occurs.Copyright © 2004–2021 The Apache Software Foundation. All rights reserved.