protected static CompareOp convertToHBaseCompareOp(ComparisonOperator comp){
  if (comp == ComparisonOperator.EQUAL || comp == ComparisonOperator.LIKE || comp == ComparisonOperator.CONTAINS || comp == ComparisonOperator.IN || comp == ComparisonOperator.IS) {
    return CompareOp.EQUAL;
  }
 else   if (comp == ComparisonOperator.LESS) {
    return CompareOp.LESS;
  }
 else   if (comp == ComparisonOperator.LESS_OR_EQUAL) {
    return CompareOp.LESS_OR_EQUAL;
  }
 else   if (comp == ComparisonOperator.GREATER) {
    return CompareOp.GREATER;
  }
 else   if (comp == ComparisonOperator.GREATER_OR_EQUAL) {
    return CompareOp.GREATER_OR_EQUAL;
  }
 else   if (comp == ComparisonOperator.NOT_EQUAL || comp == ComparisonOperator.NOT_LIKE || comp == ComparisonOperator.NOT_CONTAINS || comp == ComparisonOperator.IS_NOT || comp == ComparisonOperator.NOT_IN) {
    return CompareOp.NOT_EQUAL;
  }
 else {
    LOG.error("{} operation is not supported now\n",comp);
    throw new IllegalArgumentException("Illegal operation: " + comp + ", avaliable options: "+ Arrays.toString(ComparisonOperator.values()));
  }
}

protected static CompareOp convertToHBaseCompareOp ( ComparisonOperator comp ) { if ( comp == ComparisonOperator . EQUAL || comp == ComparisonOperator . LIKE || comp == ComparisonOperator . CONTAINS || comp == ComparisonOperator . IN || comp == ComparisonOperator . IS ) { return CompareOp . EQUAL ; } else if ( comp == ComparisonOperator . LESS ) { return CompareOp . LESS ; } else if ( comp == ComparisonOperator . LESS_OR_EQUAL ) { return CompareOp . LESS_OR_EQUAL ; } else if ( comp == ComparisonOperator . GREATER ) { return CompareOp . GREATER ; } else if ( comp == ComparisonOperator . GREATER_OR_EQUAL ) { return CompareOp . GREATER_OR_EQUAL ; } else if ( comp == ComparisonOperator . NOT_EQUAL || comp == ComparisonOperator . NOT_LIKE || comp == ComparisonOperator . NOT_CONTAINS || comp == ComparisonOperator . IS_NOT || comp == ComparisonOperator . NOT_IN ) { return CompareOp . NOT_EQUAL ; } else { LOG . error ( "{} operation is not supported now\n" , comp ) ; throw new IllegalArgumentException ( "Illegal operation: " + comp + ", avaliable options: " + Arrays . toString ( ComparisonOperator . values ( ) ) ) ; } }
convert comparisonoperator to native hbase compareop support : = , = ~ , contains , < , < = , > , > = , ! = , ! = ~
