public class AccumuloLastNStore extends Object implements LastNStore
| Constructor and Description |
|---|
AccumuloLastNStore(org.apache.accumulo.core.client.Connector connector)
Uses the default tableName, store config, and maxVersions
|
AccumuloLastNStore(org.apache.accumulo.core.client.Connector connector,
int maxVersions)
Uses the default tableName and store config
|
AccumuloLastNStore(org.apache.accumulo.core.client.Connector connector,
String tableName,
StoreConfig config,
int maxVersions,
org.calrissian.mango.types.TypeRegistry<String> typeRegistry)
Uses the specified tableName, store config, and maxVersions
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
configureTable(org.apache.accumulo.core.client.Connector connector,
String tableName,
int maxVersions)
Utility method to update the correct iterators to the table.
|
void |
flush() |
Iterable<org.calrissian.mango.domain.event.Event> |
get(String index,
Auths auths)
Pull back the last N entries.
|
void |
put(String group,
org.calrissian.mango.domain.event.Event entry)
Add the index which will be managed by the versioning iterator and the data rows to scan from the index
|
void |
shutdown()
Free up threads from the batch writer.
|
public AccumuloLastNStore(org.apache.accumulo.core.client.Connector connector)
throws org.apache.accumulo.core.client.TableNotFoundException,
org.apache.accumulo.core.client.AccumuloSecurityException,
org.apache.accumulo.core.client.AccumuloException,
org.apache.accumulo.core.client.TableExistsException
connector - org.apache.accumulo.core.client.TableNotFoundExceptionorg.apache.accumulo.core.client.AccumuloSecurityExceptionorg.apache.accumulo.core.client.AccumuloExceptionorg.apache.accumulo.core.client.TableExistsExceptionpublic AccumuloLastNStore(org.apache.accumulo.core.client.Connector connector,
int maxVersions)
throws org.apache.accumulo.core.client.TableNotFoundException,
org.apache.accumulo.core.client.AccumuloSecurityException,
org.apache.accumulo.core.client.AccumuloException,
org.apache.accumulo.core.client.TableExistsException
connector - org.apache.accumulo.core.client.TableNotFoundExceptionorg.apache.accumulo.core.client.AccumuloSecurityExceptionorg.apache.accumulo.core.client.AccumuloExceptionorg.apache.accumulo.core.client.TableExistsExceptionpublic AccumuloLastNStore(org.apache.accumulo.core.client.Connector connector,
String tableName,
StoreConfig config,
int maxVersions,
org.calrissian.mango.types.TypeRegistry<String> typeRegistry)
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
connector - org.apache.accumulo.core.client.TableNotFoundExceptionorg.apache.accumulo.core.client.TableExistsExceptionorg.apache.accumulo.core.client.AccumuloSecurityExceptionorg.apache.accumulo.core.client.AccumuloExceptionprotected void configureTable(org.apache.accumulo.core.client.Connector connector,
String tableName,
int maxVersions)
throws org.apache.accumulo.core.client.AccumuloSecurityException,
org.apache.accumulo.core.client.AccumuloException,
org.apache.accumulo.core.client.TableNotFoundException
connector - org.apache.accumulo.core.client.AccumuloSecurityExceptionorg.apache.accumulo.core.client.AccumuloExceptionorg.apache.accumulo.core.client.TableNotFoundExceptionpublic void shutdown()
throws org.apache.accumulo.core.client.MutationsRejectedException
Exceptionorg.apache.accumulo.core.client.MutationsRejectedExceptionpublic void put(String group, org.calrissian.mango.domain.event.Event entry)
put in interface LastNStoregroup - entry - public void flush()
throws Exception
flush in interface LastNStoreExceptionpublic Iterable<org.calrissian.mango.domain.event.Event> get(String index, Auths auths)
get in interface LastNStoreindex - auths - Copyright © 2014 Calrissian. All Rights Reserved.