|
||||||||||
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 OBStoreFactory
OBStorageException
- if something goes wrong with the
underlying storage system.public OBStore<TupleBytes> createOBStore(String name, OBStorageConfig config) throws OBStorageException, OBException
OBStoreFactory
createOBStore
in interface OBStoreFactory
name
- 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 OBStoreFactory
name
- 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 OBStoreFactory
name
- 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 OBStoreFactory
name
- 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 OBStoreFactory
name
- 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 OBStoreFactory
name
- 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 OBStoreFactory
name
- The name of the database.
OBStorageException
- If the DB cannot be created.
OBException
public BigInteger deSerializeBigInteger(byte[] value)
OBStoreFactory
deSerializeBigInteger
in interface OBStoreFactory
public byte deSerializeByte(byte[] value)
OBStoreFactory
deSerializeByte
in interface OBStoreFactory
public double deSerializeDouble(byte[] value)
OBStoreFactory
deSerializeDouble
in interface OBStoreFactory
public float deSerializeFloat(byte[] value)
OBStoreFactory
deSerializeFloat
in interface OBStoreFactory
public int deSerializeInt(byte[] value)
OBStoreFactory
deSerializeInt
in interface OBStoreFactory
public long deSerializeLong(byte[] value)
OBStoreFactory
deSerializeLong
in interface OBStoreFactory
public short deSerializeShort(byte[] value)
OBStoreFactory
deSerializeShort
in interface OBStoreFactory
public String getFactoryLocation()
OBStoreFactory
getFactoryLocation
in interface OBStoreFactory
public void removeOBStore(OBStore storage) throws OBStorageException, OBException
OBStoreFactory
removeOBStore
in interface OBStoreFactory
storage
- The storage device to remove.
OBStorageException
- If something goes wrong with the delete operation.
OBException
public byte[] serializeBigInteger(BigInteger value)
OBStoreFactory
serializeBigInteger
in interface OBStoreFactory
public byte[] serializeByte(byte value)
OBStoreFactory
serializeByte
in interface OBStoreFactory
public byte[] serializeDouble(double value)
OBStoreFactory
serializeDouble
in interface OBStoreFactory
public byte[] serializeFloat(float value)
OBStoreFactory
serializeFloat
in interface OBStoreFactory
public byte[] serializeInt(int value)
OBStoreFactory
serializeInt
in interface OBStoreFactory
public byte[] serializeLong(long value)
OBStoreFactory
serializeLong
in interface OBStoreFactory
public byte[] serializeShort(short value)
OBStoreFactory
serializeShort
in interface OBStoreFactory
public Object stats() throws OBStorageException
OBStoreFactory
stats
in interface OBStoreFactory
OBStorageException
- 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 |