org.apache.cassandra.io
Class SSTableWriter
java.lang.Object
org.apache.cassandra.io.SSTable
org.apache.cassandra.io.SSTableWriter
public class SSTableWriter
- extends SSTable
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SSTableWriter
public SSTableWriter(java.lang.String filename,
int keyCount,
IPartitioner partitioner)
throws java.io.IOException
- Throws:
java.io.IOException
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