public boolean isEmpty() { return this.rowIterator.isEmpty() && !hasNext(); }
public boolean isEmpty() { return this.rowIterator.isEmpty() && !hasNext(); }
public boolean isEmpty() { return this.rowIterator.isEmpty() && !hasNext(); }
private List<ColumnOrSuperColumn> thriftifyPartition(RowIterator partition, boolean subcolumnsOnly, boolean reversed, int cellLimit) { if (partition.isEmpty()) return EMPTY_COLUMNS; Iterator<LegacyLayout.LegacyCell> cells = LegacyLayout.fromRowIterator(partition).right; List<ColumnOrSuperColumn> result; if (partition.metadata().isSuper()) { boolean isCounterCF = partition.metadata().isCounter(); result = thriftifySuperColumns(partition.metadata(), cells, subcolumnsOnly, isCounterCF, reversed); } else { result = thriftifyColumns(partition.metadata(), cells); } // Thrift count cells, but internally we only count them at "row" boundaries, which means that if the limit stops in the middle // of an internal row we'll include a few additional cells. So trim it here. return result.size() > cellLimit ? result.subList(0, cellLimit) : result; }
private List<ColumnOrSuperColumn> thriftifyPartition(RowIterator partition, boolean subcolumnsOnly, boolean reversed, int cellLimit) { if (partition.isEmpty()) return EMPTY_COLUMNS; Iterator<LegacyLayout.LegacyCell> cells = LegacyLayout.fromRowIterator(partition).right; List<ColumnOrSuperColumn> result; if (partition.metadata().isSuper()) { boolean isCounterCF = partition.metadata().isCounter(); result = thriftifySuperColumns(partition.metadata(), cells, subcolumnsOnly, isCounterCF, reversed); } else { result = thriftifyColumns(partition.metadata(), cells); } // Thrift count cells, but internally we only count them at "row" boundaries, which means that if the limit stops in the middle // of an internal row we'll include a few additional cells. So trim it here. return result.size() > cellLimit ? result.subList(0, cellLimit) : result; }