// ONLY to be used for testing, to create a mock Memtable @VisibleForTesting public Memtable(CFMetaData metadata) { this.initialComparator = metadata.comparator; this.cfs = null; this.allocator = null; this.columnsCollector = new ColumnsCollector(metadata.partitionColumns()); }