Auto-imported functions
This guide lists the Java methods that are automatically imported into a Deephaven session upon startup.
These imports, which include classes, methods, and constants, are available to use inside query strings without specifying the classpath. In the following example, the query string calls abs, which is automatically imported upon server startup.

We recommend using built-in Java methods whenever possible. These auto-imported functions are optimized for use in Deephaven query strings.
Function categories
Here is a complete list of everything that is imported automatically into the query language when a new instance of the Groovy IDE is started, organized by category:
| Category | Description |
|---|---|
| Basic | Array manipulation, counting, null handling, and utility functions |
| Math | Mathematical operations: abs, sum, avg, min, max, trigonometry, statistics |
| Time | Date and time utilities: parsing, formatting, arithmetic, time zones |
| Logic | Boolean operations: and, or, not |
| Parse | String-to-primitive parsing functions |
| Sort | Sorting functions for arrays and vectors |
| Search | String matching and searching utilities |
| GUI | Color utilities and constants for table formatting |
| Constants | Null values, infinity, and numeric limits |
| Java | Java standard library classes (String, Integer, List, Map, etc.) |
| Data types | Type casting and data structure utilities |