public class SegmentWriter extends Object
| Constructor and Description |
|---|
SegmentWriter(SegmentStore store,
SegmentVersion version,
String wid) |
| Modifier and Type | Method and Description |
|---|---|
void |
dropCache() |
void |
flush() |
SegmentBlob |
writeBlob(org.apache.jackrabbit.oak.api.Blob blob) |
RecordId |
writeList(List<RecordId> list)
Writes a list record containing the given list of record identifiers.
|
SegmentNodeState |
writeNode(org.apache.jackrabbit.oak.spi.state.NodeState state) |
RecordId |
writeProperty(org.apache.jackrabbit.oak.api.PropertyState state) |
SegmentBlob |
writeStream(InputStream stream)
Writes a stream value record.
|
RecordId |
writeString(String string)
Writes a string value record.
|
RecordId |
writeTemplate(Template template) |
public SegmentWriter(SegmentStore store, SegmentVersion version, String wid)
store - store to write toversion - segment version to writewid - id of this writerpublic void flush()
throws IOException
IOExceptionpublic void dropCache()
public RecordId writeList(List<RecordId> list) throws IOException
list - list of record identifiersIOExceptionpublic RecordId writeString(String string) throws IOException
string - string to be writtenIOExceptionpublic SegmentBlob writeBlob(org.apache.jackrabbit.oak.api.Blob blob) throws IOException
IOExceptionpublic SegmentBlob writeStream(InputStream stream) throws IOException
stream - stream to be writtenIOException - if the stream could not be readpublic RecordId writeProperty(org.apache.jackrabbit.oak.api.PropertyState state) throws IOException
IOExceptionpublic RecordId writeTemplate(Template template) throws IOException
IOExceptionpublic SegmentNodeState writeNode(org.apache.jackrabbit.oak.spi.state.NodeState state) throws IOException
IOExceptionCopyright © 2012-2018 The Apache Software Foundation. All Rights Reserved.