public final class ObjectStores extends Object
ObjectStore and similar datasets within application
configuration.| Modifier and Type | Method and Description |
|---|---|
static void |
createIndexedObjectStore(ApplicationConfigurer configurer,
String datasetName,
Type type)
Same as
createIndexedObjectStore(ApplicationConfigurer, String, Type,
DatasetProperties) but with empty properties. |
static void |
createIndexedObjectStore(ApplicationConfigurer configurer,
String datasetName,
Type type,
DatasetProperties props)
Adds
IndexedObjectStore dataset to be created at application deploy if not exists. |
static void |
createObjectStore(ApplicationConfigurer configurer,
String datasetName,
Type type)
Same as
createObjectStore(ApplicationConfigurer, String, Type, DatasetProperties) but
with empty properties. |
static void |
createObjectStore(ApplicationConfigurer configurer,
String datasetName,
Type type,
DatasetProperties props)
Adds an
ObjectStore dataset to be created at application deploy if it does not exist. |
static DatasetProperties |
objectStoreProperties(Type type,
DatasetProperties props)
Creates properties for
ObjectStore dataset instance. |
public static void createObjectStore(ApplicationConfigurer configurer, String datasetName, Type type, DatasetProperties props) throws UnsupportedTypeException
ObjectStore dataset to be created at application deploy if it does not exist.configurer - application configurerdatasetName - dataset nametype - type of objects to be stored in ObjectStoreprops - any additional dataset propertiesUnsupportedTypeExceptionpublic static void createObjectStore(ApplicationConfigurer configurer, String datasetName, Type type) throws UnsupportedTypeException
createObjectStore(ApplicationConfigurer, String, Type, DatasetProperties) but
with empty properties.UnsupportedTypeExceptionpublic static void createIndexedObjectStore(ApplicationConfigurer configurer, String datasetName, Type type, DatasetProperties props) throws UnsupportedTypeException
IndexedObjectStore dataset to be created at application deploy if not exists.configurer - application configurerdatasetName - dataset nametype - type of objects to be stored in IndexedObjectStoreprops - any additional dataset propertiesUnsupportedTypeExceptionpublic static void createIndexedObjectStore(ApplicationConfigurer configurer, String datasetName, Type type) throws UnsupportedTypeException
createIndexedObjectStore(ApplicationConfigurer, String, Type,
DatasetProperties) but with empty properties.UnsupportedTypeExceptionpublic static DatasetProperties objectStoreProperties(Type type, DatasetProperties props) throws UnsupportedTypeException
ObjectStore dataset instance.type - type of objects to be stored in datasetDatasetProperties for the datasetUnsupportedTypeExceptionCopyright © 2024 Cask Data, Inc. Licensed under the Apache License, Version 2.0.