Class AbstractDataStoreFactory (1.44.2)

public abstract class AbstractDataStoreFactory implements DataStoreFactory

Abstract data store factory implementation.

Inheritance

java.lang.Object > AbstractDataStoreFactory

Implements

DataStoreFactory

Constructors

AbstractDataStoreFactory()

public AbstractDataStoreFactory()

Methods

<V>createDataStore(String id)

protected abstract DataStore<V> <V>createDataStore(String id)

Returns a new instance of a type-specific data store based on the given unique ID.

The DataStore#getId() must match the id parameter from this method.

Parameter
Name Description
id String

unique ID to refer to typed data store

Returns
Type Description
DataStore<V>
Exceptions
Type Description
IOException

<V>getDataStore(String id)

public final DataStore<V> <V>getDataStore(String id)

Returns a type-specific data store based on the given unique ID.

If a data store by that ID does not already exist, it should be created now, stored for later access, and returned. Otherwise, if there is already a data store by that ID, it should be returned. The DataStore#getId() must match the id parameter from this method.

The ID must be at least 1 and at most 30 characters long, and must contain only alphanumeric or underscore characters.

Parameter
Name Description
id String
Returns
Type Description
DataStore<V>
Exceptions
Type Description
IOException