public 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.
|
java.lang.String |
dirtyString() |
ReplayPosition |
getContext() |
java.util.Collection<java.util.UUID> |
getDirtyCFIDs() |
java.lang.String |
getName() |
java.lang.String |
getPath() |
boolean |
isStillAllocating() |
boolean |
isUnused() |
void |
markClean(java.util.UUID cfId,
ReplayPosition context)
Marks the ColumnFamily specified by cfId as clean for this log segment.
|
java.lang.String |
toString() |
public static final int ENTRY_OVERHEAD_SIZE
public final long id
public final CommitLogDescriptor descriptor
public boolean isStillAllocating()
public ReplayPosition getContext()
public java.lang.String getPath()
public java.lang.String getName()
public void markClean(java.util.UUID cfId,
ReplayPosition context)
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 java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2015 The Apache Software Foundation