Tabnine Logo
SqlSplittableAggFunction.singleton
Code IndexAdd Tabnine to your IDE (free)

How to use
singleton
method
in
org.apache.calcite.sql.SqlSplittableAggFunction

Best Java code snippets using org.apache.calcite.sql.SqlSplittableAggFunction.singleton (Showing top 5 results out of 315)

origin: apache/hive

if (splitter != null) {
 final RelDataType rowType = relBuilder.peek().getRowType();
 projects2.add(splitter.singleton(rexBuilder, rowType, newAggCall));
origin: apache/drill

if (splitter != null) {
 projects2.add(
   splitter.singleton(rexBuilder, r.getRowType(), newAggCall));
origin: Qihoo360/Quicksql

 if (!aggCall.e.getArgList().isEmpty()
   && fieldSet.contains(ImmutableBitSet.of(aggCall.e.getArgList()))) {
  final RexNode singleton = splitter.singleton(rexBuilder,
    joinInput.getRowType(), aggCall.e.transform(mapping));
if (splitter != null) {
 final RelDataType rowType = relBuilder.peek().getRowType();
 projects2.add(splitter.singleton(rexBuilder, rowType, newAggCall));
origin: org.apache.calcite/calcite-core

 if (!aggCall.e.getArgList().isEmpty()
   && fieldSet.contains(ImmutableBitSet.of(aggCall.e.getArgList()))) {
  final RexNode singleton = splitter.singleton(rexBuilder,
    joinInput.getRowType(), aggCall.e.transform(mapping));
if (splitter != null) {
 final RelDataType rowType = relBuilder.peek().getRowType();
 projects2.add(splitter.singleton(rexBuilder, rowType, newAggCall));
origin: com.alibaba.blink/flink-table

  if (!aggCall.e.getArgList().isEmpty()
      && fieldSet.contains(ImmutableBitSet.of(aggCall.e.getArgList()))) {
    final RexNode singleton = splitter.singleton(rexBuilder,
        joinInput.getRowType(), aggCall.e.transform(mapping));
    final RexNode targetSingleton = rexBuilder.ensureType(aggCall.e.type, singleton, false);
if (splitter != null) {
  final RelDataType rowType = relBuilder.peek().getRowType();
  final RexNode singleton = splitter.singleton(rexBuilder, rowType, newAggCall);
  final RelDataType originalAggCallType =
      aggregate.getRowType().getFieldList().get(aggCallIdx).getType();
org.apache.calcite.sqlSqlSplittableAggFunctionsingleton

Javadoc

Generates an expression for the value of the aggregate function when applied to a single row.

For example, if there is one row:

  • SUM(x) is x
  • MIN(x) is x
  • MAX(x) is x
  • COUNT(x) is CASE WHEN x IS NOT NULL THEN 1 ELSE 0 END 1which can be simplified to 1 if x is never null
  • COUNT(*) is 1

Popular methods of SqlSplittableAggFunction

  • other
    Called to generate an aggregate for the other side of the join than the side aggregate call's argume
  • split
  • topSplit
    Generates an aggregate call to merge sub-totals.Most implementations will add a single aggregate cal

Popular in Java

  • Updating database using SQL prepared statement
  • scheduleAtFixedRate (ScheduledExecutorService)
  • compareTo (BigDecimal)
  • runOnUiThread (Activity)
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • JButton (javax.swing)
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • CodeWhisperer alternatives
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