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


Java MatchCode.SEEK_NEXT_COL属性代码示例

本文整理汇总了Java中org.apache.hadoop.hbase.regionserver.ScanQueryMatcher.MatchCode.SEEK_NEXT_COL属性的典型用法代码示例。如果您正苦于以下问题:Java MatchCode.SEEK_NEXT_COL属性的具体用法?Java MatchCode.SEEK_NEXT_COL怎么用?Java MatchCode.SEEK_NEXT_COL使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在org.apache.hadoop.hbase.regionserver.ScanQueryMatcher.MatchCode的用法示例。


在下文中一共展示了MatchCode.SEEK_NEXT_COL属性的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: checkVersion

/**
 * Check whether this version should be retained.
 * There are 4 variables considered:
 * If this version is past max versions -> skip it
 * If this kv has expired or was deleted, check min versions
 * to decide whther to skip it or not.
 *
 * Increase the version counter unless this is a delete
 */
private MatchCode checkVersion(byte type, long timestamp) {
  if (!CellUtil.isDelete(type)) {
    currentCount++;
  }
  if (currentCount > maxVersions) {
    return ScanQueryMatcher.MatchCode.SEEK_NEXT_COL; // skip to next col
  }
  // keep the KV if required by minversions or it is not expired, yet
  if (currentCount <= minVersions || !isExpired(timestamp)) {
    setTSAndType(timestamp, type);
    return ScanQueryMatcher.MatchCode.INCLUDE;
  } else {
    return MatchCode.SEEK_NEXT_COL;
  }

}
 
开发者ID:fengchen8086,项目名称:ditb,代码行数:25,代码来源:ScanWildcardColumnTracker.java

示例2: checkVersion

/**
 * Check whether this version should be retained. There are 4 variables considered: If this
 * version is past max versions -> skip it If this kv has expired or was deleted, check min
 * versions to decide whther to skip it or not. Increase the version counter unless this is a
 * delete
 */
private MatchCode checkVersion(byte type, long timestamp) {
  if (!KeyValue.isDelete(type)) {
    currentCount++;
  }
  if (currentCount > maxVersions) {
    return ScanQueryMatcher.MatchCode.SEEK_NEXT_COL; // skip to next col
  }
  // keep the KV if required by minversions or it is not expired, yet
  if (currentCount <= minVersions || !isExpired(timestamp)) {
    setTSAndType(timestamp, type);
    return ScanQueryMatcher.MatchCode.INCLUDE;
  } else {
    return MatchCode.SEEK_NEXT_COL;
  }

}
 
开发者ID:fengchen8086,项目名称:LCIndex-HBase-0.94.16,代码行数:22,代码来源:ScanWildcardColumnTracker.java

示例3: checkVersion

/**
 * Check whether this version should be retained.
 * There are 4 variables considered:
 * If this version is past max versions -> skip it
 * If this kv has expired or was deleted, check min versions
 * to decide whther to skip it or not.
 *
 * Increase the version counter unless this is a delete
 */
private MatchCode checkVersion(byte type, long timestamp) {
  if (!KeyValue.isDelete(type)) {
    currentCount++;
  }
  if (currentCount > maxVersions) {
    return ScanQueryMatcher.MatchCode.SEEK_NEXT_COL; // skip to next col
  }
  // keep the KV if required by minversions or it is not expired, yet
  if (currentCount <= minVersions || !isExpired(timestamp)) {
    setTSAndType(timestamp, type);
    return ScanQueryMatcher.MatchCode.INCLUDE;
  } else {
    return MatchCode.SEEK_NEXT_COL;
  }

}
 
开发者ID:tenggyut,项目名称:HIndex,代码行数:25,代码来源:ScanWildcardColumnTracker.java

示例4: getNextRowOrNextColumn

public MatchCode getNextRowOrNextColumn(byte[] bytes, int offset,
    int qualLength) {
  doneWithColumn(bytes, offset,qualLength);

  if (getColumnHint() == null) {
    return MatchCode.SEEK_NEXT_ROW;
  } else {
    return MatchCode.SEEK_NEXT_COL;
  }
}
 
开发者ID:fengchen8086,项目名称:ditb,代码行数:10,代码来源:ExplicitColumnTracker.java

示例5: checkVersion

private MatchCode checkVersion(int version, long timestamp) {
  if (version > maxVersions) {
    return ScanQueryMatcher.MatchCode.SEEK_NEXT_COL; // skip to next col
  }
  // keep the KV if required by minversions or it is not expired, yet
  if (version <= minVersions || !isExpired(timestamp)) {
    setTS(timestamp);
    return ScanQueryMatcher.MatchCode.INCLUDE;
  } else {
    return MatchCode.SEEK_NEXT_COL;
  }

}
 
开发者ID:lifeng5042,项目名称:RStore,代码行数:13,代码来源:ScanWildcardColumnTracker.java

示例6: getNextRowOrNextColumn

public MatchCode getNextRowOrNextColumn(byte[] bytes, int offset,
		int qualLength) {
	doneWithColumn(bytes, offset, qualLength);

	if (getColumnHint() == null) {
		return MatchCode.SEEK_NEXT_ROW;
	} else {
		return MatchCode.SEEK_NEXT_COL;
	}
}
 
开发者ID:lifeng5042,项目名称:RStore,代码行数:10,代码来源:ExplicitColumnTracker.java

示例7: getNextRowOrNextColumn

public MatchCode getNextRowOrNextColumn(byte[] bytes, int offset,
    int qualLength) {
  return MatchCode.SEEK_NEXT_COL;
}
 
开发者ID:fengchen8086,项目名称:ditb,代码行数:4,代码来源:ScanWildcardColumnTracker.java

示例8: getNextRowOrNextColumn

public MatchCode getNextRowOrNextColumn(byte[] bytes, int offset, int qualLength) {
  return MatchCode.SEEK_NEXT_COL;
}
 
开发者ID:fengchen8086,项目名称:LCIndex-HBase-0.94.16,代码行数:3,代码来源:ScanWildcardColumnTracker.java


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