Class ParsingFragment<T extends DataType>
java.lang.Object
com.apple.foundationdb.relational.api.fluentsql.expression.ParsingFragment<T>
- Type Parameters:
T
- The type of the fragment.
- All Implemented Interfaces:
Expression<T>
,ExpressionFragment<T>
@API(EXPERIMENTAL)
public class ParsingFragment<T extends DataType>
extends Object
implements ExpressionFragment<T>
This represents an opaque query fragment, this is usually used in two situations.
-
Building structured query from a given SQL statement: the builder uses
ParsingFragment
to save chunks of the query string without going deeper into processing them and modelling them into a correspondingExpression<?>
tree, this is required to capture expressions that can not be represented at compile time such as complex boolean expression trees inwhere
clause, or to "glance over" certain parts of the query that are irrelevant for the builder for performance reasons. -
Query decoration: The user wants to decorate the query with expressions not (yet) supported by the
ExpressionFactory
.
-
Constructor Details
-
ParsingFragment
-
-
Method Details
-
accept
- Specified by:
accept
in interfaceExpression<T extends DataType>
-
getType
- Specified by:
getType
in interfaceExpression<T extends DataType>
-
getFragment
- Specified by:
getFragment
in interfaceExpressionFragment<T extends DataType>
-
toString
-
equals
-
hashCode
public int hashCode()
-