private boolean filterColumnValue(final Cell cell) { int compareResult = PrivateCellUtil.compareValue(cell, this.comparator); return CompareFilter.compare(this.op, compareResult); }
protected boolean compareValue(final CompareOperator op, final ByteArrayComparable comparator, final Cell cell) { if (op == CompareOperator.NO_OP) { return true; } int compareResult = PrivateCellUtil.compareValue(cell, comparator); return compare(op, compareResult); }
/** * This method is used to determine a cell should be included or filtered out. * @param op one of operators {@link CompareOperator} * @param comparator comparator used to compare cells. * @param cell cell to be compared. * @return true means cell should be filtered out, included otherwise. */ private boolean compareValue(final CompareOperator op, final ByteArrayComparable comparator, final Cell cell) { if (op == CompareOperator.NO_OP) { return true; } int compareResult = PrivateCellUtil.compareValue(cell, comparator); return CompareFilter.compare(op, compareResult); }
/** * @deprecated Since 2.0.0. Will be removed in 3.0.0. * Use {@link #compareValue(CompareOperator, ByteArrayComparable, Cell)} */ @Deprecated protected boolean compareValue(final CompareOp compareOp, final ByteArrayComparable comparator, final Cell cell) { // We do not call through to the non-deprecated method for perf reasons. if (compareOp == CompareOp.NO_OP) { return true; } int compareResult = PrivateCellUtil.compareValue(cell, comparator); return compare(compareOp, compareResult); }
Cell kv = result.get(0); cellTs = kv.getTimestamp(); int compareResult = PrivateCellUtil.compareValue(kv, comparator); matches = matches(op, compareResult);
assertEquals(0, PrivateCellUtil.compareValue(bbCell, comparable)); assertEquals(0, PrivateCellUtil.compareValue(kv, comparable)); kv = new KeyValue(r1, f, q1, v2); buffer = ByteBuffer.wrap(kv.getBuffer()); bbCell = new ByteBufferKeyValue(buffer, 0, buffer.remaining()); assertTrue(PrivateCellUtil.compareValue(bbCell, comparable) < 0); assertTrue(PrivateCellUtil.compareValue(kv, comparable) < 0);
private boolean filterColumnValue(final Cell cell) { int compareResult = PrivateCellUtil.compareValue(cell, this.comparator); return CompareFilter.compare(this.op, compareResult); }
protected boolean compareValue(final CompareOperator op, final ByteArrayComparable comparator, final Cell cell) { if (op == CompareOperator.NO_OP) { return true; } int compareResult = PrivateCellUtil.compareValue(cell, comparator); return compare(op, compareResult); }
/** * This method is used to determine a cell should be included or filtered out. * @param op one of operators {@link CompareOperator} * @param comparator comparator used to compare cells. * @param cell cell to be compared. * @return true means cell should be filtered out, included otherwise. */ private boolean compareValue(final CompareOperator op, final ByteArrayComparable comparator, final Cell cell) { if (op == CompareOperator.NO_OP) { return true; } int compareResult = PrivateCellUtil.compareValue(cell, comparator); return CompareFilter.compare(op, compareResult); }
/** * @deprecated Since 2.0.0. Will be removed in 3.0.0. * Use {@link #compareValue(CompareOperator, ByteArrayComparable, Cell)} */ @Deprecated protected boolean compareValue(final CompareOp compareOp, final ByteArrayComparable comparator, final Cell cell) { // We do not call through to the non-deprecated method for perf reasons. if (compareOp == CompareOp.NO_OP) { return true; } int compareResult = PrivateCellUtil.compareValue(cell, comparator); return compare(compareOp, compareResult); }
assertEquals(0, PrivateCellUtil.compareValue(bbCell, comparable)); assertEquals(0, PrivateCellUtil.compareValue(kv, comparable)); kv = new KeyValue(r1, f, q1, v2); buffer = ByteBuffer.wrap(kv.getBuffer()); bbCell = new ByteBufferKeyValue(buffer, 0, buffer.remaining()); assertTrue(PrivateCellUtil.compareValue(bbCell, comparable) < 0); assertTrue(PrivateCellUtil.compareValue(kv, comparable) < 0);
protected boolean compareValue(final CompareOperator op, final ByteArrayComparable comparator, final Cell cell) { if (op == CompareOperator.NO_OP) { return true; } int compareResult = PrivateCellUtil.compareValue(cell, comparator); return compare(op, compareResult); }
private boolean filterColumnValue(final Cell cell) { int compareResult = PrivateCellUtil.compareValue(cell, this.comparator); return CompareFilter.compare(this.op, compareResult); }
/** * @deprecated Since 2.0.0. Will be removed in 3.0.0. * Use {@link #compareValue(CompareOperator, ByteArrayComparable, Cell)} */ @Deprecated protected boolean compareValue(final CompareOp compareOp, final ByteArrayComparable comparator, final Cell cell) { // We do not call through to the non-deprecated method for perf reasons. if (compareOp == CompareOp.NO_OP) { return true; } int compareResult = PrivateCellUtil.compareValue(cell, comparator); return compare(compareOp, compareResult); }
/** * This method is used to determine a cell should be included or filtered out. * @param op one of operators {@link CompareOperator} * @param comparator comparator used to compare cells. * @param cell cell to be compared. * @return true means cell should be filtered out, included otherwise. */ private boolean compareValue(final CompareOperator op, final ByteArrayComparable comparator, final Cell cell) { if (op == CompareOperator.NO_OP) { return true; } int compareResult = PrivateCellUtil.compareValue(cell, comparator); return CompareFilter.compare(op, compareResult); }