scanner.upperBound("keyA".getBytes()); Assert.fail("Cannot search higher in a unsorted TFile!");
scanner.upperBound(getSomeKey(50)); assertTrue("location lookup failed", scanner.currentLocation .compareTo(reader.end()) < 0);
scanner.upperBound("keyA".getBytes()); Assert.fail("Cannot search higher in a unsorted TFile!");
scanner.upperBound(getSomeKey(50)); assertTrue("location lookup failed", scanner.currentLocation .compareTo(reader.end()) < 0);
scanner.upperBound(getSomeKey(50)); assertTrue("location lookup failed", scanner.currentLocation .compareTo(reader.end()) < 0);
scanner.upperBound("keyA".getBytes()); Assert.fail("Cannot search higher in a unsorted TFile!");
/** * Move the cursor to the first entry whose key is strictly greater than * the input key. Synonymous to upperBound(key, 0, key.length). The entry * returned by the previous entry() call will be invalid. * * @param key * The input key * @throws IOException */ public void upperBound(byte[] key) throws IOException { upperBound(key, 0, key.length); }
/** * Move the cursor to the first entry whose key is strictly greater than * the input key. Synonymous to upperBound(key, 0, key.length). The entry * returned by the previous entry() call will be invalid. * * @param key * The input key * @throws IOException */ public void upperBound(byte[] key) throws IOException { upperBound(key, 0, key.length); }
/** * Move the cursor to the first entry whose key is strictly greater than * the input key. Synonymous to upperBound(key, 0, key.length). The entry * returned by the previous entry() call will be invalid. * * @param key * The input key * @throws IOException */ public void upperBound(byte[] key) throws IOException { upperBound(key, 0, key.length); }
/** * Move the cursor to the first entry whose key is strictly greater than * the input key. Synonymous to upperBound(key, 0, key.length). The entry * returned by the previous entry() call will be invalid. * * @param key * The input key * @throws IOException */ public void upperBound(byte[] key) throws IOException { upperBound(key, 0, key.length); }
/** * Move the cursor to the first entry whose key is strictly greater than * the input key. Synonymous to upperBound(key, 0, key.length). The entry * returned by the previous entry() call will be invalid. * * @param key * The input key * @throws IOException */ public void upperBound(byte[] key) throws IOException { upperBound(key, 0, key.length); }
/** * Move the cursor to the first entry whose key is strictly greater than * the input key. Synonymous to upperBound(key, 0, key.length). The entry * returned by the previous entry() call will be invalid. * * @param key * The input key * @throws IOException */ public void upperBound(byte[] key) throws IOException { upperBound(key, 0, key.length); }