public class AccumuloFeatureStore extends Object implements FeatureStore
| Modifier and Type | Field and Description |
|---|---|
protected static StoreConfig |
DEFAULT_STORE_CONFIG |
static String |
DEFAULT_TABLE_NAME |
protected FeatureRegistry |
registry |
static String |
REVERSE_SUFFIX |
| Constructor and Description |
|---|
AccumuloFeatureStore(org.apache.accumulo.core.client.Connector connector) |
AccumuloFeatureStore(org.apache.accumulo.core.client.Connector connector,
String tableName,
StoreConfig config,
FeatureRegistry featureRegistry) |
| Modifier and Type | Method and Description |
|---|---|
protected <T extends Feature> |
buildFeatureTransform(AccumuloFeatureConfig xform) |
protected org.apache.accumulo.core.data.Range |
buildRange(String type,
Date start,
Date end,
TimeUnit timeUnit) |
void |
flush() |
void |
initialize() |
protected org.apache.accumulo.core.client.ScannerBase |
metricScanner(AccumuloFeatureConfig xform,
Date start,
Date end,
String group,
Iterable<String> types,
String name,
TimeUnit timeUnit,
Auths auths) |
protected org.apache.accumulo.core.client.ScannerBase |
metricScanner(AccumuloFeatureConfig xform,
Date start,
Date end,
String group,
String type,
String name,
TimeUnit timeUnit,
Auths auths) |
<T extends Feature> |
query(Date start,
Date end,
String group,
Set<String> types,
String name,
TimeUnit timeUnit,
Class<T> featureType,
Auths auths)
Queries features back from the store for a group and multiple types
|
<T extends Feature> |
query(Date start,
Date end,
String group,
String type,
String name,
TimeUnit timeUnit,
Class<T> featureType,
Auths auths)
Query features back from the store.
|
void |
save(Iterable<? extends Feature> featureData)
Save a set of features to the store
|
void |
save(Iterable<? extends Feature> featureData,
Iterable<TimeUnit> timeUnits)
Save a set of features to the store for the specified time units
|
void |
shutdown()
Will close all underlying resources
|
public static final String DEFAULT_TABLE_NAME
public static final String REVERSE_SUFFIX
protected static final StoreConfig DEFAULT_STORE_CONFIG
protected final FeatureRegistry registry
public AccumuloFeatureStore(org.apache.accumulo.core.client.Connector connector)
throws org.apache.accumulo.core.client.TableNotFoundException,
org.apache.accumulo.core.client.TableExistsException,
org.apache.accumulo.core.client.AccumuloSecurityException,
org.apache.accumulo.core.client.AccumuloException
org.apache.accumulo.core.client.TableNotFoundExceptionorg.apache.accumulo.core.client.TableExistsExceptionorg.apache.accumulo.core.client.AccumuloSecurityExceptionorg.apache.accumulo.core.client.AccumuloExceptionpublic AccumuloFeatureStore(org.apache.accumulo.core.client.Connector connector,
String tableName,
StoreConfig config,
FeatureRegistry featureRegistry)
throws org.apache.accumulo.core.client.TableNotFoundException,
org.apache.accumulo.core.client.TableExistsException,
org.apache.accumulo.core.client.AccumuloSecurityException,
org.apache.accumulo.core.client.AccumuloException
org.apache.accumulo.core.client.TableNotFoundExceptionorg.apache.accumulo.core.client.TableExistsExceptionorg.apache.accumulo.core.client.AccumuloSecurityExceptionorg.apache.accumulo.core.client.AccumuloExceptionpublic void initialize()
throws org.apache.accumulo.core.client.AccumuloException,
org.apache.accumulo.core.client.AccumuloSecurityException,
org.apache.accumulo.core.client.TableNotFoundException,
org.apache.accumulo.core.client.TableExistsException
org.apache.accumulo.core.client.AccumuloExceptionorg.apache.accumulo.core.client.AccumuloSecurityExceptionorg.apache.accumulo.core.client.TableNotFoundExceptionorg.apache.accumulo.core.client.TableExistsExceptionprotected org.apache.accumulo.core.client.ScannerBase metricScanner(AccumuloFeatureConfig xform, Date start, Date end, String group, Iterable<String> types, String name, TimeUnit timeUnit, Auths auths)
protected org.apache.accumulo.core.client.ScannerBase metricScanner(AccumuloFeatureConfig xform, Date start, Date end, String group, String type, String name, TimeUnit timeUnit, Auths auths)
protected org.apache.accumulo.core.data.Range buildRange(String type, Date start, Date end, TimeUnit timeUnit)
public void shutdown()
throws org.apache.accumulo.core.client.MutationsRejectedException
org.apache.accumulo.core.client.MutationsRejectedExceptionpublic void save(Iterable<? extends Feature> featureData)
FeatureStoresave in interface FeatureStorepublic void save(Iterable<? extends Feature> featureData, Iterable<TimeUnit> timeUnits)
save in interface FeatureStorepublic void flush()
throws Exception
flush in interface FeatureStoreExceptionpublic <T extends Feature> org.calrissian.mango.collect.CloseableIterable<T> query(Date start, Date end, String group, String type, String name, TimeUnit timeUnit, Class<T> featureType, Auths auths)
query in interface FeatureStorepublic <T extends Feature> org.calrissian.mango.collect.CloseableIterable<T> query(Date start, Date end, String group, Set<String> types, String name, TimeUnit timeUnit, Class<T> featureType, Auths auths)
FeatureStorequery in interface FeatureStoreprotected <T extends Feature> FeatureTransform<T> buildFeatureTransform(AccumuloFeatureConfig xform)
Copyright © 2014 Calrissian. All Rights Reserved.