Class CompactionWriter


  • public class CompactionWriter
    extends Object
    The CompactionWriter delegates compaction calls to the correct SegmentWriter based on GCGeneration.
    • 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
      • getPreviouslyCompactedState

        @Nullable
        public @Nullable org.apache.jackrabbit.oak.segment.file.CompactedNodeState.FullyCompactedNodeState getPreviouslyCompactedState​(NodeState nodeState)