IndexDescriptor
classin packageklyn.data
public final class IndexDescriptor<T> implements IndexRegistration:
IndexDescriptor
All Implemented Interfaces: 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.

Example
byEmail = IndexDescriptor<Customer>("email", unique=true)
configuration = JSONConfiguration("customers.json", indexes=[byEmail])
Properties
Modifier and Type Member Description
public readonly property definitionHash
definitionHash as String
Stable descriptor fingerprint used by persistent index metadata.
public readonly property entityType
entityType as Type:
Exact indexed entity type.
public readonly property propertyPath
propertyPath as String
Dot-separated logical property path.
public readonly property unique
unique as Boolean
Whether duplicate non-null values are forbidden.
Inherited Properties
propertyInherited Properties from IndexRegistration: entityType
Constructors
Modifier and Type Member Description
public IndexDescriptor
IndexDescriptor(propertyPath as String, unique as Boolean = false):
Creates and validates a typed descriptor.
Methods
Modifier and Type Member Description
public keyToken
keyToken(value as Object) as String:
Produces an exact type-aware JSON token for persistent lookup.
public value
value(entity as Object) as Object:
Reads the indexed value through cached reflected accessors.
Inherited Methods
methodInherited Methods from IndexRegistration: keyToken, value