@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 IndexManager
JasDBStorageException
public void flush() throws JasDBStorageException
flush
in interface IndexManager
JasDBStorageException
public void flush(String bagName) throws JasDBStorageException
flush
in interface IndexManager
JasDBStorageException
public List<Index> getLoadedIndexes()
getLoadedIndexes
in interface IndexManager
public Index getBestMatchingIndex(String bagName, Set<String> fields) throws JasDBStorageException
getBestMatchingIndex
in interface IndexManager
JasDBStorageException
public Map<String,Index> getIndexes(String bagName) throws JasDBStorageException
getIndexes
in interface IndexManager
JasDBStorageException
public Index getIndex(String bagName, String keyName) throws JasDBStorageException
getIndex
in interface IndexManager
JasDBStorageException
public void removeIndex(String bagName, String keyName) throws JasDBStorageException
removeIndex
in interface IndexManager
JasDBStorageException
public Index createIndex(String bagName, CompositeIndexField compositeIndexFields, boolean unique, IndexField... values) throws JasDBStorageException
createIndex
in interface IndexManager
JasDBStorageException
public Index createIndex(String bagName, IndexField indexField, boolean unique, IndexField... valueFields) throws JasDBStorageException
createIndex
in interface IndexManager
JasDBStorageException
Copyright © 2015. All rights reserved.