|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.unister.semweb.drums.api.DRUMSInstantiator
public class DRUMSInstantiator
This class provides some factory methods to instantiate DRUMS by opening or creating a table.
| Constructor Summary | |
|---|---|
DRUMSInstantiator()
|
|
| Method Summary | ||
|---|---|---|
static
|
createOrOpenTable(AbstractHashFunction hashFunction,
DRUMSParameterSet<Data> gp)
Creates or opens the table. |
|
static
|
createTable(AbstractHashFunction hashFunction,
DRUMSParameterSet<Data> gp)
This method creates a new DRUMS object. |
|
static
|
forceCreateTable(AbstractHashFunction hashFunction,
DRUMSParameterSet<Data> gp)
This method creates a new DRUMS object. |
|
static
|
openTable(DRUMS.AccessMode accessMode,
DRUMSParameterSet<Data> gp)
Opens an existing table. |
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DRUMSInstantiator()
| Method Detail |
|---|
public static <Data extends AbstractKVStorable> DRUMS<Data> createTable(AbstractHashFunction hashFunction,
DRUMSParameterSet<Data> gp)
throws java.io.IOException
DRUMSParameterSet doesn't exist, it will be created.DRUMSParameterSet already exists an IOException will be thrown.
hashFunction - the hash function, decides where to store/search elementsgp - pointer to the DRUMSParameterSet used by the DRUMS to open
DRUMS-object
java.io.IOException
public static <Data extends AbstractKVStorable> DRUMS<Data> forceCreateTable(AbstractHashFunction hashFunction,
DRUMSParameterSet<Data> gp)
throws java.io.IOException
DRUMS object. The old DRUMS will be overwritten.
hashFunction - the hash function, decides where to store/search elementsgp - pointer to the DRUMSParameterSet used by the DRUMS to open
DRUMS-object
java.io.IOException - if an error occurs while writing the configuration file
public static <Data extends AbstractKVStorable> DRUMS<Data> openTable(DRUMS.AccessMode accessMode,
DRUMSParameterSet<Data> gp)
throws java.io.IOException
accessMode - the AccessMode, how to access the DRUMSgp - pointer to the DRUMSParameterSet used by the DRUMS to open
java.io.IOException
public static <Data extends AbstractKVStorable> DRUMS<Data> createOrOpenTable(AbstractHashFunction hashFunction,
DRUMSParameterSet<Data> gp)
throws java.io.IOException
hashFunction - the hash function, decides where to store/search elementsgp - pointer to the DRUMSParameterSet used by the DRUMS to open
java.io.IOException#openTable(AccessMode, DRUMSParameterSet),
createTable(AbstractHashFunction, DRUMSParameterSet)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||