public class AccumuloRangeStore<T extends Comparable<T>> extends Object implements RangeStore<T>
| Constructor and Description |
|---|
AccumuloRangeStore(org.apache.accumulo.core.client.Connector connector,
RangeHelper<T> helper) |
AccumuloRangeStore(org.apache.accumulo.core.client.Connector connector,
String tableName,
StoreConfig config,
RangeHelper<T> helper) |
| 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.
|
void |
delete(Iterable<org.calrissian.mango.domain.ValueRange<T>> ranges)
Deletes ranges from the store.
|
Iterable<org.calrissian.mango.domain.ValueRange<T>> |
query(org.calrissian.mango.domain.ValueRange<T> range,
Auths auths)
Queries for any ranges that intersect, overlap, or are contained by the given range.
|
void |
save(Iterable<org.calrissian.mango.domain.ValueRange<T>> ranges)
Inserts ranges into the store.
|
void |
shutdown()
Will close all underlying resources
|
public AccumuloRangeStore(org.apache.accumulo.core.client.Connector connector,
RangeHelper<T> helper)
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 AccumuloRangeStore(org.apache.accumulo.core.client.Connector connector,
String tableName,
StoreConfig config,
RangeHelper<T> helper)
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 shutdown()
throws org.apache.accumulo.core.client.MutationsRejectedException
org.apache.accumulo.core.client.MutationsRejectedExceptionpublic void save(Iterable<org.calrissian.mango.domain.ValueRange<T>> ranges)
save in interface RangeStore<T extends Comparable<T>>public void delete(Iterable<org.calrissian.mango.domain.ValueRange<T>> ranges)
delete in interface RangeStore<T extends Comparable<T>>public Iterable<org.calrissian.mango.domain.ValueRange<T>> query(org.calrissian.mango.domain.ValueRange<T> range, Auths auths)
query in interface RangeStore<T extends Comparable<T>>Copyright © 2014 Calrissian. All Rights Reserved.