Value type constraints

Each value type may optionally define a constraint to enforce data validation. You can configure these constraints when creating a new value type in the Value Type Manager application. The available value type constraints, listed by base types, are below:

  • Array: Represents an ordered collection of elements of the same value type.
    • Constraints: Uniqueness, array size, element type-specific constraints.
  • Boolean: Represents a Boolean value of true or false.
    • Constraints: enum (one of)
  • Byte: Represents a single signed byte, covering values -128 to 127 as an integer.
    • Constraints: Uniqueness, array size, element specific constraints
  • Date: Represents an ISO 8601 date string.
    • Constraints: Range
  • Decimal: Represents arbitrary-precision numerical values defined by scale and precision.
    • Constraints: Range, enum (one of)
  • Double: Represents numerical values within a range of 4.9e-324 to 1.7976931348623157e+308.
    • Constraints: Range, enum (one of)
  • Float: Represents numerical values within a range of -1.4e-45f to 3.4028235e+38f.
    • Constraints: Range, enum (one of)
  • Integer: Represents numerical values within a range of 2147483648 to 2147483647.
    • Constraints: Range, enum (one of)
  • Short: Represents numerical values within a range of -32768 to 32767.
    • Constraints: Range, enum (one of)
  • String: Represents character strings and Palantir-specific string types.
    • Constraints: Length, regex, enum (one of), RID, UUID.
  • Timestamp: Represents a date-time with an offset from UTC in the ISO-8601 calendar system, such as 2007-12-03T10:15:30+01:00.
    • Constraints: Range