|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.cassandra.db.commitlog.CommitLogSegment
public class CommitLogSegment
| Nested Class Summary | |
|---|---|
static class |
CommitLogSegment.CommitLogSegmentFileComparator
|
| Field Summary | |
|---|---|
CommitLogDescriptor |
descriptor
|
long |
id
|
| Method Summary | |
|---|---|
void |
close()
Close the segment file. |
boolean |
contains(ReplayPosition context)
Check to see if a certain ReplayPosition is contained by this segment file. |
java.lang.String |
dirtyString()
|
void |
discard(boolean deleteFile)
Completely discards a segment file by deleting it. |
static CommitLogSegment |
freshSegment()
|
ReplayPosition |
getContext()
|
java.util.Collection<java.util.UUID> |
getDirtyCFIDs()
|
java.lang.String |
getName()
|
static long |
getNextId()
|
java.lang.String |
getPath()
|
boolean |
hasCapacityFor(RowMutation mutation)
|
boolean |
isUnused()
|
void |
markClean(java.util.UUID cfId,
ReplayPosition context)
Marks the ColumnFamily specified by cfId as clean for this log segment. |
int |
position()
|
CommitLogSegment |
recycle()
Recycle processes an unneeded segment file for reuse. |
void |
sync()
Forces a disk flush for this segment file. |
java.lang.String |
toString()
|
ReplayPosition |
write(RowMutation rowMutation)
Appends a row mutation onto the commit log. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public final long id
public final CommitLogDescriptor descriptor
| Method Detail |
|---|
public static CommitLogSegment freshSegment()
public static long getNextId()
public void discard(boolean deleteFile)
public CommitLogSegment recycle()
public boolean hasCapacityFor(RowMutation mutation)
public ReplayPosition write(RowMutation rowMutation)
throws java.io.IOException
rowMutation - the mutation to append to the commit log.
java.io.IOExceptionpublic void sync()
public ReplayPosition getContext()
public java.lang.String getPath()
public java.lang.String getName()
public void close()
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 checked
public java.lang.String dirtyString()
public java.lang.String toString()
toString in class java.lang.Objectpublic int position()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||