Codota Logo
org.apache.cassandra.cql3.functions
Code IndexAdd Codota to your IDE (free)

How to use org.apache.cassandra.cql3.functions

Best Java code snippets using org.apache.cassandra.cql3.functions (Showing top 20 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
BufferedReader b =
  • Codota IconInputStream in;new BufferedReader(new InputStreamReader(in))
  • Codota IconReader in;new BufferedReader(in)
  • Codota IconFile file;new BufferedReader(new FileReader(file))
  • Smart code suggestions by Codota
}
origin: jsevellec/cassandra-unit

private ByteBuffer executeAsync(ProtocolVersion protocolVersion, List<ByteBuffer> parameters)
{
  ThreadIdAndCpuTime threadIdAndCpuTime = new ThreadIdAndCpuTime();
  return async(threadIdAndCpuTime, () -> {
    threadIdAndCpuTime.setup();
    return executeUserDefined(protocolVersion, parameters);
  });
}
origin: com.strapdata.cassandra/cassandra-all

private GenericFunctionRegistry() 
{
  this.registry = new HashMap<String, Class<? extends IGenericFunction>>() 
  {{
    put(ToJsonFct.NAME.name(), ToJsonFct.class); 
  }};
}

origin: org.apache.cassandra/cassandra-all

/**
 * Like {@link #executeAsync(int, List)} but the first parameter is already in non-serialized form.
 * Remaining parameters (2nd paramters and all others) are in {@code parameters}.
 * This is used to prevent superfluous (de)serialization of the state of aggregates.
 * Means: scalar functions of aggregates are called using this variant.
 */
private Object executeAggregateAsync(ProtocolVersion protocolVersion, Object firstParam, List<ByteBuffer> parameters)
{
  ThreadIdAndCpuTime threadIdAndCpuTime = new ThreadIdAndCpuTime();
  return async(threadIdAndCpuTime, () -> {
    threadIdAndCpuTime.setup();
    return executeAggregateUserDefined(protocolVersion, firstParam, parameters);
  });
}
origin: org.apache.cassandra/cassandra-all

private static Functions functions()
{
  return Functions.builder()
          .add(UuidFcts.all())
          .add(TimeFcts.all())
          .add(BytesConversionFcts.all())
          .add(AggregateFcts.all())
          .add(CastFcts.all())
          .build();
}
origin: jsevellec/cassandra-unit

  public Aggregate newAggregate()
  {
    return new LongSumAggregate();
  }
};
origin: jsevellec/cassandra-unit

/**
 * Used by UDF implementations (both Java code generated by {@link JavaBasedUDFunction}
 * and script executor {@link ScriptBasedUDFunction}) to convert the Java
 * object representation for the return value to the C* serialized representation.
 *
 * @param protocolVersion the native protocol version used for serialization
 */
protected ByteBuffer decompose(ProtocolVersion protocolVersion, Object value)
{
  return decompose(returnCodec, protocolVersion, value);
}
origin: jsevellec/cassandra-unit

  AggregateFunctionSelector(Function fun, List<Selector> argSelectors) throws InvalidRequestException
  {
    super((AggregateFunction) fun, argSelectors);

    this.aggregate = this.fun.newAggregate();
  }
}
origin: org.apache.cassandra/cassandra-all

public static <I, O> CassandraFunctionWrapper<I, O> create(AbstractType<I> inputType,
                              AbstractType<O> outputType,
                              NativeScalarFunction delegate)
{
  return new CassandraFunctionWrapper<I, O>(inputType, outputType, delegate);
}
origin: org.apache.cassandra/cassandra-all

public static <I> CastAsTextFunction<I> create(AbstractType<I> inputType,
                        AbstractType<String> outputType)
{
  return new CastAsTextFunction<I>(inputType, outputType);
}
origin: jsevellec/cassandra-unit

public static <I, O> JavaFunctionWrapper<I, O> create(AbstractType<I> inputType,
                           AbstractType<O> outputType,
                           java.util.function.Function<I, O> converter)
{
  return new JavaFunctionWrapper<I, O>(inputType, outputType, converter);
}
origin: org.apache.cassandra/cassandra-all

public UDFByteCodeVerifier()
{
  addDisallowedMethodCall(OBJECT_NAME, "clone");
  addDisallowedMethodCall(OBJECT_NAME, "finalize");
  addDisallowedMethodCall(OBJECT_NAME, "notify");
  addDisallowedMethodCall(OBJECT_NAME, "notifyAll");
  addDisallowedMethodCall(OBJECT_NAME, "wait");
}
origin: jsevellec/cassandra-unit

