Class TupleSetKernelFactory

java.lang.Object
io.deephaven.engine.table.impl.select.TupleSetKernelFactory

public class TupleSetKernelFactory extends Object
Generates the TupleMapSetKernel subclass for a compound key's column types. The subclasses for two columns are generated ahead of time by ReplicateTupleSetKernels; those for more columns are generated and compiled when first needed.

Two and three columns make the typed tuples of io.deephaven.tuple.generated, whose elements a probe is compared with directly; more columns make an ArrayTuple of boxed values, which are unboxed to be compared.

  • Field Details

  • Method Details

    • className

      public static String className(@NotNull @NotNull ChunkType[] chunkTypes)
      Parameters:
      chunkTypes - The key's column chunk types, none of them ChunkType.Boolean
      Returns:
      The name of the kernel class for chunkTypes
    • generate

      public static com.palantir.javapoet.JavaFile generate(@NotNull @NotNull ChunkType[] chunkTypes, @NotNull @NotNull String className, boolean nullityAnnotations)
      Generate the kernel class for chunkTypes.
      Parameters:
      chunkTypes - The key's column chunk types, at least two and none of them ChunkType.Boolean
      className - The class name, from className(ChunkType[])
      nullityAnnotations - Whether to annotate the parameters of the overriding methods with NotNull and Nullable; the annotations are not on the classpath of a kernel compiled when needed
      Returns:
      The generated source