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_COMPACTED, COMPONENT_DATA, COMPONENT_FILTER, COMPONENT_INDEX, COMPONENT_STATS, components, desc, estimatedColumnCount, estimatedRowSize, metadata, partitioner, TEMPFILE_MARKER |
Methods inherited from class org.apache.cassandra.io.sstable.SSTable |
bytesOnDisk, conditionalDelete, getColumnFamilyName, getComponents, getDescriptor, getEstimatedColumnCount, getEstimatedRowSize, getFilename, getPartitioner, getTableName, getTotalBytes, toString, tryComponentFromFilename |
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
append
public void 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,
byte[] 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 © 2010 The Apache Software Foundation