public abstract class KeyValueFeatureStore<VALUE> extends AbstractFeatureStore
| Modifier and Type | Field and Description |
|---|---|
protected KeyValueDriver<String,VALUE> |
driver
Driver to access a K/V Store.
|
protected FeatureMapper<VALUE> |
featureMapper
Work with Mapping.
|
| Constructor and Description |
|---|
KeyValueFeatureStore()
Default constructor
|
KeyValueFeatureStore(KeyValueDriver<String,VALUE> driver)
Work with Key-Value.
|
KeyValueFeatureStore(KeyValueDriver<String,VALUE> driver,
FeatureMapper<VALUE> mapper)
Work with Key-Value.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Empty features set.
|
void |
create(Feature feature)
Create flipPoint in storage (with roles).
|
void |
delete(String uid)
Remove fliPoint from store.
|
boolean |
exist(String uid)
Check if Feature Exist.
|
KeyValueDriver<String,VALUE> |
getDriver()
Getter accessor for attribute 'driver'.
|
FeatureMapper<VALUE> |
getFeatureMapper()
Getter accessor for attribute 'featureMapper'.
|
Feature |
read(String uid)
Create Feature is does not exist and enable it.
|
Map<String,Feature> |
readAll()
Access to all features to get information.
|
void |
setDriver(KeyValueDriver<String,VALUE> driver)
Setter accessor for attribute 'driver'.
|
void |
setFeatureMapper(FeatureMapper<VALUE> featureMapper)
Setter accessor for attribute 'featureMapper'.
|
void |
update(Feature feature)
Update FlipPoint within store.
|
addToGroup, assertFeatureExist, assertFeatureNotExist, assertFeatureNotNull, assertGroupExist, createSchema, disable, disableGroup, enable, enableGroup, existGroup, grantRoleOnFeature, importFeatures, importFeaturesFromXmlFile, readAllGroups, readGroup, removeFromGroup, removeRoleFromFeature, toJson, toStringprotected KeyValueDriver<String,VALUE> driver
protected FeatureMapper<VALUE> featureMapper
public KeyValueFeatureStore()
public KeyValueFeatureStore(KeyValueDriver<String,VALUE> driver)
driver - target driverpublic KeyValueFeatureStore(KeyValueDriver<String,VALUE> driver, FeatureMapper<VALUE> mapper)
driver - target driverpublic boolean exist(String uid)
public void update(Feature feature)
feature - flipPoint new elementpublic Map<String,Feature> readAll()
public void create(Feature feature)
feature - create rolespublic void delete(String uid)
public void clear()
public KeyValueDriver<String,VALUE> getDriver()
public void setDriver(KeyValueDriver<String,VALUE> driver)
driver - new value for 'driver 'public FeatureMapper<VALUE> getFeatureMapper()
public void setFeatureMapper(FeatureMapper<VALUE> featureMapper)
featureMapper - new value for 'featureMapper 'Copyright © 2013–2020 FF4J. All rights reserved.