HBASE-22756 Removed deprecated method from SingleColumnValueFilter (#422)

Signed-off-by: Peter Somogyi <psomogyi@apache.org>
This commit is contained in:
Jan Hentschel 2019-07-29 09:10:00 +02:00 committed by Peter Somogyi
parent e273d0bc3a
commit c68e2f274a
3 changed files with 2 additions and 11 deletions

View File

@ -115,7 +115,7 @@ public class SingleColumnValueExcludeFilter extends SingleColumnValueFilter {
SingleColumnValueFilter.createFilterFromArguments(filterArguments);
SingleColumnValueExcludeFilter filter = new SingleColumnValueExcludeFilter (
tempFilter.getFamily(), tempFilter.getQualifier(),
tempFilter.getOperator(), tempFilter.getComparator());
tempFilter.getCompareOperator(), tempFilter.getComparator());
if (filterArguments.size() == 6) {
filter.setFilterIfMissing(tempFilter.getFilterIfMissing());

View File

@ -138,15 +138,6 @@ public class SingleColumnValueFilter extends FilterBase {
this.latestVersionOnly = latestVersionOnly;
}
/**
* @return operator
* @deprecated since 2.0.0. Will be removed in 3.0.0. Use {@link #getCompareOperator()} instead.
*/
@Deprecated
public CompareOperator getOperator() {
return CompareOperator.valueOf(op.name());
}
public CompareOperator getCompareOperator() {
return op;
}

View File

@ -339,7 +339,7 @@ public class ScannerModel implements ProtobufMessageHandler, Serializable {
if (qualifier != null) {
this.qualifier = Bytes.toString(Base64.getEncoder().encode(qualifier));
}
this.op = scvf.getOperator().toString();
this.op = scvf.getCompareOperator().toString();
this.comparator =
new ByteArrayComparableModel(scvf.getComparator());
if (scvf.getFilterIfMissing()) {