congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
Expressions.toDruidExpressions
Code IndexAdd Tabnine to your IDE (free)

How to use
toDruidExpressions
method
in
org.apache.druid.sql.calcite.expression.Expressions

Best Java code snippets using org.apache.druid.sql.calcite.expression.Expressions.toDruidExpressions (Showing top 4 results out of 315)

origin: apache/incubator-druid

@Nullable
public static DruidExpression convertCall(
  final PlannerContext plannerContext,
  final RowSignature rowSignature,
  final RexNode rexNode,
  final Function<List<DruidExpression>, DruidExpression> expressionFunction
)
{
 final RexCall call = (RexCall) rexNode;
 final List<DruidExpression> druidExpressions = Expressions.toDruidExpressions(
   plannerContext,
   rowSignature,
   call.getOperands()
 );
 if (druidExpressions == null) {
  return null;
 }
 return expressionFunction.apply(druidExpressions);
}
origin: apache/incubator-druid

final List<DruidExpression> druidExpressions = Expressions.toDruidExpressions(
  plannerContext,
  rowSignature,
origin: org.apache.druid/druid-sql

@Nullable
public static DruidExpression convertCall(
  final PlannerContext plannerContext,
  final RowSignature rowSignature,
  final RexNode rexNode,
  final Function<List<DruidExpression>, DruidExpression> expressionFunction
)
{
 final RexCall call = (RexCall) rexNode;
 final List<DruidExpression> druidExpressions = Expressions.toDruidExpressions(
   plannerContext,
   rowSignature,
   call.getOperands()
 );
 if (druidExpressions == null) {
  return null;
 }
 return expressionFunction.apply(druidExpressions);
}
origin: org.apache.druid/druid-sql

final List<DruidExpression> druidExpressions = Expressions.toDruidExpressions(
  plannerContext,
  rowSignature,
org.apache.druid.sql.calcite.expressionExpressionstoDruidExpressions

Javadoc

Translate a list of Calcite RexNode to Druid expressions.

Popular methods of Expressions

  • toDruidExpression
    Translate a Calcite RexNode to a Druid expressions.
  • fromFieldAccess
    Translate a field access, possibly through a projection, to an underlying Druid dataSource.
  • asTimestampFloorExpr
  • buildTimeFloorFilter
    Build a filter for an expression like FLOOR(column TO granularity) [operator] rhsMillis
  • exprTypeForValueType
  • getBoundTimeDimFilter
  • toExpressionLeafFilter
    Translates to an "expression" type leaf filter. Used as a fallback if we can't use a simple leaf fil
  • toFilter
    Translates "condition" to a Druid filter, or returns null if we cannot translate the condition.
  • toLeafFilter
    Translates "condition" to a Druid filter, assuming it does not contain any boolean expressions. Retu
  • toQueryGranularity
    Converts an expression to a Granularity, if possible. This is possible if, and only if, the expressi
  • toSimpleLeafFilter
    Translates to a simple leaf filter, meaning one that hits just a single column and is not an express
  • toSimpleLeafFilter

Popular in Java

  • Creating JSON documents from java classes using gson
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • startActivity (Activity)
  • runOnUiThread (Activity)
  • Menu (java.awt)
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • JComboBox (javax.swing)
  • JList (javax.swing)
  • JOptionPane (javax.swing)
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now