public interface SegmentStore
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
containsSegment(SegmentId id)
Checks whether the identified segment exists in this store.
|
void |
gc()
Triggers removal of segments that are no longer referenceable.
|
org.apache.jackrabbit.oak.spi.blob.BlobStore |
getBlobStore()
Returns the external BlobStore (if configured) with this store
|
SegmentNodeState |
getHead()
Returns the head state.
|
SegmentTracker |
getTracker() |
org.apache.jackrabbit.oak.api.Blob |
readBlob(String reference)
Read a blob from external storage.
|
Segment |
readSegment(SegmentId segmentId)
Reads the identified segment from this store.
|
boolean |
setHead(SegmentNodeState base,
SegmentNodeState head) |
void |
writeSegment(SegmentId id,
byte[] bytes,
int offset,
int length)
Writes the given segment to the segment store.
|
SegmentTracker getTracker()
@Nonnull SegmentNodeState getHead()
boolean setHead(SegmentNodeState base, SegmentNodeState head)
boolean containsSegment(SegmentId id)
id - segment identifiertrue if the segment exists, false otherwise@CheckForNull Segment readSegment(SegmentId segmentId)
segmentId - segment identifierSegmentNotFoundException thrown if not foundvoid writeSegment(SegmentId id, byte[] bytes, int offset, int length) throws IOException
id - segment identifierbytes - byte buffer that contains the raw contents of the segmentoffset - start offset within the byte bufferlength - length of the segmentIOExceptionvoid close()
org.apache.jackrabbit.oak.api.Blob readBlob(String reference)
reference - blob reference@CheckForNull org.apache.jackrabbit.oak.spi.blob.BlobStore getBlobStore()
void gc()
Copyright © 2012-2018 The Apache Software Foundation. All Rights Reserved.