public final class IndexDescriptor<T> implements IndexRegistration:
Typed persistent-index descriptor for a logical entity property path.
Construction resolves every property once and rejects an unknown path before any JSON or XML source is opened.
byEmail = IndexDescriptor<Customer>("email", unique=true)
configuration = JSONConfiguration("customers.json", indexes=[byEmail])| Modifier and Type | Member | Description |
|---|---|---|
| public readonly property | definitionHashdefinitionHash as String |
Stable descriptor fingerprint used by persistent index metadata. |
| public readonly property | entityTypeentityType as Type: |
Exact indexed entity type. |
| public readonly property | propertyPathpropertyPath as String |
Dot-separated logical property path. |
| public readonly property | uniqueunique as Boolean |
Whether duplicate non-null values are forbidden. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | IndexDescriptorIndexDescriptor(propertyPath as String, unique as Boolean = false): |
Creates and validates a typed descriptor. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | keyToken | Produces an exact type-aware JSON token for persistent lookup. |
| public | value | Reads the indexed value through cached reflected accessors. |