public class SegmentWriter
extends java.lang.Object
| Constructor and Description |
|---|
SegmentWriter(SegmentStore store,
SegmentVersion version,
java.lang.String wid) |
| Modifier and Type | Method and Description |
|---|---|
void |
dropCache() |
void |
flush() |
SegmentBlob |
writeBlob(Blob blob) |
RecordId |
writeList(java.util.List<RecordId> list)
Writes a list record containing the given list of record identifiers.
|
SegmentNodeState |
writeNode(NodeState state) |
RecordId |
writeProperty(PropertyState state) |
SegmentBlob |
writeStream(java.io.InputStream stream)
Writes a stream value record.
|
RecordId |
writeString(java.lang.String string)
Writes a string value record.
|
RecordId |
writeTemplate(Template template) |
public SegmentWriter(SegmentStore store, SegmentVersion version, java.lang.String wid)
store - store to write toversion - segment version to writewid - id of this writerpublic void flush()
throws java.io.IOException
java.io.IOExceptionpublic void dropCache()
public RecordId writeList(java.util.List<RecordId> list) throws java.io.IOException
list - list of record identifiersjava.io.IOExceptionpublic RecordId writeString(java.lang.String string) throws java.io.IOException
string - string to be writtenjava.io.IOExceptionpublic SegmentBlob writeBlob(Blob blob) throws java.io.IOException
java.io.IOExceptionpublic SegmentBlob writeStream(java.io.InputStream stream) throws java.io.IOException
stream - stream to be writtenjava.io.IOException - if the stream could not be readpublic RecordId writeProperty(PropertyState state) throws java.io.IOException
java.io.IOExceptionpublic RecordId writeTemplate(Template template) throws java.io.IOException
java.io.IOExceptionpublic SegmentNodeState writeNode(NodeState state) throws java.io.IOException
java.io.IOException"Copyright © 2010 - 2018 Adobe Systems Incorporated. All Rights Reserved"