コード例 #1
0
 public static void checkValue(
     SpillableStateStore store,
     long bucketId,
     byte[] prefix,
     int index,
     List<String> expectedValue) {
   buffer.writeBytes(prefix);
   buffer.writeInt(index);
   checkValue(
       store, bucketId, buffer.toSlice().toByteArray(), expectedValue, 0, STRING_LIST_SERDE);
 }
コード例 #2
0
 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);
 }
コード例 #3
0
 public static Slice getKeySlice(byte[] id, int index, String key) {
   buffer.writeBytes(id);
   buffer.writeInt(index);
   STRING_SERDE.serialize(key, buffer);
   return buffer.toSlice();
 }