Class RecordIdRange

java.lang.Object
com.surrealdb.RecordIdRange

public final class RecordIdRange extends Object
Represents a range of record IDs on a table for range queries (e.g. select/update/delete/upsert over IDs in [start..end] or unbounded on either side).

Use Id.from(long), Id.from(String), or Id.from(java.util.UUID) for bounds. Pass null for start or end to make that bound unbounded.

  • Constructor Details

    • RecordIdRange

      public RecordIdRange(String table, Id start, Id end)
      Creates a range over the given table with optional start and end bounds.
      Parameters:
      table - table name
      start - lower bound (inclusive), or null for unbounded
      end - upper bound (inclusive), or null for unbounded
  • Method Details

    • getTable

      public String getTable()
    • getStart

      public Id getStart()
      Lower bound (inclusive), or null if unbounded.
    • getEnd

      public Id getEnd()
      Upper bound (inclusive), or null if unbounded.