HBASE-22756 Removed deprecated method from SingleColumnValueFilter (#422)
Signed-off-by: Peter Somogyi <psomogyi@apache.org>
This commit is contained in:
parent
e273d0bc3a
commit
c68e2f274a
|
@ -115,7 +115,7 @@ public class SingleColumnValueExcludeFilter extends SingleColumnValueFilter {
|
||||||
SingleColumnValueFilter.createFilterFromArguments(filterArguments);
|
SingleColumnValueFilter.createFilterFromArguments(filterArguments);
|
||||||
SingleColumnValueExcludeFilter filter = new SingleColumnValueExcludeFilter (
|
SingleColumnValueExcludeFilter filter = new SingleColumnValueExcludeFilter (
|
||||||
tempFilter.getFamily(), tempFilter.getQualifier(),
|
tempFilter.getFamily(), tempFilter.getQualifier(),
|
||||||
tempFilter.getOperator(), tempFilter.getComparator());
|
tempFilter.getCompareOperator(), tempFilter.getComparator());
|
||||||
|
|
||||||
if (filterArguments.size() == 6) {
|
if (filterArguments.size() == 6) {
|
||||||
filter.setFilterIfMissing(tempFilter.getFilterIfMissing());
|
filter.setFilterIfMissing(tempFilter.getFilterIfMissing());
|
||||||
|
|
|
@ -138,15 +138,6 @@ public class SingleColumnValueFilter extends FilterBase {
|
||||||
this.latestVersionOnly = latestVersionOnly;
|
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() {
|
public CompareOperator getCompareOperator() {
|
||||||
return op;
|
return op;
|
||||||
}
|
}
|
||||||
|
|
|
@ -339,7 +339,7 @@ public class ScannerModel implements ProtobufMessageHandler, Serializable {
|
||||||
if (qualifier != null) {
|
if (qualifier != null) {
|
||||||
this.qualifier = Bytes.toString(Base64.getEncoder().encode(qualifier));
|
this.qualifier = Bytes.toString(Base64.getEncoder().encode(qualifier));
|
||||||
}
|
}
|
||||||
this.op = scvf.getOperator().toString();
|
this.op = scvf.getCompareOperator().toString();
|
||||||
this.comparator =
|
this.comparator =
|
||||||
new ByteArrayComparableModel(scvf.getComparator());
|
new ByteArrayComparableModel(scvf.getComparator());
|
||||||
if (scvf.getFilterIfMissing()) {
|
if (scvf.getFilterIfMissing()) {
|
||||||
|
|
Loading…
Reference in New Issue