org.apache.cassandra.db.commitlog
Class CommitLogSegment

java.lang.Object
  extended by org.apache.cassandra.db.commitlog.CommitLogSegment

public class CommitLogSegment
extends java.lang.Object


Nested Class Summary
 class CommitLogSegment.CommitLogContext
           
 
Constructor Summary
CommitLogSegment()
           
 
Method Summary
 void close()
           
 void flush()
           
 CommitLogSegment.CommitLogContext getContext()
           
 CommitLogHeader getHeader()
           
 java.lang.String getHeaderPath()
           
 java.lang.String getPath()
           
 long length()
           
static boolean possibleCommitLogFile(java.lang.String filename)
           
 void sync()
           
 java.lang.String toString()
           
 CommitLogSegment.CommitLogContext write(RowMutation rowMutation, java.lang.Object serializedRow)
           
 void writeHeader()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CommitLogSegment

public CommitLogSegment()
Method Detail

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