Class CompactionWriter
- java.lang.Object
-
- org.apache.jackrabbit.oak.segment.file.CompactionWriter
-
public class CompactionWriter extends Object
The CompactionWriter delegates compaction calls to the correctSegmentWriterbased on GCGeneration.
-
-
Constructor Summary
Constructors Constructor Description CompactionWriter(@NotNull SegmentReader reader, @Nullable BlobStore blobStore, @NotNull GCIncrement gcIncrement, @NotNull SegmentWriterFactory segmentWriterFactory)CompactionWriter(@NotNull SegmentReader reader, @Nullable BlobStore blobStore, @NotNull GCGeneration generation, @NotNull SegmentWriter segmentWriter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidflush()@Nullable org.apache.jackrabbit.oak.segment.file.CompactedNodeState.FullyCompactedNodeStategetPreviouslyCompactedState(NodeState nodeState)@NotNull org.apache.jackrabbit.oak.segment.file.CompactedNodeState.FullyCompactedNodeStatewriteFullyCompactedNode(@NotNull NodeState nodeState, @Nullable Buffer stableId)@Nullable org.apache.jackrabbit.oak.segment.file.CompactedNodeState.PartiallyCompactedNodeStatewritePartiallyCompactedNode(@NotNull NodeState nodeState, @Nullable Buffer stableId)
-
-
-
Constructor Detail
-
CompactionWriter
public CompactionWriter(@NotNull @NotNull SegmentReader reader, @Nullable @Nullable BlobStore blobStore, @NotNull @NotNull GCGeneration generation, @NotNull @NotNull SegmentWriter segmentWriter)
-
CompactionWriter
public CompactionWriter(@NotNull @NotNull SegmentReader reader, @Nullable @Nullable BlobStore blobStore, @NotNull @NotNull GCIncrement gcIncrement, @NotNull @NotNull SegmentWriterFactory segmentWriterFactory)
-
-
Method Detail
-
writeFullyCompactedNode
@NotNull public @NotNull org.apache.jackrabbit.oak.segment.file.CompactedNodeState.FullyCompactedNodeState writeFullyCompactedNode(@NotNull @NotNull NodeState nodeState, @Nullable @Nullable Buffer stableId) throws IOException- Throws:
IOException
-
writePartiallyCompactedNode
@Nullable public @Nullable org.apache.jackrabbit.oak.segment.file.CompactedNodeState.PartiallyCompactedNodeState writePartiallyCompactedNode(@NotNull @NotNull NodeState nodeState, @Nullable @Nullable Buffer stableId) throws IOException- Throws:
IOException
-
flush
public void flush() throws IOException- Throws:
IOException
-
getPreviouslyCompactedState
@Nullable public @Nullable org.apache.jackrabbit.oak.segment.file.CompactedNodeState.FullyCompactedNodeState getPreviouslyCompactedState(NodeState nodeState)
-
-