public class AccumuloChangelogStore extends Object implements ChangelogStore
| Constructor and Description |
|---|
AccumuloChangelogStore(org.apache.accumulo.core.client.Connector connector) |
AccumuloChangelogStore(org.apache.accumulo.core.client.Connector connector,
BucketSize bucketSize) |
AccumuloChangelogStore(org.apache.accumulo.core.client.Connector connector,
String tableName,
StoreConfig config) |
AccumuloChangelogStore(org.apache.accumulo.core.client.Connector connector,
String tableName,
StoreConfig config,
BucketSize bucketSize) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
configureTable(org.apache.accumulo.core.client.Connector connector,
String tableName)
Utility method to update the correct iterators to the table.
|
org.calrissian.mango.collect.CloseableIterable<StoreEntry> |
getChanges(Iterable<Date> buckets,
Auths auths)
Gets the actual change objects that live inside of the specified buckets
|
org.calrissian.mango.hash.tree.MerkleTree |
getChangeTree(Date start,
Date stop,
Auths auths)
Get a Merkle tree containing hashes of each of the buckets
|
org.calrissian.mango.hash.tree.MerkleTree |
getChangeTree(Date start,
Date stop,
int dimensions,
Auths auths)
Get a Merkle tree containing hashes of each of the buckets with the given dimensions
|
void |
put(Iterable<StoreEntry> changes)
Puts a set of changes into buckets of the store.
|
public AccumuloChangelogStore(org.apache.accumulo.core.client.Connector connector)
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.TableExistsExceptionpublic AccumuloChangelogStore(org.apache.accumulo.core.client.Connector connector,
String tableName,
StoreConfig config)
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.TableExistsExceptionpublic AccumuloChangelogStore(org.apache.accumulo.core.client.Connector connector,
BucketSize bucketSize)
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.TableExistsExceptionpublic AccumuloChangelogStore(org.apache.accumulo.core.client.Connector connector,
String tableName,
StoreConfig config,
BucketSize bucketSize)
throws org.apache.accumulo.core.client.TableExistsException,
org.apache.accumulo.core.client.AccumuloSecurityException,
org.apache.accumulo.core.client.AccumuloException,
org.apache.accumulo.core.client.TableNotFoundException
org.apache.accumulo.core.client.TableExistsExceptionorg.apache.accumulo.core.client.AccumuloSecurityExceptionorg.apache.accumulo.core.client.AccumuloExceptionorg.apache.accumulo.core.client.TableNotFoundExceptionprotected void configureTable(org.apache.accumulo.core.client.Connector connector,
String tableName)
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 put(Iterable<StoreEntry> changes)
put in interface ChangelogStorechanges - public org.calrissian.mango.hash.tree.MerkleTree getChangeTree(Date start, Date stop, Auths auths)
ChangelogStoregetChangeTree in interface ChangelogStorepublic org.calrissian.mango.hash.tree.MerkleTree getChangeTree(Date start, Date stop, int dimensions, Auths auths)
getChangeTree in interface ChangelogStorepublic org.calrissian.mango.collect.CloseableIterable<StoreEntry> getChanges(Iterable<Date> buckets, Auths auths)
getChanges in interface ChangelogStorebuckets - dates representing time increments (i.e. 15 minutes)Copyright © 2014 Calrissian. All Rights Reserved.