/** * Create a new buffering writer. * * @param directory the directory where to write the sstables * @param partitioner the partitioner * @param keyspace the keyspace name * @param columnFamily the column family name * @param comparator the column family comparator * @param subComparator the column family subComparator or null if not a Super column family. * @param 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( File directory, IPartitioner partitioner, String keyspace, String columnFamily, AbstractType<?> comparator, AbstractType<?> subComparator, int bufferSizeInMB, CompressionParameters compressParameters) { this( directory, CFMetaData.denseCFMetaData(keyspace, columnFamily, comparator, subComparator) .compressionParameters(compressParameters), partitioner, bufferSizeInMB); }