public boolean contains(ByteSequence bsrow) { return wrapped.contains(bsrow); }
public boolean contains(BinaryComparable row) { return wrapped.contains(row); }
List<FileRef> findChopFiles(KeyExtent extent, Map<FileRef,Pair<Key,Key>> firstAndLastKeys, Collection<FileRef> allFiles) throws IOException { List<FileRef> result = new ArrayList<>(); if (firstAndLastKeys == null) { result.addAll(allFiles); return result; } for (FileRef file : allFiles) { Pair<Key,Key> pair = firstAndLastKeys.get(file); if (pair == null) { // file was created or imported after we obtained the first and last keys... there // are a few options here... throw an exception which will cause the compaction to // retry and also cause ugly error message that the admin has to ignore... could // go get the first and last key, but this code is called while the tablet lock // is held... or just compact the file.... result.add(file); } else { Key first = pair.getFirst(); Key last = pair.getSecond(); // If first and last are null, it's an empty file. Add it to the compact set so it goes // away. if ((first == null && last == null) || (first != null && !extent.contains(first.getRow())) || (last != null && !extent.contains(last.getRow()))) { result.add(file); } } } return result; }
if (entry.getKey().contains(row)) entry.getValue().l++;
public Violations check(Environment env, Mutation m) { if (!env.getExtent().contains(new ComparableBytes(m.getRow()))) { Violations violations = new Violations();
if (splitPoint == null) continue; if (!tls.extent.contains(splitPoint)) continue; if (splitPoint.equals(tls.extent.getEndRow()))
if (startRow == null || !ke.contains(startRow)) { if (ke.getPrevEndRow() != null) { startKey = followingKey(encoder, getKeyClass(), getBytes(ke.getPrevEndRow())); if (endRow == null || !ke.contains(endRow)) { if (ke.getEndRow() != null) endKey = lastPossibleKey(encoder, getKeyClass(), getBytes(ke.getEndRow()));