public interface NameSpaceFactory
NameSpace
instances.Modifier and Type | Method and Description |
---|---|
boolean |
canOpen(java.lang.String location)
Determine whether a given location can be opened.
|
void |
closeStorage(java.lang.String location)
Close the namespace storage.
|
void |
deleteNameSpace(java.lang.String location,
java.lang.String name)
Delete a namespace.
|
void |
deleteNameSpace(java.lang.String location,
java.lang.String name,
java.util.Collection<java.lang.String> secondaryKeys)
Delete a namespace and associated secondary key data.
|
NameSpace |
getNameSpace(java.lang.String location,
java.lang.String name,
int type,
SecondaryKeyProvider provider)
Get a namespace.
|
java.util.Iterator<java.lang.String> |
getNameSpaceIterator(java.lang.String location,
java.lang.String prefix,
boolean ignorecase)
Get an iterator of available namespace names.
|
java.util.Iterator<java.lang.String> |
getReverseNameSpaceIterator(java.lang.String location,
java.lang.String prefix,
boolean ignorecase)
Get an iterator of available namespace names, in reverse order.
|
void |
shutdown()
Shut down this factory.
|
NameSpace getNameSpace(java.lang.String location, java.lang.String name, int type, SecondaryKeyProvider provider)
location
- the location of the namespacename
- the name of the namespacetype
- the type of namespace, either NameSpace.NSTYPE_NORMAL
or NameSpace.NSTYPE_PACKED
provider
- the secondary key providerjava.util.Iterator<java.lang.String> getNameSpaceIterator(java.lang.String location, java.lang.String prefix, boolean ignorecase)
location
- the location to iterateprefix
- the prefix to matchignorecase
- whether to ignore casejava.util.Iterator<java.lang.String> getReverseNameSpaceIterator(java.lang.String location, java.lang.String prefix, boolean ignorecase)
location
- the location to iterateprefix
- the prefix to matchignorecase
- whether to ignore casevoid deleteNameSpace(java.lang.String location, java.lang.String name)
location
- the location of the namespacename
- the name of the namespace to be deletedvoid deleteNameSpace(java.lang.String location, java.lang.String name, java.util.Collection<java.lang.String> secondaryKeys)
location
- the location of the namespacename
- the name of the namespace to be deletedsecondaryKeys
- the secondary keys associated with the namespaceboolean canOpen(java.lang.String location)
false
could indicate that the user does not have the
necessary permission to open that location, or the location does not
support file system features required by the implementation (such as file
locks over network drives).location
- the location of the storage to be openedtrue
if the storage location can be opened.void closeStorage(java.lang.String location)
location
- the location of the storage to be closedvoid shutdown()