Package ai.vectros.types
Class FieldDef
java.lang.Object
ai.vectros.types.FieldDef
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic final classstatic interfacestatic interface -
Method Summary
Modifier and TypeMethodDescriptionstatic FieldDef.FieldIdStagebuilder()booleaninthashCode()toString()
-
Method Details
-
getFieldId
- Returns:
- Unique identifier for this field within the schema.
-
getFieldType
- Returns:
- Data type of the field. Use
referencefor a foreign-key field that points at another type — then settargetTypeName,targetField,targetSurface, andcardinalitybelow.
-
getRequired
- Returns:
- Whether this field is required when a record is created.
-
getSearchable
- Returns:
- Whether this field's value contributes to full-text search.
-
getFilterable
- Returns:
- Whether this field can be used as a filter in queries.
-
getDescription
- Returns:
- Human-readable description of the field.
-
getValidation
- Returns:
- Validation rules for this field's value (such as minimum/maximum length or a regex pattern).
-
getEnumValues
- Returns:
- The set of allowed values, for an enum-type field.
-
getTargetTypeName
- Returns:
- For a
referencefield: the target type this field points at. Required for reference fields.
-
getTargetField
- Returns:
- For a
referencefield: the target's lookup field to resolve against. Defaults toexternalId, and must name a unique lookup on the target type.
-
getCardinality
- Returns:
- For a
referencefield:one(a single id, the default) ormany(an array of ids).
-
getTargetSurface
- Returns:
- For a
referencefield: which surface the target lives on — record, document, user, org, or client. Required for reference fields. The same type name can exist on more than one surface, so this disambiguates which lookup resolves the reference.
-
getSensitive
- Returns:
- Marks the field as sensitive (PHI/PII). Sensitive fields are redacted in logs, audit trails, and errors; blind-indexed for lookups; excluded from search; and masked in responses unless the token carries the
sreveal scope for this record type.
-
equals
-
getAdditionalProperties
-
hashCode
public int hashCode() -
toString
-
builder
-