|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.accumulo.core.client.impl.NamespaceOperationsHelper
public abstract class NamespaceOperationsHelper
Constructor Summary | |
---|---|
NamespaceOperationsHelper()
|
Method Summary | |
---|---|
int |
addConstraint(String namespace,
String constraintClassName)
Add a new constraint to a namespace. |
void |
attachIterator(String namespace,
IteratorSetting setting)
Add an iterator to a namespace on all scopes. |
void |
attachIterator(String namespace,
IteratorSetting setting,
EnumSet<IteratorUtil.IteratorScope> scopes)
Add an iterator to a namespace on the given scopes. |
void |
checkIteratorConflicts(String namespace,
IteratorSetting setting,
EnumSet<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. |
String |
defaultNamespace()
Returns the name of the default namespace |
IteratorSetting |
getIteratorSetting(String namespace,
String name,
IteratorUtil.IteratorScope scope)
Get the settings for an iterator. |
Map<String,Integer> |
listConstraints(String namespace)
List constraints on a namespace with their assigned numbers. |
Map<String,EnumSet<IteratorUtil.IteratorScope>> |
listIterators(String namespace)
Get a list of iterators for this namespace. |
void |
removeConstraint(String namespace,
int number)
Remove a constraint from a namespace. |
void |
removeIterator(String namespace,
String name,
EnumSet<IteratorUtil.IteratorScope> scopes)
Remove an iterator from a namespace by name. |
String |
systemNamespace()
Returns the name of the system reserved namespace |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.accumulo.core.client.admin.NamespaceOperations |
---|
create, delete, exists, getProperties, list, namespaceIdMap, removeProperty, rename, setProperty, testClassLoad |
Constructor Detail |
---|
public NamespaceOperationsHelper()
Method Detail |
---|
public String systemNamespace()
NamespaceOperations
systemNamespace
in interface NamespaceOperations
public String defaultNamespace()
NamespaceOperations
defaultNamespace
in interface NamespaceOperations
public void attachIterator(String namespace, IteratorSetting setting) throws AccumuloSecurityException, AccumuloException, NamespaceNotFoundException
NamespaceOperations
attachIterator
in interface NamespaceOperations
namespace
- the name of the namespacesetting
- object specifying the properties of the iterator
AccumuloSecurityException
- if the user does not have permission
AccumuloException
- if a general error occurs
NamespaceNotFoundException
- if the specified namespace doesn't existpublic void attachIterator(String namespace, IteratorSetting setting, EnumSet<IteratorUtil.IteratorScope> scopes) throws AccumuloSecurityException, AccumuloException, NamespaceNotFoundException
NamespaceOperations
attachIterator
in interface NamespaceOperations
namespace
- the name of the namespacesetting
- object specifying the properties of the iteratorscopes
- the set of scopes the iterator should apply to
AccumuloSecurityException
- if the user does not have permission
AccumuloException
- if a general error occurs
NamespaceNotFoundException
- if the specified namespace doesn't existpublic void removeIterator(String namespace, String name, EnumSet<IteratorUtil.IteratorScope> scopes) throws AccumuloSecurityException, AccumuloException, NamespaceNotFoundException
NamespaceOperations
removeIterator
in interface NamespaceOperations
namespace
- the name of the namespacename
- the name of the iteratorscopes
- the scopes of the iterator
AccumuloSecurityException
- if the user does not have permission
AccumuloException
- if a general error occurs
NamespaceNotFoundException
- if the specified namespace doesn't existpublic IteratorSetting getIteratorSetting(String namespace, String name, IteratorUtil.IteratorScope scope) throws AccumuloSecurityException, AccumuloException, NamespaceNotFoundException
NamespaceOperations
getIteratorSetting
in interface NamespaceOperations
namespace
- the name of the namespacename
- the name of the iteratorscope
- the scope of the iterator
AccumuloSecurityException
- if the user does not have permission
AccumuloException
- if a general error occurs
NamespaceNotFoundException
- if the specified namespace doesn't existpublic Map<String,EnumSet<IteratorUtil.IteratorScope>> listIterators(String namespace) throws AccumuloSecurityException, AccumuloException, NamespaceNotFoundException
NamespaceOperations
listIterators
in interface NamespaceOperations
namespace
- the name of the namespace
AccumuloSecurityException
- if the user does not have permission
AccumuloException
- if a general error occurs
NamespaceNotFoundException
- if the specified namespace doesn't existpublic void checkIteratorConflicts(String namespace, IteratorSetting setting, EnumSet<IteratorUtil.IteratorScope> scopes) throws AccumuloException, NamespaceNotFoundException, AccumuloSecurityException
NamespaceOperations
checkIteratorConflicts
in interface NamespaceOperations
namespace
- the name of the namespacesetting
- object specifying the properties of the iteratorscopes
- the scopes of the iterator
AccumuloException
- if a general error occurs
NamespaceNotFoundException
- if the specified namespace doesn't exist
AccumuloSecurityException
- if the user does not have permissionpublic int addConstraint(String namespace, String constraintClassName) throws AccumuloException, AccumuloSecurityException, NamespaceNotFoundException
NamespaceOperations
addConstraint
in interface NamespaceOperations
namespace
- the name of the namespaceconstraintClassName
- the full name of the constraint class
AccumuloException
- if a general error occurs
AccumuloSecurityException
- if the user does not have permission
NamespaceNotFoundException
- if the specified namespace doesn't existpublic void removeConstraint(String namespace, int number) throws AccumuloException, AccumuloSecurityException, NamespaceNotFoundException
NamespaceOperations
removeConstraint
in interface NamespaceOperations
namespace
- the name of the namespacenumber
- the unique id number assigned to the constraint
AccumuloException
- if a general error occurs
AccumuloSecurityException
- if the user does not have permission
NamespaceNotFoundException
- if the specified namespace doesn't existpublic Map<String,Integer> listConstraints(String namespace) throws AccumuloException, NamespaceNotFoundException, AccumuloSecurityException
NamespaceOperations
listConstraints
in interface NamespaceOperations
namespace
- the name of the namespace
AccumuloException
- if a general error occurs
NamespaceNotFoundException
- if the specified namespace doesn't exist
AccumuloSecurityException
- if the user does not have permission
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |