private ReusablePartitionData(CFMetaData metadata, DecoratedKey partitionKey, PartitionColumns columns, int initialRowCapacity) { this.metadata = metadata; this.partitionKey = partitionKey; this.columns = columns; this.rowBuilder = BTree.builder(metadata.comparator, initialRowCapacity); }
private ReusablePartitionData(CFMetaData metadata, DecoratedKey partitionKey, PartitionColumns columns, int initialRowCapacity) { this.metadata = metadata; this.partitionKey = partitionKey; this.columns = columns; this.rowBuilder = BTree.builder(metadata.comparator, initialRowCapacity); }
protected Builder(Comparator<? super V> comparator) { builder= BTree.builder(comparator); }
private BTree.Builder<Cell> getCells() { if (cells_ == null) { cells_ = BTree.builder(ColumnData.comparator); cells_.auto(false); } return cells_; }
private BTree.Builder<Cell> getCells() { if (cells_ == null) { cells_ = BTree.builder(ColumnData.comparator); cells_.auto(false); } return cells_; }
public void newColumn(ColumnDefinition column) { this.column = column; this.complexDeletion = DeletionTime.LIVE; // default if writeComplexDeletion is not called this.builder = BTree.builder(column.cellComparator()); }
private BTree.Builder<Cell> getCells() { if (cells_ == null) { cells_ = BTree.builder(ColumnData.comparator); cells_.auto(false); } return cells_; }
public void newColumn(ColumnDefinition column) { this.column = column; this.complexDeletion = DeletionTime.LIVE; // default if writeComplexDeletion is not called this.builder = BTree.builder(column.cellComparator()); }
private BTree.Builder<Cell> getCells() { if (cells_ == null) { cells_ = BTree.builder(ColumnData.comparator); cells_.auto(false); } return cells_; }
private BTree.Builder<Row> builder(int initialCapacity) { return BTree.<Row>builder(metadata.comparator, initialCapacity) .setQuickResolver((a, b) -> Rows.merge(a, b, createdAtInSec)); }
private BTree.Builder<Row> builder(int initialCapacity) { return BTree.<Row>builder(metadata.comparator, initialCapacity) .setQuickResolver((a, b) -> Rows.merge(a, b, createdAtInSec)); }
public void reset() { built = null; rowBuilder = BTree.builder(metadata.comparator); deletionBuilder = MutableDeletionInfo.builder(partitionLevelDeletion, metadata().comparator, false); }
private BTree.Builder<Row> builder(int initialCapacity) { return BTree.<Row>builder(metadata.comparator, initialCapacity) .setQuickResolver((a, b) -> Rows.merge(a, b, createdAtInSec)); }
private BTree.Builder<Row> builder(int initialCapacity) { return BTree.<Row>builder(metadata.comparator, initialCapacity) .setQuickResolver((a, b) -> Rows.merge(a, b, createdAtInSec)); }
public void newColumn(ColumnDefinition column) { this.column = column; this.complexDeletion = DeletionTime.LIVE; // default if writeComplexDeletion is not called if (builder == null) builder = BTree.builder(column.cellComparator()); else builder.reuse(column.cellComparator()); }
/** * Returns a new {@code Columns} object holing the same columns than the provided set. * * @param s the set from which to create the new {@code Columns}. * @return the newly created {@code Columns} containing the columns from {@code s}. */ public static Columns from(Collection<ColumnDefinition> s) { Object[] tree = BTree.<ColumnDefinition>builder(Comparator.naturalOrder()).addAll(s).build(); return new Columns(tree, findFirstComplexIdx(tree)); }
/** * Returns a new {@code Columns} object holing the same columns than the provided set. * * @param s the set from which to create the new {@code Columns}. * @return the newly created {@code Columns} containing the columns from {@code s}. */ public static Columns from(Collection<ColumnDefinition> s) { Object[] tree = BTree.<ColumnDefinition>builder(Comparator.naturalOrder()).addAll(s).build(); return new Columns(tree, findFirstComplexIdx(tree)); }
/** * Returns a new {@code Columns} object holing the same columns than the provided set. * * @param s the set from which to create the new {@code Columns}. * @return the newly created {@code Columns} containing the columns from {@code s}. */ public static Columns from(Collection<ColumnDefinition> s) { Object[] tree = BTree.<ColumnDefinition>builder(Comparator.naturalOrder()).addAll(s).build(); return new Columns(tree, findFirstComplexIdx(tree)); }
/** * Returns a new {@code Columns} object holing the same columns than the provided set. * * @param s the set from which to create the new {@code Columns}. * @return the newly created {@code Columns} containing the columns from {@code s}. */ public static Columns from(Collection<ColumnDefinition> s) { Object[] tree = BTree.<ColumnDefinition>builder(Comparator.naturalOrder()).addAll(s).build(); return new Columns(tree, findFirstComplexIdx(tree)); }
public void newColumn(ColumnDefinition column) { this.column = column; this.complexDeletion = DeletionTime.LIVE; // default if writeComplexDeletion is not called if (builder == null) builder = BTree.builder(column.cellComparator()); else builder.reuse(column.cellComparator()); }