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

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

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

origin: apache/hive

  final AggregateCall call1;
  if (fieldSet.contains(ImmutableBitSet.of(aggCall.e.getArgList()))) {
   call1 = splitter.split(aggCall.e, mapping);
  } else {
   call1 = splitter.other(rexBuilder.getTypeFactory(), aggCall.e);
final Integer rightSubTotal = sides.get(1).split.get(aggCall.i);
newAggCalls.add(
  splitter.topSplit(rexBuilder, registry(projects),
    groupIndicatorCount, relBuilder.peek().getRowType(), aggCall.e,
    leftSubTotal == null ? -1 : leftSubTotal,
 if (splitter != null) {
  final RelDataType rowType = relBuilder.peek().getRowType();
  projects2.add(splitter.singleton(rexBuilder, rowType, newAggCall));
origin: apache/drill

  final AggregateCall call1;
  if (fieldSet.contains(ImmutableBitSet.of(aggCall.e.getArgList()))) {
   call1 = splitter.split(aggCall.e, mapping);
  } else {
   call1 = splitter.other(rexBuilder.getTypeFactory(), aggCall.e);
final Integer rightSubTotal = sides.get(1).split.get(aggCall.i);
newAggCalls.add(
  splitter.topSplit(rexBuilder, registry(projects),
    groupIndicatorCount, newJoin.getRowType(), aggCall.e,
    leftSubTotal == null ? -1 : leftSubTotal,
  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));
  final AggregateCall call1;
  if (fieldSet.contains(ImmutableBitSet.of(aggCall.e.getArgList()))) {
   final AggregateCall splitCall = splitter.split(aggCall.e, mapping);
   call1 = splitCall.adaptTo(joinInput, splitCall.getArgList(),
     splitCall.filterArg, oldGroupKeyCount, newGroupKeyCount);
  } else {
   call1 = splitter.other(rexBuilder.getTypeFactory(), aggCall.e);
final Integer rightSubTotal = sides.get(1).split.get(aggCall.i);
newAggCalls.add(
  splitter.topSplit(rexBuilder, registry(projects),
    groupIndicatorCount, relBuilder.peek().getRowType(), aggCall.e,
    leftSubTotal == null ? -1 : leftSubTotal,
 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));
  final AggregateCall call1;
  if (fieldSet.contains(ImmutableBitSet.of(aggCall.e.getArgList()))) {
   final AggregateCall splitCall = splitter.split(aggCall.e, mapping);
   call1 = splitCall.adaptTo(joinInput, splitCall.getArgList(),
     splitCall.filterArg, oldGroupKeyCount, newGroupKeyCount);
  } else {
   call1 = splitter.other(rexBuilder.getTypeFactory(), aggCall.e);
final Integer rightSubTotal = sides.get(1).split.get(aggCall.i);
newAggCalls.add(
  splitter.topSplit(rexBuilder, registry(projects),
    groupIndicatorCount, relBuilder.peek().getRowType(), aggCall.e,
    leftSubTotal == null ? -1 : leftSubTotal,
 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);
    final AggregateCall call1;
    if (fieldSet.contains(ImmutableBitSet.of(aggCall.e.getArgList()))) {
      final AggregateCall splitCall = splitter.split(aggCall.e, mapping);
      call1 = splitCall.adaptTo(
          joinInput, splitCall.getArgList(), splitCall.filterArg,
          oldGroupKeyCount, newGroupKeyCount);
    } else {
      call1 = splitter.other(rexBuilder.getTypeFactory(), aggCall.e);
final Integer rightSubTotal = sides.get(1).split.get(aggCall.i);
newAggCalls.add(
    splitter.topSplit(rexBuilder, registry(projects),
        groupIndicatorCount, relBuilder.peek().getRowType(), aggCall.e,
        leftSubTotal == null ? -1 : leftSubTotal,
  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.sqlSqlSplittableAggFunction

Javadoc

Aggregate function that can be split into partial aggregates.

For example, COUNT(x) can be split into COUNT(x) on subsets followed by SUM to combine those counts.

Most used methods

  • other
    Called to generate an aggregate for the other side of the join than the side aggregate call's argume
  • singleton
    Generates an expression for the value of the aggregate function when applied to a single row.For exa
  • split
  • topSplit
    Generates an aggregate call to merge sub-totals.Most implementations will add a single aggregate cal

Popular in Java

  • Reading from database using SQL prepared statement
  • onCreateOptionsMenu (Activity)
  • runOnUiThread (Activity)
  • putExtra (Intent)
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • Top PhpStorm plugins
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