Tabnine Logo
OutputFunction.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
io.prestosql.spi.function.OutputFunction
constructor

Best Java code snippets using io.prestosql.spi.function.OutputFunction.<init> (Showing top 20 results out of 315)

origin: io.prestosql/presto-main

  @OutputFunction(StandardTypes.BIGINT)
  public static void evaluateFinal(BooleanDistinctState state, BlockBuilder out)
  {
    ApproximateCountDistinctAggregation.evaluateFinal(state, out);
  }
}
origin: io.prestosql/presto-main

  @OutputFunction(INTERVAL_DAY_TO_SECOND)
  public static void output(NullableLongState state, BlockBuilder out)
  {
    NullableLongState.write(INTERVAL_DAY_TIME, state, out);
  }
}
origin: io.prestosql/presto-main

  @OutputFunction(DOUBLE)
  public static void output(NullableDoubleState state, BlockBuilder out)
  {
    // noop this is only for annotation testing puproses
  }
}
origin: io.prestosql/presto-main

  @OutputFunction(StandardTypes.BIGINT)
  public static void evaluateFinal(BooleanDistinctState state, BlockBuilder out)
  {
    BIGINT.writeLong(out, Integer.bitCount(state.getByte()));
  }
}
origin: io.prestosql/presto-main

  @OutputFunction(StandardTypes.BOOLEAN)
  public static void output(@AggregationState TriStateBooleanState state, BlockBuilder out)
  {
    TriStateBooleanState.write(BooleanType.BOOLEAN, state, out);
  }
}
origin: io.prestosql/presto-main

  @OutputFunction(StandardTypes.BIGINT)
  public static void output(@AggregationState NullableLongState state, BlockBuilder out)
  {
    NullableLongState.write(BigintType.BIGINT, state, out);
  }
}
origin: io.prestosql/presto-main

  @OutputFunction(StandardTypes.BIGINT)
  public static void output(@AggregationState NullableLongState state, BlockBuilder out)
  {
    NullableLongState.write(BigintType.BIGINT, state, out);
  }
}
origin: io.prestosql/presto-main

  @OutputFunction(StandardTypes.HYPER_LOG_LOG)
  public static void evaluateFinal(@AggregationState HyperLogLogState state, BlockBuilder out)
  {
    SERIALIZER.serialize(state, out);
  }
}
origin: prestosql/presto

  @OutputFunction(StandardTypes.HYPER_LOG_LOG)
  public static void evaluateFinal(@AggregationState HyperLogLogState state, BlockBuilder out)
  {
    SERIALIZER.serialize(state, out);
  }
}
origin: io.prestosql/presto-main

  @OutputFunction("varchar(z)")
  public static void output(
      @AggregationState SliceState state,
      BlockBuilder out)
  {
    // noop this is only for annotation testing puproses
  }
}
origin: io.prestosql/presto-main

  @OutputFunction(DOUBLE)
  public static void output(BlockBuilder out, @AggregationState NullableDoubleState state)
  {
    // noop this is only for annotation testing puproses
  }
}
origin: io.prestosql/presto-main

  @OutputFunction("T")
  public static void output(
      @AggregationState NullableDoubleState state,
      BlockBuilder out)
  {
    // noop this is only for annotation testing puproses
  }
}
origin: io.prestosql/presto-main

  @OutputFunction(StandardTypes.REAL)
  public static void output(@AggregationState LongAndDoubleState state, BlockBuilder out)
  {
    long count = state.getLong();
    if (count == 0) {
      out.appendNull();
    }
    else {
      REAL.writeLong(out, floatToRawIntBits((float) Math.exp(state.getDouble() / count)));
    }
  }
}
origin: prestosql/presto

  @OutputFunction(StandardTypes.BIGINT)
  public static void output(@AggregationState LongState state, BlockBuilder out)
  {
    BIGINT.writeLong(out, state.getLong());
  }
}
origin: io.prestosql/presto-main

  @OutputFunction(StandardTypes.REAL)
  public static void output(@AggregationState NullableDoubleState state, BlockBuilder out)
  {
    if (state.isNull()) {
      out.appendNull();
    }
    else {
      REAL.writeLong(out, floatToRawIntBits((float) state.getDouble()));
    }
  }
}
origin: io.prestosql/presto-main

  @OutputFunction(StandardTypes.DOUBLE)
  public static void output(@AggregationState LongAndDoubleState state, BlockBuilder out)
  {
    long count = state.getLong();
    if (count == 0) {
      out.appendNull();
    }
    else {
      DOUBLE.writeDouble(out, Math.exp(state.getDouble() / count));
    }
  }
}
origin: io.prestosql/presto-main

@AggregationFunction("regr_slope")
@OutputFunction(StandardTypes.REAL)
public static void regrSlope(@AggregationState RegressionState state, BlockBuilder out)
{
  double result = getRegressionSlope(state);
  if (Double.isFinite(result)) {
    REAL.writeLong(out, floatToRawIntBits((float) result));
  }
  else {
    out.appendNull();
  }
}
origin: io.prestosql/presto-main

@OutputFunction(DOUBLE)
public static void output(
    @OperatorDependency(operator = LESS_THAN, returnType = StandardTypes.BOOLEAN, argumentTypes = {DOUBLE, DOUBLE}) MethodHandle methodHandle,
    @AggregationState NullableDoubleState state,
    BlockBuilder out)
{
  // noop this is only for annotation testing puproses
}
origin: io.prestosql/presto-main

  @OutputFunction(SetDigestType.NAME)
  public static void output(SetDigestState state, BlockBuilder out)
  {
    if (state.getDigest() == null) {
      out.appendNull();
    }
    else {
      SET_DIGEST.writeSlice(out, state.getDigest().serialize());
    }
  }
}
origin: io.prestosql/presto-main

@AggregationFunction("multi_output_aggregate_1")
@Description("Simple multi output function aggregate specialized description")
@OutputFunction(DOUBLE)
public static void output1(
    @AggregationState NullableDoubleState state,
    BlockBuilder out)
{
  // noop this is only for annotation testing puproses
}
io.prestosql.spi.functionOutputFunction<init>

Popular methods of OutputFunction

  • value

Popular in Java

  • Finding current android device location
  • requestLocationUpdates (LocationManager)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • startActivity (Activity)
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Top plugins for WebStorm
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