Interface MetadataStorageConfig
- All Known Implementing Classes:
DefaultMetadataStorageConfig
public interface MetadataStorageConfig
Metadata configuration.
-
Method Summary
Modifier and TypeMethodDescriptionSQL definition of metadata field(s) list.indexes()
Metadata Indexes, list of fields to use as index.Metadata storage mode COMBINED_JSON: For dynamic metadata, when you don't know the list of metadata that will be used.
-
Method Details
-
storageMode
MetadataStorageMode storageMode()Metadata storage mode- COMBINED_JSON: For dynamic metadata, when you don't know the list of metadata that will be used.
- COLUMN_PER_KEY: for static metadata, when you know in advance the list of metadata
- Returns:
- Metadata storage mode
-
columnDefinitions
SQL definition of metadata field(s) list. Example:- COMBINED_JSON:
Collections.singletonList("metadata JSON NULL")
- COLUMN_PER_KEY:
Arrays.asList("condominium_id uuid null", "user uuid null")
- Returns:
- list of column definitions
- COMBINED_JSON:
-
indexes
Metadata Indexes, list of fields to use as index. Example:- COLUMN_PER_KEY:
Arrays.asList("key", "name", "age")
- Returns:
- Metadata Indexes list
- COLUMN_PER_KEY:
-