public static void checkValue( SpillableStateStore store, long bucketId, String key, byte[] prefix, String expectedValue) { buffer.writeBytes(prefix); STRING_SERDE.serialize(key, buffer); checkValue(store, bucketId, buffer.toSlice().toByteArray(), expectedValue, 0, STRING_SERDE); }
public static Slice getKeySlice(byte[] id, int index, String key) { buffer.writeBytes(id); buffer.writeInt(index); STRING_SERDE.serialize(key, buffer); return buffer.toSlice(); }