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 |
commit() |
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.TableNotFoundExceptionpublic 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 commit()
throws Exception
commit 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.