Table operations overview

A quick reference for table operations

For the concepts behind table operations — immutability, formulas, dependencies — see Understanding the Table API. This page is a quick-reference index of what's available; each guide linked below covers its operation in full, with examples.

Quick reference

I want to...Use this
Keep rows matching a conditionwhere("condition")
Get first/last N rowshead(n) / tail(n)
Add columns (stored)update("NewColumn = formula")
Add columns (computed on demand)updateView("NewColumn = formula")
Keep only specific columnsselect("Column1", "Column2")
Compute specific columns on demand, dropping the restview("Column1", "NewColumn = formula")
Sort by columnsort("Column")
Sort in reverse ordersortDescending("Column")
Join lookup datanaturalJoin(other, "Key", "AddedColumn")
Join requiring exactly one matchexactJoin(other, "Key", "AddedColumn")
Cross or key-matched joinjoin(other, "Key")
Match on a timestamp/ordered keyaj(other, "Key")
Aggregate by groupsaggBy([AggSum(...)], "Key")

Diving deeper: API references

When you need complete method signatures, parameter details, or edge case behavior:

  • JavadocTable: The Table interface with all methods
  • JavadocTableOperations: The operation contracts that define behavior

The reference documentation for each operation (e.g., where, update) also links to the relevant Javadoc.