Column<Boolean> column = row.getColumns().getColumnByName( COLUMN_NAME ); versions.put( row.getKey().getKey(), column.getLongValue() );
@Override public boolean apply(@Nullable Row<ByteBuffer, ByteBuffer> row) { return (row != null) && row.getColumns().size() > 0; } }
while (_iter.hasNext()) { Row<ByteBuffer, DeltaKey> row = _iter.next(); ColumnList<DeltaKey> rowColumns = row.getColumns(); ByteBuffer rowKey = row.getRawKey(); long nextTableUuid = AstyanaxStorage.getTableUuid(row.getRawKey()); if (nextTableUuid != tableUuid) { int shardId = AstyanaxStorage.getShardId(row.getRawKey()); ByteBuffer nextPossibleTableStart = AstyanaxStorage.getRowKeyRaw(shardId, tableUuid + 1, ""); ByteBuffer end = rowRange.getEnd();
@Override public boolean apply(@Nullable Row<ByteBuffer, ByteBuffer> row) { return (row != null) && !row.getKey().equals(skip); } }
final ColumnList<C> columns = result.getRow( key ).getColumns();
while (_iter.hasNext()) { Row<ByteBuffer, UUID> row = _iter.next(); ColumnList<UUID> rowColumns = row.getColumns(); ByteBuffer rowKey = row.getRawKey(); long nextTableUuid = AstyanaxStorage.getTableUuid(row.getRawKey()); if (nextTableUuid != tableUuid) { int shardId = AstyanaxStorage.getShardId(row.getRawKey()); ByteBuffer nextPossibleTableStart = AstyanaxStorage.getRowKeyRaw(shardId, tableUuid + 1, ""); ByteBuffer end = rowRange.getEnd();
@Override public StaticBuffer next() { ensureOpen(); currentRow = rows.next(); return StaticArrayBuffer.of(currentRow.getKey()); }
final Row<ScopedRowKey<K>, UUID> row = latestEntityColumns.next(); final ColumnList<UUID> columns = row.getColumns(); final Id entityId = getEntityIdFromKey( row.getKey() );
/** * A single row is present, only parse the single row * @param result * @return */ private List<T> singleRowResult( final Rows<R, C> result ) { if (logger.isTraceEnabled()) logger.trace( "Only a single row has columns. Parsing directly" ); for ( R key : result.getKeys() ) { final ColumnList<C> columnList = result.getRow( key ).getColumns(); final int size = columnList.size(); if ( size > 0 ) { final List<T> results = new ArrayList<>(size); for(Column<C> column: columnList){ results.add(columnParser.parseColumn( column )); } return results; } } //we didn't have any results, just return nothing return Collections.<T>emptyList(); }
while (_iter.hasNext()) { Row<ByteBuffer, DeltaKey> row = _iter.next(); ColumnList<DeltaKey> rowColumns = row.getColumns(); ByteBuffer rowKey = row.getRawKey(); long nextTableUuid = AstyanaxStorage.getTableUuid(row.getRawKey()); if (nextTableUuid != tableUuid) { int shardId = AstyanaxStorage.getShardId(row.getRawKey()); ByteBuffer nextPossibleTableStart = AstyanaxStorage.getRowKeyRaw(shardId, tableUuid + 1, ""); ByteBuffer end = rowRange.getEnd();
@Override public K apply(Row<K, C> input) { return input.getKey(); } });
final Row<ScopedRowKey<Id>, Boolean> row = latestEntityColumns.next(); final ColumnList<Boolean> columns = row.getColumns(); final Id entityId = row.getKey().getKey();
final ColumnList<C> columns = result.getRow( key ).getColumns();
while (_iter.hasNext()) { Row<ByteBuffer, UUID> row = _iter.next(); ColumnList<UUID> rowColumns = row.getColumns(); ByteBuffer rowKey = row.getRawKey(); long nextTableUuid = AstyanaxStorage.getTableUuid(row.getRawKey()); if (nextTableUuid != tableUuid) { int shardId = AstyanaxStorage.getShardId(row.getRawKey()); ByteBuffer nextPossibleTableStart = AstyanaxStorage.getRowKeyRaw(shardId, tableUuid + 1, ""); ByteBuffer end = rowRange.getEnd();
@Override public K apply(Row<K, C> input) { return input.getKey(); } });
final Row<ScopedRowKey<CollectionPrefixedKey<Id>>, UUID> row = latestEntityColumns.next(); final ColumnList<UUID> columns = row.getColumns(); final Id entityId = row.getKey().getKey().getSubKey();
@Override public RecordIterator<Entry> getEntries() { ensureOpen(); if (sliceQuery == null) throw new IllegalStateException("getEntries() requires SliceQuery to be set."); return new RecordIterator<Entry>() { private final Iterator<Entry> columns = CassandraHelper.makeEntryIterator(currentRow.getColumns(), entryGetter, sliceQuery.getSliceEnd(),sliceQuery.getLimit()); @Override public boolean hasNext() { ensureOpen(); return columns.hasNext(); } @Override public Entry next() { ensureOpen(); return columns.next(); } @Override public void close() { isClosed = true; } @Override public void remove() { throw new UnsupportedOperationException(); } }; }
if (row.getColumns().isEmpty()) continue; rowCount++; String idString = serializers.keyAsString(row.getRawKey()); count += writeColumnsAsRows(idString, row.getColumns(), firstRow); firstRow = false; if (row.getColumns().isEmpty()) continue; rowCount++; String idString = serializers.keyAsString(row.getRawKey()); out.append(jsonifyString(this.fieldNames.get(Field.ROW_KEY))).append(":") .append(jsonifyString(idString)); writeColumns(row.getColumns(), false); count++; if (row.getColumns().isEmpty()) continue; rowCount++; String idString = serializers.keyAsString(row.getRawKey()); out.append(jsonifyString(idString)).append(":{"); writeColumns(row.getColumns(), true); out.print("}"); count++;
@Override public K apply(Row<K, C> row) { return row.getKey(); } });