code: private IndexOperator getOperator(String condition, boolean idPresent) {
          if (/* !idPresent && */condition.equals("=")) {
              return IndexOperator.EQ;
          } else if (/* !idPresent && */condition.equals(">")) {
              return IndexOperator.GT;
          } else if (/* !idPresent && */condition.equals("<")) {
              return IndexOperator.LT;
          } else if (condition.equals(">=")) {
              return IndexOperator.GTE;
          } else if (condition.equals("<=")) {
              return IndexOperator.LTE;
          } else {
              if (!idPresent) {
                  throw new UnsupportedOperationException("Condition " + condition + " is not suported in  cassandra.");
              } else {
                  throw new UnsupportedOperationException(
                      "Condition " + condition + " is not suported for query on row key.");
              }
          }
  
      }
docs: Gets the operator.
  
  @param condition
  the condition
  @param idPresent
  the id present
  @return the operator