private static Functions functions()
{
  return Functions.builder()
          .add(UuidFcts.all())
          .add(TimeFcts.all())
          .add(BytesConversionFcts.all())
          .add(AggregateFcts.all())
          .add(CastFcts.all())
          .build();
}
origin: org.apache.cassandra/cassandra-all

private ByteBuffer executeAsync(ProtocolVersion protocolVersion, List<ByteBuffer> parameters)
{
  ThreadIdAndCpuTime threadIdAndCpuTime = new ThreadIdAndCpuTime();
  return async(threadIdAndCpuTime, () -> {
    threadIdAndCpuTime.setup();
    return executeUserDefined(protocolVersion, parameters);
  });
}
origin: jsevellec/cassandra-unit

/**
 * Like {@link #executeAsync(int, List)} but the first parameter is already in non-serialized form.
 * Remaining parameters (2nd paramters and all others) are in {@code parameters}.
 * This is used to prevent superfluous (de)serialization of the state of aggregates.
 * Means: scalar functions of aggregates are called using this variant.
 */
private Object executeAggregateAsync(ProtocolVersion protocolVersion, Object firstParam, List<ByteBuffer> parameters)
{
  ThreadIdAndCpuTime threadIdAndCpuTime = new ThreadIdAndCpuTime();
  return async(threadIdAndCpuTime, () -> {
    threadIdAndCpuTime.setup();
    return executeAggregateUserDefined(protocolVersion, firstParam, parameters);
  });
}
origin: org.apache.cassandra/cassandra-all

  public Aggregate newAggregate()
  {
    return new LongSumAggregate();
  }
};
origin: org.apache.cassandra/cassandra-all

/**
 * Used by UDF implementations (both Java code generated by {@link JavaBasedUDFunction}
 * and script executor {@link ScriptBasedUDFunction}) to convert the Java
 * object representation for the return value to the C* serialized representation.
 *
 * @param protocolVersion the native protocol version used for serialization
 */
protected ByteBuffer decompose(ProtocolVersion protocolVersion, Object value)
{
  return decompose(returnCodec, protocolVersion, value);
}
origin: org.apache.cassandra/cassandra-all

  AggregateFunctionSelector(Function fun, List<Selector> argSelectors) throws InvalidRequestException
  {
    super((AggregateFunction) fun, argSelectors);

    this.aggregate = this.fun.newAggregate();
  }
}
origin: jsevellec/cassandra-unit

public static <I, O> CassandraFunctionWrapper<I, O> create(AbstractType<I> inputType,
                              AbstractType<O> outputType,
                              NativeScalarFunction delegate)
{
  return new CassandraFunctionWrapper<I, O>(inputType, outputType, delegate);
}
origin: com.strapdata.cassandra/cassandra-all

private static Functions functions()
{
  return Functions.builder()
          .add(UuidFcts.all())
          .add(TimeFcts.all())
          .add(BytesConversionFcts.all())
          .add(AggregateFcts.all())
          .add(CastFcts.all())
          .build();
}
origin: com.strapdata.cassandra/cassandra-all

private ByteBuffer executeAsync(ProtocolVersion protocolVersion, List<ByteBuffer> parameters)
{
  ThreadIdAndCpuTime threadIdAndCpuTime = new ThreadIdAndCpuTime();
  return async(threadIdAndCpuTime, () -> {
    threadIdAndCpuTime.setup();
    return executeUserDefined(protocolVersion, parameters);
  });
}
org.apache.cassandra.cql3.functions

Most used classes

  • Function
  • AbstractFunction
    Base class for our native/hardcoded functions.
  • BytesConversionFcts
  • FromJsonFct
  • FunctionCall$Raw
  • FunctionName,
  • ToJsonFct,
  • TokenFct,
  • AggregateFcts$LongSumAggregate,
  • AggregateFcts,
  • AggregateFunction$Aggregate,
  • AggregateFunction,
  • CastFcts$CassandraFunctionWrapper,
  • CastFcts$CastAsTextFunction,
  • CastFcts$CastFunction,
  • CastFcts$JavaCounterFunctionWrapper,
  • CastFcts$JavaFunctionWrapper,
  • CastFcts,
  • FunctionResolver
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now