Class CompactionWriter
java.lang.Object
org.apache.jackrabbit.oak.segment.file.CompactionWriter
The CompactionWriter delegates compaction calls to the correct
SegmentWriter
based on GCGeneration.-
Constructor Summary
ConstructorsConstructorDescriptionCompactionWriter
(@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
Modifier and TypeMethodDescriptionvoid
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 Details
-
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 Details
-
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
- Throws:
IOException
-
getPreviouslyCompactedState
@Nullable public @Nullable org.apache.jackrabbit.oak.segment.file.CompactedNodeState.FullyCompactedNodeState getPreviouslyCompactedState(NodeState nodeState)
-