Package com.yahoo.prelude.query
Class QueryCanonicalizer.CanonicalizationResult
- java.lang.Object
-
- com.yahoo.prelude.query.QueryCanonicalizer.CanonicalizationResult
-
- Enclosing class:
- QueryCanonicalizer
public static class QueryCanonicalizer.CanonicalizationResult extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<java.lang.String>
error()
Returns the error of this query, or empty if it is a valid querystatic QueryCanonicalizer.CanonicalizationResult
error(java.lang.String error)
boolean
isError()
static QueryCanonicalizer.CanonicalizationResult
success()
-
-
-
Method Detail
-
error
public java.util.Optional<java.lang.String> error()
Returns the error of this query, or empty if it is a valid query
-
error
public static QueryCanonicalizer.CanonicalizationResult error(java.lang.String error)
-
success
public static QueryCanonicalizer.CanonicalizationResult success()
-
isError
public boolean isError()
-
-