public class EventKeyValueIndex extends Object implements KeyValueIndex<org.calrissian.mango.domain.event.Event>
| Constructor and Description |
|---|
EventKeyValueIndex(org.apache.accumulo.core.client.Connector connector,
String indexTable,
ShardBuilder<org.calrissian.mango.domain.event.Event> shardBuilder,
StoreConfig config,
org.calrissian.mango.types.TypeRegistry<String> typeRegistry) |
| Modifier and Type | Method and Description |
|---|---|
void |
flush() |
void |
indexKeyValues(Iterable<? extends org.calrissian.mango.domain.event.Event> items) |
void |
shutdown() |
org.calrissian.mango.collect.CloseableIterable<org.calrissian.mango.domain.Pair<String,String>> |
uniqueKeys(String prefix,
Auths auths) |
public EventKeyValueIndex(org.apache.accumulo.core.client.Connector connector,
String indexTable,
ShardBuilder<org.calrissian.mango.domain.event.Event> shardBuilder,
StoreConfig config,
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
org.apache.accumulo.core.client.TableNotFoundExceptionorg.apache.accumulo.core.client.TableExistsExceptionorg.apache.accumulo.core.client.AccumuloSecurityExceptionorg.apache.accumulo.core.client.AccumuloExceptionpublic void indexKeyValues(Iterable<? extends org.calrissian.mango.domain.event.Event> items)
indexKeyValues in interface KeyValueIndex<org.calrissian.mango.domain.event.Event>public org.calrissian.mango.collect.CloseableIterable<org.calrissian.mango.domain.Pair<String,String>> uniqueKeys(String prefix, Auths auths)
public void flush()
throws Exception
flush in interface KeyValueIndex<org.calrissian.mango.domain.event.Event>Exceptionpublic void shutdown()
throws Exception
shutdown in interface KeyValueIndex<org.calrissian.mango.domain.event.Event>ExceptionCopyright © 2014 Calrissian. All Rights Reserved.