Class CompactionWriter

java.lang.Object
org.apache.jackrabbit.oak.segment.file.CompactionWriter

public class CompactionWriter extends Object
The CompactionWriter delegates compaction calls to the correct SegmentWriter based on GCGeneration.
  • Constructor Details

  • 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

      public void flush() throws IOException
      Throws:
      IOException
    • getPreviouslyCompactedState

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