public abstract class CommitLogSegment
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
CommitLogSegment.CommitLogSegmentFileComparator |
Modifier and Type | Field and Description |
---|---|
CommitLogDescriptor |
descriptor |
static int |
ENTRY_OVERHEAD_SIZE |
long |
id |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(ReplayPosition context)
Check to see if a certain ReplayPosition is contained by this segment file.
|
long |
contentSize() |
static <K> void |
coverInMap(java.util.concurrent.ConcurrentMap<K,IntegerInterval> map,
K key,
int value) |
java.lang.String |
dirtyString() |
ReplayPosition |
getContext() |
java.util.Collection<java.util.UUID> |
getDirtyCFIDs() |
java.lang.String |
getName() |
java.lang.String |
getPath() |
protected void |
internalClose()
Close the segment file.
|
boolean |
isStillAllocating() |
boolean |
isUnused() |
void |
markClean(java.util.UUID cfId,
ReplayPosition startPosition,
ReplayPosition endPosition)
Marks the ColumnFamily specified by cfId as clean for this log segment.
|
abstract long |
onDiskSize() |
java.lang.String |
toString() |
protected void |
writeSyncMarker(java.nio.ByteBuffer buffer,
int offset,
int filePos,
int nextMarker) |
public static final int ENTRY_OVERHEAD_SIZE
public final long id
public final CommitLogDescriptor descriptor
protected void writeSyncMarker(java.nio.ByteBuffer buffer, int offset, int filePos, int nextMarker)
public boolean isStillAllocating()
public ReplayPosition getContext()
public java.lang.String getPath()
public java.lang.String getName()
protected void internalClose()
public static <K> void coverInMap(java.util.concurrent.ConcurrentMap<K,IntegerInterval> map, K key, int value)
public void markClean(java.util.UUID cfId, ReplayPosition startPosition, ReplayPosition endPosition)
cfId
- the column family ID that is now cleancontext
- the optional clean offsetpublic java.util.Collection<java.util.UUID> getDirtyCFIDs()
public boolean isUnused()
public boolean contains(ReplayPosition context)
context
- the replay position to be checkedpublic java.lang.String dirtyString()
public abstract long onDiskSize()
public long contentSize()
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2017 The Apache Software Foundation