Class CompactedNodeState
- java.lang.Object
-
- org.apache.jackrabbit.oak.segment.SegmentNodeState
-
- org.apache.jackrabbit.oak.segment.file.CompactedNodeState
-
- All Implemented Interfaces:
NodeState
public abstract class CompactedNodeState extends SegmentNodeState
Simple wrapper class forSegmentNodeState
to keep track of fully and partially compacted nodes.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull GCGeneration
getGcGeneration()
Get the underlying segment's gc generation.RecordId
getRecordId()
Returns the identifier of this record.protected int
getRecordNumber()
protected Segment
getSegment()
Returns the segment that contains this record.boolean
isComplete()
-
Methods inherited from class org.apache.jackrabbit.oak.segment.SegmentNodeState
builder, compareAgainstBaseState, equals, exists, fastEquals, getBoolean, getChildNode, getChildNodeCount, getChildNodeEntries, getChildNodeNames, getLong, getName, getNames, getProperties, getProperty, getPropertyCount, getStableId, getStableIdBytes, getString, getStrings, hasChildNode, hashCode, hasProperty, toString
-
-
-
-
Method Detail
-
isComplete
public final boolean isComplete()
-
getSegment
protected Segment getSegment()
Returns the segment that contains this record.- Returns:
- segment that contains this record
-
getRecordNumber
protected int getRecordNumber()
-
getRecordId
public RecordId getRecordId()
Returns the identifier of this record.- Returns:
- record identifier
-
getGcGeneration
@NotNull public @NotNull GCGeneration getGcGeneration()
Get the underlying segment's gc generation. Might cause the segment to get loaded if the generation info is missing- Returns:
- the segment's gc generation
-
-