public abstract class TableOperationsHelper extends Object implements TableOperations
Constructor and Description |
---|
TableOperationsHelper() |
Modifier and Type | Method and Description |
---|---|
void |
attachIterator(String tableName,
IteratorSetting setting)
Add an iterator to a table on all scopes.
|
void |
attachIterator(String tableName,
IteratorSetting setting,
EnumSet<org.apache.accumulo.core.iterators.IteratorUtil.IteratorScope> scopes)
Add an iterator to a table on the given scopes.
|
void |
checkIteratorConflicts(String tableName,
IteratorSetting setting,
EnumSet<org.apache.accumulo.core.iterators.IteratorUtil.IteratorScope> scopes)
Check whether a given iterator configuration conflicts with existing configuration; in particular, determine if the name or priority are already in use for
the specified scopes.
|
IteratorSetting |
getIteratorSetting(String tableName,
String name,
org.apache.accumulo.core.iterators.IteratorUtil.IteratorScope scope)
Get the settings for an iterator.
|
Map<String,EnumSet<org.apache.accumulo.core.iterators.IteratorUtil.IteratorScope>> |
listIterators(String tableName)
Get a list of iterators for this table.
|
void |
removeIterator(String tableName,
String name,
EnumSet<org.apache.accumulo.core.iterators.IteratorUtil.IteratorScope> scopes)
Remove an iterator from a table by name.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addAggregators, addSplits, clearLocatorCache, clone, compact, create, create, create, delete, deleteRows, exists, flush, flush, getLocalityGroups, getMaxRow, getProperties, getSplits, getSplits, importDirectory, importDirectory, list, merge, offline, online, removeProperty, rename, setLocalityGroups, setProperty, splitRangeByTablets, tableIdMap
public void attachIterator(String tableName, IteratorSetting setting) throws AccumuloSecurityException, AccumuloException, TableNotFoundException
TableOperations
attachIterator
in interface TableOperations
tableName
- the name of the tablesetting
- object specifying the properties of the iteratorAccumuloSecurityException
- thrown if the user does not have the ability to set properties on the tableAccumuloException
TableNotFoundException
- throw if the table no longer existspublic void attachIterator(String tableName, IteratorSetting setting, EnumSet<org.apache.accumulo.core.iterators.IteratorUtil.IteratorScope> scopes) throws AccumuloSecurityException, AccumuloException, TableNotFoundException
TableOperations
attachIterator
in interface TableOperations
tableName
- the name of the tablesetting
- object specifying the properties of the iteratorAccumuloSecurityException
- thrown if the user does not have the ability to set properties on the tableAccumuloException
TableNotFoundException
- throw if the table no longer existspublic void removeIterator(String tableName, String name, EnumSet<org.apache.accumulo.core.iterators.IteratorUtil.IteratorScope> scopes) throws AccumuloSecurityException, AccumuloException, TableNotFoundException
TableOperations
removeIterator
in interface TableOperations
tableName
- the name of the tablename
- the name of the iteratorscopes
- the scopes of the iteratorAccumuloSecurityException
- thrown if the user does not have the ability to set properties on the tableAccumuloException
TableNotFoundException
- throw if the table no longer existspublic IteratorSetting getIteratorSetting(String tableName, String name, org.apache.accumulo.core.iterators.IteratorUtil.IteratorScope scope) throws AccumuloSecurityException, AccumuloException, TableNotFoundException
TableOperations
getIteratorSetting
in interface TableOperations
tableName
- the name of the tablename
- the name of the iteratorscope
- the scope of the iteratorAccumuloSecurityException
- thrown if the user does not have the ability to set properties on the tableAccumuloException
TableNotFoundException
- throw if the table no longer existspublic Map<String,EnumSet<org.apache.accumulo.core.iterators.IteratorUtil.IteratorScope>> listIterators(String tableName) throws AccumuloSecurityException, AccumuloException, TableNotFoundException
TableOperations
listIterators
in interface TableOperations
tableName
- the name of the tableAccumuloSecurityException
AccumuloException
TableNotFoundException
public void checkIteratorConflicts(String tableName, IteratorSetting setting, EnumSet<org.apache.accumulo.core.iterators.IteratorUtil.IteratorScope> scopes) throws AccumuloException, TableNotFoundException
TableOperations
checkIteratorConflicts
in interface TableOperations
tableName
- the name of the tablesetting
- object specifying the properties of the iteratorAccumuloException
TableNotFoundException
Copyright © 2016 The Apache Software Foundation. All Rights Reserved.