public class CheckpointCompactor extends Object
Constructor and Description |
---|
CheckpointCompactor(@NotNull org.apache.jackrabbit.oak.spi.gc.GCMonitor gcListener,
@NotNull SegmentReader reader,
@NotNull SegmentWriter writer,
@Nullable org.apache.jackrabbit.oak.spi.blob.BlobStore blobStore,
@NotNull GCNodeWriteMonitor compactionMonitor)
Create a new instance based on the passed arguments.
|
Modifier and Type | Method and Description |
---|---|
@Nullable SegmentNodeState |
compact(@NotNull org.apache.jackrabbit.oak.spi.state.NodeState base,
@NotNull org.apache.jackrabbit.oak.spi.state.NodeState uncompacted,
@NotNull org.apache.jackrabbit.oak.spi.state.NodeState onto,
Canceller canceller)
Compact
uncompacted on top of an optional base . |
public CheckpointCompactor(@NotNull @NotNull org.apache.jackrabbit.oak.spi.gc.GCMonitor gcListener, @NotNull @NotNull SegmentReader reader, @NotNull @NotNull SegmentWriter writer, @Nullable @Nullable org.apache.jackrabbit.oak.spi.blob.BlobStore blobStore, @NotNull @NotNull GCNodeWriteMonitor compactionMonitor)
reader
- segment reader used to read from the segmentswriter
- segment writer used to serialise to segmentsblobStore
- the blob store or null
if nonecompactionMonitor
- notification call back for each compacted nodes,
properties, and binaries@Nullable public @Nullable SegmentNodeState compact(@NotNull @NotNull org.apache.jackrabbit.oak.spi.state.NodeState base, @NotNull @NotNull org.apache.jackrabbit.oak.spi.state.NodeState uncompacted, @NotNull @NotNull org.apache.jackrabbit.oak.spi.state.NodeState onto, Canceller canceller) throws IOException
uncompacted
on top of an optional base
.base
- the base state to compact againstuncompacted
- the uncompacted state to compactonto
- the state onto which to compact the change between base
and
uncompacted
uncompacted
or null
if cancelled.IOException
Copyright © 2012–2020 The Apache Software Foundation. All rights reserved.