org.apache.cassandra.io.sstable
Class SSTableWriter
java.lang.Object
org.apache.cassandra.io.sstable.SSTable
org.apache.cassandra.io.sstable.SSTableWriter
public class SSTableWriter
- extends SSTable
Nested Class Summary |
static class |
SSTableWriter.Builder
Removes the given SSTable from temporary status and opens it, rebuilding the
bloom filter and row index from the data file. |
Fields inherited from class org.apache.cassandra.io.sstable.SSTable |
COMPONENT_DATA, COMPONENT_FILTER, COMPONENT_INDEX, COMPONENT_STATS, components, descriptor, estimatedColumnCount, estimatedRowSize, metadata, partitioner, TEMPFILE_MARKER |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SSTableWriter
public SSTableWriter(java.lang.String filename,
long keyCount)
throws java.io.IOException
- Throws:
java.io.IOException
SSTableWriter
public SSTableWriter(java.lang.String filename,
long keyCount,
CFMetaData metadata,
IPartitioner partitioner)
throws java.io.IOException
- Throws:
java.io.IOException
mark
public void mark()
reset
public void reset()
append
public long append(AbstractCompactedRow row)
throws java.io.IOException
- Throws:
java.io.IOException
append
public void append(DecoratedKey decoratedKey,
ColumnFamily cf)
throws java.io.IOException
- Throws:
java.io.IOException
append
public void append(DecoratedKey decoratedKey,
java.nio.ByteBuffer value)
throws java.io.IOException
- Throws:
java.io.IOException
closeAndOpenReader
public SSTableReader closeAndOpenReader()
throws java.io.IOException
- Throws:
java.io.IOException
closeAndOpenReader
public SSTableReader closeAndOpenReader(long maxDataAge)
throws java.io.IOException
- Throws:
java.io.IOException
getFilePointer
public long getFilePointer()
createBuilder
public static SSTableWriter.Builder createBuilder(Descriptor desc)
Copyright © 2011 The Apache Software Foundation