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. Java tends to be faster than Python and using pure Java avoids language boundary crossings, resulting in better performance. Whenever a Python method has a query language equivalent, always use the query language method.
Function categories
Here is a complete list of everything that is imported automatically into the query language when a new instance of the Python 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 |