@Component(value="IndexManager") @Scope(value="prototype") public final class IndexManagerImpl extends Object implements IndexManager
| Constructor and Description |
|---|
IndexManagerImpl(String instanceId) |
| Modifier and Type | Method and Description |
|---|---|
Index |
createIndex(String bagName,
CompositeIndexField compositeIndexFields,
boolean unique,
IndexField... values) |
Index |
createIndex(String bagName,
IndexField indexField,
boolean unique,
IndexField... valueFields) |
void |
flush() |
void |
flush(String bagName) |
Index |
getBestMatchingIndex(String bagName,
Set<String> fields) |
Index |
getIndex(String bagName,
String keyName) |
Map<String,Index> |
getIndexes(String bagName) |
List<Index> |
getLoadedIndexes() |
void |
removeIndex(String bagName,
String keyName) |
void |
shutdownIndexes() |
@Inject public IndexManagerImpl(String instanceId)
public void shutdownIndexes()
throws JasDBStorageException
shutdownIndexes in interface IndexManagerJasDBStorageExceptionpublic void flush()
throws JasDBStorageException
flush in interface IndexManagerJasDBStorageExceptionpublic void flush(String bagName) throws JasDBStorageException
flush in interface IndexManagerJasDBStorageExceptionpublic List<Index> getLoadedIndexes()
getLoadedIndexes in interface IndexManagerpublic Index getBestMatchingIndex(String bagName, Set<String> fields) throws JasDBStorageException
getBestMatchingIndex in interface IndexManagerJasDBStorageExceptionpublic Map<String,Index> getIndexes(String bagName) throws JasDBStorageException
getIndexes in interface IndexManagerJasDBStorageExceptionpublic Index getIndex(String bagName, String keyName) throws JasDBStorageException
getIndex in interface IndexManagerJasDBStorageExceptionpublic void removeIndex(String bagName, String keyName) throws JasDBStorageException
removeIndex in interface IndexManagerJasDBStorageExceptionpublic Index createIndex(String bagName, CompositeIndexField compositeIndexFields, boolean unique, IndexField... values) throws JasDBStorageException
createIndex in interface IndexManagerJasDBStorageExceptionpublic Index createIndex(String bagName, IndexField indexField, boolean unique, IndexField... valueFields) throws JasDBStorageException
createIndex in interface IndexManagerJasDBStorageExceptionCopyright © 2015. All rights reserved.