org.apache.cassandra.io
Class SSTableWriter

java.lang.Object
  extended by org.apache.cassandra.io.SSTable
      extended by org.apache.cassandra.io.SSTableWriter

public class SSTableWriter
extends SSTable


Field Summary
 
Fields inherited from class org.apache.cassandra.io.SSTable
columnFamilyName, INDEX_INTERVAL, indexPositions, partitioner, path, TEMPFILE_MARKER
 
Constructor Summary
SSTableWriter(java.lang.String filename, int keyCount, IPartitioner partitioner)
           
 
Method Summary
 void append(java.lang.String decoratedKey, byte[] value)
           
 void append(java.lang.String decoratedKey, DataOutputBuffer buffer)
           
 SSTableReader closeAndOpenReader()
          Renames temporary SSTable files to valid data, index, and bloom filter files
static SSTableReader renameAndOpen(java.lang.String dataFileName)
           
 
Methods inherited from class org.apache.cassandra.io.SSTable
filterFilename, filterFilename, getColumnFamilyName, getFilename, indexFilename, indexFilename, parseTableName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SSTableWriter

public SSTableWriter(java.lang.String filename,
                     int keyCount,
                     IPartitioner partitioner)
              throws java.io.IOException
Throws:
java.io.IOException
Method Detail

append

public void append(java.lang.String decoratedKey,
                   DataOutputBuffer buffer)
            throws java.io.IOException
Throws:
java.io.IOException

append

public void append(java.lang.String decoratedKey,
                   byte[] value)
            throws java.io.IOException
Throws:
java.io.IOException

closeAndOpenReader

public SSTableReader closeAndOpenReader()
                                 throws java.io.IOException
Renames temporary SSTable files to valid data, index, and bloom filter files

Throws:
java.io.IOException

renameAndOpen

public static SSTableReader renameAndOpen(java.lang.String dataFileName)
                                   throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2009 The Apache Software Foundation