public class MultiIndexFactory extends Object
Paged
object:
each index is identified by a unique name, which must be used to refer to the index itself when opening or creating it.
Constructor and Description |
---|
MultiIndexFactory(Paged paged) |
Modifier and Type | Method and Description |
---|---|
<Key,Value> |
create(String indexName,
IndexFactory<Key,Value> indexFactory)
Create a new named index.
|
Set<String> |
indexes()
List the names of all indexes stored in the paged object.
|
<Key,Value> |
open(String indexName,
IndexFactory<Key,Value> indexFactory)
Open named index.
|
<Key,Value> |
openOrCreate(String indexName,
IndexFactory<Key,Value> indexFactory)
Open or create the named index.
|
public MultiIndexFactory(Paged paged)
public <Key,Value> Index<Key,Value> create(String indexName, IndexFactory<Key,Value> indexFactory)
Key
- The index key type.Value
- The index value type.indexName
- The unique index name.indexFactory
- The index factory used to actually create the index.public <Key,Value> Index<Key,Value> open(String indexName, IndexFactory<Key,Value> indexFactory)
Key
- The index key type.Value
- The index value type.indexName
- The unique index name.indexFactory
- The index factory used to actually open the index.public <Key,Value> Index<Key,Value> openOrCreate(String indexName, IndexFactory<Key,Value> indexFactory)
Key
- The index key type.Value
- The index value type.indexName
- The unique index name.indexFactory
- The index factory used to actually open or create the index.Copyright © 2009–2016 FuseSource, Corp.. All rights reserved.