use of com.datastax.dse.protocol.internal.response.result.DseRowsMetadata in project java-driver by datastax.
the class DseTestFixtures method singleDseRow.
// Returns a single row, with a single "message" column with the value "hello, world"
public static Rows singleDseRow() {
DseRowsMetadata metadata = new DseRowsMetadata(ImmutableList.of(new ColumnSpec("ks", "table", "message", 0, RawType.PRIMITIVES.get(ProtocolConstants.DataType.VARCHAR))), null, new int[] {}, null, 1, true);
Queue<List<ByteBuffer>> data = new ArrayDeque<>();
data.add(ImmutableList.of(Bytes.fromHexString("0x68656C6C6F2C20776F726C64")));
return new DefaultRows(metadata, data);
}
Aggregations