Class CompactionWriter
- java.lang.Object
-
- org.apache.jackrabbit.oak.segment.file.CompactionWriter
-
public class CompactionWriter extends java.lang.Object
The CompactionWriter delegates compaction calls to the correctSegmentWriter
based 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 void
flush()
@Nullable org.apache.jackrabbit.oak.segment.file.CompactedNodeState.FullyCompactedNodeState
getPreviouslyCompactedState(NodeState nodeState)
@NotNull org.apache.jackrabbit.oak.segment.file.CompactedNodeState.FullyCompactedNodeState
writeFullyCompactedNode(@NotNull NodeState nodeState, @Nullable Buffer stableId)
@Nullable org.apache.jackrabbit.oak.segment.file.CompactedNodeState.PartiallyCompactedNodeState
writePartiallyCompactedNode(@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 java.io.IOException
- Throws:
java.io.IOException
-
writePartiallyCompactedNode
@Nullable public @Nullable org.apache.jackrabbit.oak.segment.file.CompactedNodeState.PartiallyCompactedNodeState writePartiallyCompactedNode(@NotNull @NotNull NodeState nodeState, @Nullable @Nullable Buffer stableId) throws java.io.IOException
- Throws:
java.io.IOException
-
flush
public void flush() throws java.io.IOException
- Throws:
java.io.IOException
-
getPreviouslyCompactedState
@Nullable public @Nullable org.apache.jackrabbit.oak.segment.file.CompactedNodeState.FullyCompactedNodeState getPreviouslyCompactedState(NodeState nodeState)
-
-