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
Fields inherited from class org.apache.cassandra.io.sstable.SSTable |
COMPONENT_COMPACTED, COMPONENT_DATA, COMPONENT_FILTER, COMPONENT_INDEX, components, desc, estimatedColumnCount, estimatedRowSize, metadata, partitioner, TEMPFILE_MARKER |
Methods inherited from class org.apache.cassandra.io.sstable.SSTable |
bytesOnDisk, compactedFilename, compactedFilename, deleteIfCompacted, filterFilename, filterFilename, getColumnFamilyName, getDescriptor, getEstimatedColumnCount, getEstimatedRowSize, getFilename, getPartitioner, getTableName, getTotalBytes, indexFilename, indexFilename, toString |
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()
recoverAndOpen
public static SSTableReader recoverAndOpen(Descriptor desc)
throws java.io.IOException
- Removes the given SSTable from temporary status and opens it, rebuilding the non-essential portions of the
file if necessary.
- Throws:
java.io.IOException
Copyright © 2010 The Apache Software Foundation