本文整理汇总了Java中org.apache.hadoop.hbase.index.ValuePartition类的典型用法代码示例。如果您正苦于以下问题:Java ValuePartition类的具体用法?Java ValuePartition怎么用?Java ValuePartition使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ValuePartition类属于org.apache.hadoop.hbase.index包,在下文中一共展示了ValuePartition类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: doFiltersRestruct
import org.apache.hadoop.hbase.index.ValuePartition; //导入依赖的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: FilterColumnValueDetail
import org.apache.hadoop.hbase.index.ValuePartition; //导入依赖的package包/类
public FilterColumnValueDetail(byte[] cf, byte[] qualifier, byte[] value,
ValuePartition valuePartition, CompareOp compareOp) {
this.cf = cf;
this.qualifier = qualifier;
this.value = value;
this.compareOp = compareOp;
this.column = new Column(this.cf, this.qualifier, valuePartition);
}
示例3: FilterColumnValueRange
import org.apache.hadoop.hbase.index.ValuePartition; //导入依赖的package包/类
public FilterColumnValueRange(byte[] cf, byte[] qualifier, ValuePartition vp,
byte[] lowerBoundValue, CompareOp lowerBoundCompareOp, byte[] upperBoundValue,
CompareOp upperBoundCompareOp) {
super(cf, qualifier, lowerBoundValue, vp, lowerBoundCompareOp);
this.upperBoundCompareOp = upperBoundCompareOp;
this.upperBoundValue = upperBoundValue;
}
示例4: getValueFromKV
import org.apache.hadoop.hbase.index.ValuePartition; //导入依赖的package包/类
private static byte[] getValueFromKV(Cell kv, ColumnQualifier indexCQ) {
ValuePartition vp = indexCQ.getValuePartition();
byte value[] = null;
if (vp != null) {
value = vp.getPartOfValue(kv.getValue());
if (value != null) {
value = IndexUtils.changeValueAccToDataType(value, indexCQ.getType());
}
} else {
LOG.trace("No offset or separator is mentioned. So just returning the value fetched from kv");
value = kv.getValue();
value = IndexUtils.changeValueAccToDataType(value, indexCQ.getType());
}
return value;
}
示例5: getValueFromKV
import org.apache.hadoop.hbase.index.ValuePartition; //导入依赖的package包/类
private static byte[] getValueFromKV(KeyValue kv, ColumnQualifier indexCQ) {
ValuePartition vp = indexCQ.getValuePartition();
byte value[] = null;
if (vp != null) {
value = vp.getPartOfValue(kv.getValue());
if (value != null) {
value = IndexUtils.changeValueAccToDataType(value, indexCQ.getType());
}
} else {
LOG.trace("No offset or separator is mentioned. So just returning the value fetched from kv");
value = kv.getValue();
value = IndexUtils.changeValueAccToDataType(value, indexCQ.getType());
}
return value;
}
示例6: SingleColumnRangeFilter
import org.apache.hadoop.hbase.index.ValuePartition; //导入依赖的package包/类
public SingleColumnRangeFilter(byte[] cf, byte[] qualifier, ValuePartition vp,
byte[] boundValue1, CompareOp boundOp1, byte[] boundValue2, CompareOp boundOp2) {
this(cf, qualifier, boundValue1, boundOp1, boundValue2, boundOp2);
this.valuePartition = vp;
}
示例7: getValuePartition
import org.apache.hadoop.hbase.index.ValuePartition; //导入依赖的package包/类
public ValuePartition getValuePartition() {
return valuePartition;
}
示例8: setValuePartition
import org.apache.hadoop.hbase.index.ValuePartition; //导入依赖的package包/类
public void setValuePartition(ValuePartition valuePartition) {
this.valuePartition = valuePartition;
}
示例9: SingleColumnValuePartitionFilter
import org.apache.hadoop.hbase.index.ValuePartition; //导入依赖的package包/类
public SingleColumnValuePartitionFilter(final byte[] family, final byte[] qualifier,
final CompareOp compareOp, final byte[] value, ValuePartition vp) {
this(family, qualifier, compareOp, new BinaryComparator(value), vp);
}