Class AsyncUtil
java.lang.Object
org.apache.flink.table.planner.plan.utils.AsyncUtil
Contains utilities for
AsyncScalarFunction.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classOptions for configuring async behavior. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancontainsAsyncCall(org.apache.calcite.rex.RexNode node) Checks whether it contains the specified kind of async function call in the specified node.static booleancontainsNonAsyncCall(org.apache.calcite.rex.RexNode node) Checks whether it contains non-async function call in the specified node.static AsyncUtil.OptionsgetAsyncOptions(ExecNodeConfig config) Gets the options required to run the operator.static booleanisAsyncCall(org.apache.calcite.rex.RexNode node) Checks whether the specified node is the specified kind of async function call.static booleanisNonAsyncCall(org.apache.calcite.rex.RexNode node) Checks whether the specified node is a non-async function call.
-
Constructor Details
-
AsyncUtil
public AsyncUtil()
-
-
Method Details
-
containsAsyncCall
public static boolean containsAsyncCall(org.apache.calcite.rex.RexNode node) Checks whether it contains the specified kind of async function call in the specified node.- Parameters:
node- the RexNode to check- Returns:
- true if it contains an async function call in the specified node.
-
containsNonAsyncCall
public static boolean containsNonAsyncCall(org.apache.calcite.rex.RexNode node) Checks whether it contains non-async function call in the specified node.- Parameters:
node- the RexNode to check- Returns:
- true if it contains a non-async function call in the specified node.
-
isAsyncCall
public static boolean isAsyncCall(org.apache.calcite.rex.RexNode node) Checks whether the specified node is the specified kind of async function call.- Parameters:
node- the RexNode to check- Returns:
- true if the specified node is an async function call.
-
isNonAsyncCall
public static boolean isNonAsyncCall(org.apache.calcite.rex.RexNode node) Checks whether the specified node is a non-async function call.- Parameters:
node- the RexNode to check- Returns:
- true if the specified node is a non-async function call.
-
getAsyncOptions
Gets the options required to run the operator.- Parameters:
config- The config from which to fetch the options- Returns:
- Extracted options
-