org.apache.cassandra.db.commitlog
Class CommitLogSegment
java.lang.Object
org.apache.cassandra.db.commitlog.CommitLogSegment
public class CommitLogSegment
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
CommitLogSegment
public CommitLogSegment()
possibleCommitLogFile
public static boolean possibleCommitLogFile(java.lang.String filename)
writeHeader
public void writeHeader()
throws java.io.IOException
- Throws:
java.io.IOException
write
public CommitLogSegment.CommitLogContext write(RowMutation rowMutation,
java.lang.Object serializedRow)
throws java.io.IOException
- Throws:
java.io.IOException
sync
public void sync()
throws java.io.IOException
- Throws:
java.io.IOException
flush
public void flush()
throws java.io.IOException
- Throws:
java.io.IOException
getContext
public CommitLogSegment.CommitLogContext getContext()
getHeader
public CommitLogHeader getHeader()
getPath
public java.lang.String getPath()
getHeaderPath
public java.lang.String getHeaderPath()
length
public long length()
close
public void close()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2010 The Apache Software Foundation