本文整理匯總了Java中org.apache.hadoop.hbase.filter.SingleColumnValueFilter.getQualifier方法的典型用法代碼示例。如果您正苦於以下問題:Java SingleColumnValueFilter.getQualifier方法的具體用法?Java SingleColumnValueFilter.getQualifier怎麽用?Java SingleColumnValueFilter.getQualifier使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類org.apache.hadoop.hbase.filter.SingleColumnValueFilter
的用法示例。
在下文中一共展示了SingleColumnValueFilter.getQualifier方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: doFiltersRestruct
import org.apache.hadoop.hbase.filter.SingleColumnValueFilter; //導入方法依賴的package包/類
Filter doFiltersRestruct(Filter filter) {
if (filter instanceof SingleColumnValueFilter) {
ValuePartition vp = null;
if (filter instanceof SingleColumnValuePartitionFilter) {
vp = ((SingleColumnValuePartitionFilter) filter).getValuePartition();
}
SingleColumnValueFilter scvf = (SingleColumnValueFilter) filter;
if (scvf.getOperator().equals(CompareOp.LESS)
|| scvf.getOperator().equals(CompareOp.LESS_OR_EQUAL)
|| scvf.getOperator().equals(CompareOp.GREATER)
|| scvf.getOperator().equals(CompareOp.GREATER_OR_EQUAL)) {
return new SingleColumnRangeFilter(scvf.getFamily(), scvf.getQualifier(), vp, scvf
.getComparator().getValue(), scvf.getOperator(), null, null);
}
}
FilterGroupingWorker groupWorker = new FilterGroupingWorker();
return groupWorker.group(filter);
}
示例2: selectBestFitAndPossibleIndicesForSCVF
import org.apache.hadoop.hbase.filter.SingleColumnValueFilter; //導入方法依賴的package包/類
private FilterNode selectBestFitAndPossibleIndicesForSCVF(List<IndexSpecification> indices,
SingleColumnValueFilter filter) {
if (CompareOp.NOT_EQUAL == filter.getOperator() || CompareOp.NO_OP == filter.getOperator()) {
return new NoIndexFilterNode();
}
FilterColumnValueDetail detail = null;
if (filter instanceof SingleColumnValuePartitionFilter) {
SingleColumnValuePartitionFilter escvf = (SingleColumnValuePartitionFilter) filter;
detail =
new FilterColumnValueDetail(escvf.getFamily(), escvf.getQualifier(), escvf
.getComparator().getValue(), escvf.getValuePartition(), escvf.getOperator());
} else {
detail =
new FilterColumnValueDetail(filter.getFamily(), filter.getQualifier(), filter
.getComparator().getValue(), filter.getOperator());
}
return selectBestFitIndexForColumn(indices, detail);
}