|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.obsearch.storage.tc.TCFactory
public class TCFactory
| Constructor Summary | |
|---|---|
TCFactory(File directory)
|
|
| Method Summary | |
|---|---|
void |
close()
Close the factory. |
OBStore<TupleBytes> |
createOBStore(String name,
OBStorageConfig config)
Creates a generic OBStore. |
OBStoreByte |
createOBStoreByte(String name,
OBStorageConfig config)
Creates an OBStoreByte whose key is based on bytes. |
OBStoreDouble |
createOBStoreDouble(String name,
OBStorageConfig config)
Creates an OBStoreDouble whose key is based on doubles. |
OBStoreFloat |
createOBStoreFloat(String name,
OBStorageConfig config)
Creates an OBStoreFloat whose key is based on floats. |
OBStoreInt |
createOBStoreInt(String name,
OBStorageConfig config)
Creates an OBStoreInt whose key is based on ints. |
OBStoreLong |
createOBStoreLong(String name,
OBStorageConfig config)
Creates an OBStoreLong whose key is based on longs. |
OBStoreShort |
createOBStoreShort(String name,
OBStorageConfig config)
Creates an OBStoreShort whose key is based on shorts. |
BigInteger |
deSerializeBigInteger(byte[] value)
Creates a BigInteger of the given value. |
byte |
deSerializeByte(byte[] value)
Creates a byte of the given value. |
double |
deSerializeDouble(byte[] value)
Creates a double of the given value. |
float |
deSerializeFloat(byte[] value)
Creates a float of the given value. |
int |
deSerializeInt(byte[] value)
Creates a int of the given value. |
long |
deSerializeLong(byte[] value)
Creates a long of the given value. |
short |
deSerializeShort(byte[] value)
Creates a short of the given value. |
String |
getFactoryLocation()
Return the url where this factory is located. |
void |
removeOBStore(OBStore storage)
Removes all indexes and structures related to the given storage device. |
byte[] |
serializeBigInteger(BigInteger value)
Creates a binary representation of the given value. |
byte[] |
serializeByte(byte value)
Creates a binary representation of the given value. |
byte[] |
serializeDouble(double value)
Creates a binary representation of the given value. |
byte[] |
serializeFloat(float value)
Creates a binary representation of the given value. |
byte[] |
serializeInt(int value)
Creates a binary representation of the given value. |
byte[] |
serializeLong(long value)
Creates a binary representation of the given value. |
byte[] |
serializeShort(short value)
Creates a binary representation of the given value. |
Object |
stats()
Return a stats object that is to be printed |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TCFactory(File directory)
| Method Detail |
|---|
public void close()
throws OBStorageException
OBStoreFactory
close in interface OBStoreFactoryOBStorageException - if something goes wrong with the
underlying storage system.
public OBStore<TupleBytes> createOBStore(String name,
OBStorageConfig config)
throws OBStorageException,
OBException
OBStoreFactory
createOBStore in interface OBStoreFactoryname - The name of the database.
OBStorageException - If the DB cannot be created.
OBException
public OBStoreByte createOBStoreByte(String name,
OBStorageConfig config)
throws OBStorageException,
OBException
OBStoreFactory
createOBStoreByte in interface OBStoreFactoryname - The name of the database.
OBStorageException - If the DB cannot be created.
OBException
public OBStoreDouble createOBStoreDouble(String name,
OBStorageConfig config)
throws OBStorageException,
OBException
OBStoreFactory
createOBStoreDouble in interface OBStoreFactoryname - The name of the database.
OBStorageException - If the DB cannot be created.
OBException
public OBStoreFloat createOBStoreFloat(String name,
OBStorageConfig config)
throws OBStorageException,
OBException
OBStoreFactory
createOBStoreFloat in interface OBStoreFactoryname - The name of the database.
OBStorageException - If the DB cannot be created.
OBException
public OBStoreInt createOBStoreInt(String name,
OBStorageConfig config)
throws OBStorageException,
OBException
OBStoreFactory
createOBStoreInt in interface OBStoreFactoryname - The name of the database.
OBStorageException - If the DB cannot be created.
OBException
public OBStoreLong createOBStoreLong(String name,
OBStorageConfig config)
throws OBStorageException,
OBException
OBStoreFactory
createOBStoreLong in interface OBStoreFactoryname - The name of the database.
OBStorageException - If the DB cannot be created.
OBException
public OBStoreShort createOBStoreShort(String name,
OBStorageConfig config)
throws OBStorageException,
OBException
OBStoreFactory
createOBStoreShort in interface OBStoreFactoryname - The name of the database.
OBStorageException - If the DB cannot be created.
OBExceptionpublic BigInteger deSerializeBigInteger(byte[] value)
OBStoreFactory
deSerializeBigInteger in interface OBStoreFactorypublic byte deSerializeByte(byte[] value)
OBStoreFactory
deSerializeByte in interface OBStoreFactorypublic double deSerializeDouble(byte[] value)
OBStoreFactory
deSerializeDouble in interface OBStoreFactorypublic float deSerializeFloat(byte[] value)
OBStoreFactory
deSerializeFloat in interface OBStoreFactorypublic int deSerializeInt(byte[] value)
OBStoreFactory
deSerializeInt in interface OBStoreFactorypublic long deSerializeLong(byte[] value)
OBStoreFactory
deSerializeLong in interface OBStoreFactorypublic short deSerializeShort(byte[] value)
OBStoreFactory
deSerializeShort in interface OBStoreFactorypublic String getFactoryLocation()
OBStoreFactory
getFactoryLocation in interface OBStoreFactory
public void removeOBStore(OBStore storage)
throws OBStorageException,
OBException
OBStoreFactory
removeOBStore in interface OBStoreFactorystorage - The storage device to remove.
OBStorageException - If something goes wrong with the delete operation.
OBExceptionpublic byte[] serializeBigInteger(BigInteger value)
OBStoreFactory
serializeBigInteger in interface OBStoreFactorypublic byte[] serializeByte(byte value)
OBStoreFactory
serializeByte in interface OBStoreFactorypublic byte[] serializeDouble(double value)
OBStoreFactory
serializeDouble in interface OBStoreFactorypublic byte[] serializeFloat(float value)
OBStoreFactory
serializeFloat in interface OBStoreFactorypublic byte[] serializeInt(int value)
OBStoreFactory
serializeInt in interface OBStoreFactorypublic byte[] serializeLong(long value)
OBStoreFactory
serializeLong in interface OBStoreFactorypublic byte[] serializeShort(short value)
OBStoreFactory
serializeShort in interface OBStoreFactory
public Object stats()
throws OBStorageException
OBStoreFactory
stats in interface OBStoreFactoryOBStorageException - if something goes wrong with the
underlying storage system.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||