src/main/java/com/googlecode/objectify/impl/QueryImpl.java
protected FilterOperator translate(String operator) {
		operator = operator.trim();

		if (operator.equals("=") || operator.equals("=="))
			return FilterOperator.EQUAL;
		else if (operator.equals(">"))
			return FilterOperator.GREATER_THAN;
		else if (operator.equals(">="))
			return FilterOperator.GREATER_THAN_OR_EQUAL;
		else if (operator.equals("<"))
			return FilterOperator.LESS_THAN;
		else if (operator.equals("<="))
			return FilterOperator.LESS_THAN_OR_EQUAL;
		else if (operator.equals("!=") || operator.equals("<>"))
			//return FilterOperator.NOT_EQUAL;
			throw new UnsupportedOperationException("The Cloud Datastore SDK does not currently support 'NOT EQUAL' filters");
		else if (operator.toLowerCase().equals("in"))
			//return FilterOperator.IN;
			throw new UnsupportedOperationException("The Cloud Datastore SDK does not currently support 'IN' filters");
		else
			throw new IllegalArgumentException("Unknown operator '" + operator + "'");
	}
protected FilterOperator translate(String operator) {
		operator = operator.trim();

		if (operator.equals("=") || operator.equals("=="))
			return FilterOperator.EQUAL;
		else if (operator.equals(">"))
			return FilterOperator.GREATER_THAN;
		else if (operator.equals(">="))
			return FilterOperator.GREATER_THAN_OR_EQUAL;
		else if (operator.equals("<"))
			return FilterOperator.LESS_THAN;
		else if (operator.equals("<="))
			return FilterOperator.LESS_THAN_OR_EQUAL;
		else if (operator.equals("!=") || operator.equals("<>"))
			//return FilterOperator.NOT_EQUAL;
			throw new UnsupportedOperationException("The Cloud Datastore SDK does not currently support 'NOT EQUAL' filters");
		else if (operator.toLowerCase().equals("in"))
			//return FilterOperator.IN;
			throw new UnsupportedOperationException("The Cloud Datastore SDK does not currently support 'IN' filters");
		else
			throw new IllegalArgumentException("Unknown operator '" + operator + "'");
	}
protected FilterOperator translate ( String operator ) { operator = operator . trim ( ) ; if ( operator . equals ( "=" ) || operator . equals ( "==" ) ) return FilterOperator . EQUAL ; else if ( operator . equals ( ">" ) ) return FilterOperator . GREATER_THAN ; else if ( operator . equals ( ">=" ) ) return FilterOperator . GREATER_THAN_OR_EQUAL ; else if ( operator . equals ( "<" ) ) return FilterOperator . LESS_THAN ; else if ( operator . equals ( "<=" ) ) return FilterOperator . LESS_THAN_OR_EQUAL ; else if ( operator . equals ( "!=" ) || operator . equals ( "<>" ) ) //return FilterOperator.NOT_EQUAL;
 throw new UnsupportedOperationException ( "The Cloud Datastore SDK does not currently support 'NOT EQUAL' filters" ) ; else if ( operator . toLowerCase ( ) . equals ( "in" ) ) //return FilterOperator.IN;
 throw new UnsupportedOperationException ( "The Cloud Datastore SDK does not currently support 'IN' filters" ) ; else throw new IllegalArgumentException ( "Unknown operator '" + operator + "'" ) ; }
Converts the textual operator (">", "<=", etc) into a FilterOperator.
Forgiving about the syntax; != and <> are NOT_EQUAL, = and == are EQUAL.
Converts the textual operator ( > < = etc ) into a FilterOperator . Forgiving about the syntax ; ! = and < > are NOT_EQUAL = and == are EQUAL .