当前位置: 首页>>代码示例>>Java>>正文


Java ValuePartition类代码示例

本文整理汇总了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);
}
 
开发者ID:tenggyut,项目名称:HIndex,代码行数:19,代码来源:ScanFilterEvaluator.java

示例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);
}
 
开发者ID:tenggyut,项目名称:HIndex,代码行数:9,代码来源:FilterColumnValueDetail.java

示例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;
}
 
开发者ID:tenggyut,项目名称:HIndex,代码行数:8,代码来源:FilterColumnValueRange.java

示例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;
}
 
开发者ID:tenggyut,项目名称:HIndex,代码行数:16,代码来源:IndexUtils.java

示例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;
}
 
开发者ID:Huawei-Hadoop,项目名称:hindex,代码行数:16,代码来源:IndexUtils.java

示例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;
}
 
开发者ID:tenggyut,项目名称:HIndex,代码行数:6,代码来源:SingleColumnRangeFilter.java

示例7: getValuePartition

import org.apache.hadoop.hbase.index.ValuePartition; //导入依赖的package包/类
public ValuePartition getValuePartition() {
  return valuePartition;
}
 
开发者ID:tenggyut,项目名称:HIndex,代码行数:4,代码来源:SingleColumnRangeFilter.java

示例8: setValuePartition

import org.apache.hadoop.hbase.index.ValuePartition; //导入依赖的package包/类
public void setValuePartition(ValuePartition valuePartition) {
  this.valuePartition = valuePartition;
}
 
开发者ID:tenggyut,项目名称:HIndex,代码行数:4,代码来源:SingleColumnRangeFilter.java

示例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);
}
 
开发者ID:tenggyut,项目名称:HIndex,代码行数:5,代码来源:SingleColumnValuePartitionFilter.java


注:本文中的org.apache.hadoop.hbase.index.ValuePartition类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。