return UTF8Type.instance.decompose((String) value);
asList.add(UTF8Type.instance.decompose(colName));
asList.add(UTF8Type.instance.decompose(colName));
ByteBufferUtil.EMPTY_BYTE_BUFFER, false, Integer.MAX_VALUE)); IndexExpression ie = new IndexExpression(UTF8Type.instance.decompose(colName), IndexOperator.EQ, ByteBuffer.wrap(PropertyAccessorHelper.getBytes(colValue))); List<IndexExpression> expressions = new ArrayList<IndexExpression>();
private static Map<ByteBuffer, CFMetaData.DroppedColumn> fetchDroppedColumns(String keyspace, String table) { String query = format("SELECT * FROM %s.%s WHERE keyspace_name = ? AND table_name = ?", SchemaConstants.SCHEMA_KEYSPACE_NAME, DROPPED_COLUMNS); Map<ByteBuffer, CFMetaData.DroppedColumn> columns = new HashMap<>(); for (UntypedResultSet.Row row : query(query, keyspace, table)) { CFMetaData.DroppedColumn column = createDroppedColumnFromRow(row); columns.put(UTF8Type.instance.decompose(column.name), column); } return columns; }
private static Map<ByteBuffer, CFMetaData.DroppedColumn> fetchDroppedColumns(String keyspace, String table) { String query = format("SELECT * FROM %s.%s WHERE keyspace_name = ? AND table_name = ?", SchemaConstants.SCHEMA_KEYSPACE_NAME, DROPPED_COLUMNS); Map<ByteBuffer, CFMetaData.DroppedColumn> columns = new HashMap<>(); for (UntypedResultSet.Row row : query(query, keyspace, table)) { CFMetaData.DroppedColumn column = createDroppedColumnFromRow(row); columns.put(UTF8Type.instance.decompose(column.name), column); } return columns; }
private static Map<ByteBuffer, CFMetaData.DroppedColumn> fetchDroppedColumns(String keyspace, String table) { String query = format("SELECT * FROM %s.%s WHERE keyspace_name = ? AND table_name = ?", SchemaConstants.SCHEMA_KEYSPACE_NAME, DROPPED_COLUMNS); Map<ByteBuffer, CFMetaData.DroppedColumn> columns = new HashMap<>(); for (UntypedResultSet.Row row : query(query, keyspace, table)) { CFMetaData.DroppedColumn column = createDroppedColumnFromRow(row); columns.put(UTF8Type.instance.decompose(column.name), column); } return columns; }
private static ByteBuffer convert(String text) { try { return UTF8Type.instance.decompose(text); } catch (MarshalException e) { throw new SyntaxException(String.format("For field name %s: %s", text, e.getMessage())); } }
private static ByteBuffer convert(String text) { try { return UTF8Type.instance.decompose(text); } catch (MarshalException e) { throw new SyntaxException(String.format("For field name %s: %s", text, e.getMessage())); } }
private static ByteBuffer convert(String text) { try { return UTF8Type.instance.decompose(text); } catch (MarshalException e) { throw new SyntaxException(String.format("For field name %s: %s", text, e.getMessage())); } }
private void writeType(AbstractType<?> type, DataOutputPlus out) throws IOException { // TODO: we should have a terser serializaion format. Not a big deal though ByteBufferUtil.writeWithVIntLength(UTF8Type.instance.decompose(type.toString()), out); }
private int sizeofType(AbstractType<?> type) { return ByteBufferUtil.serializedSizeWithVIntLength(UTF8Type.instance.decompose(type.toString())); } }
private int sizeofType(AbstractType<?> type) { return ByteBufferUtil.serializedSizeWithVIntLength(UTF8Type.instance.decompose(type.toString())); } }
private void writeType(AbstractType<?> type, DataOutputPlus out) throws IOException { // TODO: we should have a terser serializaion format. Not a big deal though ByteBufferUtil.writeWithVIntLength(UTF8Type.instance.decompose(type.toString()), out); }
private void writeType(AbstractType<?> type, DataOutputPlus out) throws IOException { // TODO: we should have a terser serializaion format. Not a big deal though ByteBufferUtil.writeWithVIntLength(UTF8Type.instance.decompose(type.toString()), out); }
private int sizeofType(AbstractType<?> type) { return ByteBufferUtil.serializedSizeWithVIntLength(UTF8Type.instance.decompose(type.toString())); } }
private void writeType(AbstractType<?> type, DataOutputPlus out) throws IOException { // TODO: we should have a terser serializaion format. Not a big deal though ByteBufferUtil.writeWithVIntLength(UTF8Type.instance.decompose(type.toString()), out); }
private int sizeofType(AbstractType<?> type) { return ByteBufferUtil.serializedSizeWithVIntLength(UTF8Type.instance.decompose(type.toString())); } }
protected Cell getMetaColumn(Cell firstColumn, Float score) { CellNameType cellNameType = table.getComparator(); ColumnDefinition columnDefinition = resultMapper.tableMapper.primaryColumnDefinition; CellName cellName = cellNameType.create(firstColumn.name(), columnDefinition); return new BufferCell(cellName, UTF8Type.instance.decompose("{\"score\":" + score.toString() + "}")); }