CQLSSTableWriter.@Deprecated public class SSTableSimpleUnsortedWriter extends AbstractSSTableSimpleWriter
AbstractSSTableSimpleWritercolumnFamily, counterid, currentKey, currentSuperColumn, directory, generation, metadata| Constructor and Description |
|---|
SSTableSimpleUnsortedWriter(java.io.File directory,
CFMetaData metadata,
IPartitioner partitioner,
long bufferSizeInMB)
Deprecated.
|
SSTableSimpleUnsortedWriter(java.io.File directory,
IPartitioner partitioner,
java.lang.String keyspace,
java.lang.String columnFamily,
AbstractType<?> comparator,
AbstractType<?> subComparator,
int bufferSizeInMB)
Deprecated.
|
SSTableSimpleUnsortedWriter(java.io.File directory,
IPartitioner partitioner,
java.lang.String keyspace,
java.lang.String columnFamily,
AbstractType<?> comparator,
AbstractType<?> subComparator,
int bufferSizeInMB,
CompressionParameters compressParameters)
Deprecated.
Create a new buffering writer.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addColumn(Cell cell)
Deprecated.
|
void |
close()
Deprecated.
|
protected void |
countColumn(Cell cell)
Deprecated.
|
protected ColumnFamily |
createColumnFamily()
Deprecated.
|
protected ColumnFamily |
getColumnFamily()
Deprecated.
|
Descriptor |
getCurrentDescriptor()
Deprecated.
|
protected void |
replaceColumnFamily()
Deprecated.
|
protected void |
sync()
Deprecated.
|
protected void |
writeRow(DecoratedKey key,
ColumnFamily columnFamily)
Deprecated.
|
addColumn, addCounterColumn, addExpiringColumn, createDescriptor, getWriter, newRow, newSuperColumn, setSSTableFormatTypepublic SSTableSimpleUnsortedWriter(java.io.File directory,
IPartitioner partitioner,
java.lang.String keyspace,
java.lang.String columnFamily,
AbstractType<?> comparator,
AbstractType<?> subComparator,
int bufferSizeInMB,
CompressionParameters compressParameters)
directory - the directory where to write the sstablespartitioner - the partitionerkeyspace - the keyspace namecolumnFamily - the column family namecomparator - the column family comparatorsubComparator - the column family subComparator or null if not a Super column family.bufferSizeInMB - the data size in MB before which a sstable is written and the buffer reseted. This correspond roughly to the written
data size (i.e. the size of the create sstable). The actual size used in memory will be higher (by how much depends on the size of the
columns you add). For 1GB of heap, a 128 bufferSizeInMB is probably a reasonable choice. If you experience OOM, this value should be lowered.public SSTableSimpleUnsortedWriter(java.io.File directory,
IPartitioner partitioner,
java.lang.String keyspace,
java.lang.String columnFamily,
AbstractType<?> comparator,
AbstractType<?> subComparator,
int bufferSizeInMB)
public SSTableSimpleUnsortedWriter(java.io.File directory,
CFMetaData metadata,
IPartitioner partitioner,
long bufferSizeInMB)
protected void writeRow(DecoratedKey key, ColumnFamily columnFamily) throws java.io.IOException
writeRow in class AbstractSSTableSimpleWriterjava.io.IOExceptionprotected void addColumn(Cell cell) throws java.io.IOException
addColumn in class AbstractSSTableSimpleWriterjava.io.IOExceptionprotected void countColumn(Cell cell) throws java.io.IOException
java.io.IOExceptionprotected ColumnFamily getColumnFamily()
getColumnFamily in class AbstractSSTableSimpleWriterpublic Descriptor getCurrentDescriptor()
getCurrentDescriptor in class AbstractSSTableSimpleWriterprotected ColumnFamily createColumnFamily()
public void close()
throws java.io.IOException
java.io.IOExceptionprotected void replaceColumnFamily()
throws java.io.IOException
java.io.IOExceptionprotected void sync()
throws java.io.IOException
java.io.IOExceptionCopyright © 2018 The Apache Software Foundation