use of com.nearinfinity.honeycomb.mysql.QueryKey in project honeycomb by altamiracorp.
the class ScanOperationsIT method testIndexLastScan.
@Test
public void testIndexLastScan() {
ITUtils.insertData(proxy, 1, INDEX_COL_VALUE, TestConstants.FULL_UUID);
ITUtils.insertData(proxy, 1, INDEX_COL_VALUE - 1, TestConstants.ZERO_UUID);
ITUtils.insertData(proxy, ROW_COUNT, INDEX_COL_VALUE - 1);
final QueryKey key = new QueryKey(TestConstants.INDEX1, QueryType.INDEX_LAST, Maps.<String, ByteBuffer>newHashMap());
ITUtils.assertReceivingDifferentRows(proxy, key, ROW_COUNT + 2);
}
use of com.nearinfinity.honeycomb.mysql.QueryKey in project honeycomb by altamiracorp.
the class ScanOperationsIT method testKeyOrNextScan.
@Test
public void testKeyOrNextScan() {
ITUtils.insertData(proxy, 1, INDEX_COL_VALUE, TestConstants.FULL_UUID);
ITUtils.insertData(proxy, 1, INDEX_COL_VALUE + 1, TestConstants.ZERO_UUID);
ITUtils.insertData(proxy, ROW_COUNT, INDEX_COL_VALUE + 1);
final QueryKey key = ITUtils.createKey(INDEX_COL_VALUE, QueryType.KEY_OR_NEXT);
ITUtils.assertReceivingDifferentRows(proxy, key, ROW_COUNT + 2);
}
Aggregations