code: public static SingleColumnFilterFactory getOperator(String condition, boolean idPresent, boolean useFilter)
      {
          if (condition.equals("="))
          {
              return SingleColumnFilterFactory.EQUAL;
          }
          else if (condition.equals(">"))
          {
              return SingleColumnFilterFactory.GREATER;
          }
          else if (condition.equals("<"))
          {
              return SingleColumnFilterFactory.LESS;
          }
          else if (condition.equals(">="))
          {
              return SingleColumnFilterFactory.GREATER_OR_EQUAL;
          }
          else if (condition.equals("<="))
          {
              return SingleColumnFilterFactory.LESS_OR_EQUAL;
          }
          else if (condition.equals("<>"))
          {
              return SingleColumnFilterFactory.NOT_EQUAL;
          }
          else if (condition.equals("LIKE"))
          {
              return SingleColumnFilterFactory.LIKE;
          }
          else if (condition.equals("REGEXP"))
          {
              return SingleColumnFilterFactory.REGEXP;
          }
          else if (useFilter)
          {
              if (!idPresent)
              {
                  throw new UnsupportedOperationException(" Condition " + condition + " is not suported in  hbase!");
              }
              else
              {
                  throw new UnsupportedOperationException(" Condition " + condition
                          + " is not suported for query on row key!");
  
              }
          }
          return null;
      }
docs: Gets the operator.
  
  @param condition
  the condition
  @param idPresent
  the id present
  @param useFilter
  the use filter
  @return the operator