Class QueryCompilerImpl

java.lang.Object
io.deephaven.engine.context.QueryCompilerImpl
All Implemented Interfaces:
LogOutputAppendable, QueryCompiler

public class QueryCompilerImpl extends Object implements QueryCompiler, LogOutputAppendable
  • Field Details

  • Method Details

    • create

      public static QueryCompilerImpl create(File cacheDirectory, ClassLoader classLoader)
    • append

      public LogOutput append(LogOutput logOutput)
      Specified by:
      append in interface LogOutputAppendable
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • setLogEnabled

      public static boolean setLogEnabled(boolean logEnabled)
      Enables or disables compilation logging.
      Parameters:
      logEnabled - Whether logging should be enabled
      Returns:
      The value of logEnabled before calling this method.
    • writeClass

      public static void writeClass(File destinationDirectory, String className, byte[] data) throws IOException
      Throws:
      IOException
    • writeClass

      public static void writeClass(File destinationDirectory, String className, byte[] data, String message) throws IOException
      Throws:
      IOException
    • compile

      public void compile(@NotNull @NotNull QueryCompilerRequest[] requests, @NotNull @NotNull CompletionStageFuture.Resolver<Class<?>>[] resolvers)
      Description copied from interface: QueryCompiler
      Compiles all requests.
      Specified by:
      compile in interface QueryCompiler
      Parameters:
      requests - The compilation requests; these must be independent of each other
      resolvers - The resolvers to use for delivering compilation results
    • createEscapedJoinedString

      public static String createEscapedJoinedString(String originalString)
      Transform a string into the corresponding Java source code that compiles into that string. This involves escaping special characters, surrounding it with quotes, and (if the string is larger than the max string length for Java literals), splitting it into substrings and constructing a call to String.join() that combines those substrings.
    • createEscapedJoinedString

      public static String createEscapedJoinedString(String originalString, int maxStringLength)