本文整理汇总了Java中org.apache.hadoop.hbase.filter.CompareFilter.CompareOp.toString方法的典型用法代码示例。如果您正苦于以下问题:Java CompareOp.toString方法的具体用法?Java CompareOp.toString怎么用?Java CompareOp.toString使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.apache.hadoop.hbase.filter.CompareFilter.CompareOp
的用法示例。
在下文中一共展示了CompareOp.toString方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: setStartType
import org.apache.hadoop.hbase.filter.CompareFilter.CompareOp; //导入方法依赖的package包/类
/**
* Set start type for start value.
* @param startType - can only be EQUAL, GREATER, GREATER_OR_EQUAL or NO_OP
*/
public void setStartType(CompareOp startType) {
if (startType == CompareOp.LESS || startType == CompareOp.LESS_OR_EQUAL
|| startType == CompareOp.NOT_EQUAL) {
throw new IllegalArgumentException("Illegal start type: " + startType.toString());
}
this.startType = startType;
}
示例2: setStopType
import org.apache.hadoop.hbase.filter.CompareFilter.CompareOp; //导入方法依赖的package包/类
/**
* Set end type for end value.
* @param stopType - can only be LESS , LESS_OR_EQUAL or NO_OP
*/
public void setStopType(CompareOp stopType) {
if (stopType == CompareOp.EQUAL || stopType == CompareOp.GREATER
|| stopType == CompareOp.GREATER_OR_EQUAL || stopType == CompareOp.NOT_EQUAL) {
throw new IllegalArgumentException("Illegal end type: " + stopType.toString());
}
this.stopType = stopType;
}