Package net.quasardb.qdb.kv
Class DoubleEntry
java.lang.Object
net.quasardb.qdb.kv.Entry
net.quasardb.qdb.kv.DoubleEntry
A 64-bit floating point in the database.
-
Constructor Details
-
DoubleEntry
-
-
Method Details
-
ofAlias
-
put
public void put(double value) Create an double with the specified value. Fails if the double already exists.- Parameters:
value
- The value of the double to be created.- Throws:
AliasAlreadyExistsException
- If an entry matching the provided alias already exists.ClusterClosedException
- If QdbCluster.close() has been called.ReservedAliasException
- If the alias name or prefix is reserved for quasardb internal use.
-
update
public boolean update(double value) Replaces the content of the double.- Parameters:
value
- The double to be set.- Returns:
- true if the blob was created, or false it it was updated.
- Throws:
ClusterClosedException
- If QdbCluster.close() has been called.IncompatibleTypeException
- If the alias has a type incompatible for this operation.InvalidArgumentException
- If the expiry time is in the past (with a certain tolerance)ReservedAliasException
- If the alias name or prefix is reserved for quasardb internal use.
-
get
public double get()Read the content of the blob.- Returns:
- The current content.
- Throws:
AliasNotFoundException
- If an entry matching the provided alias cannot be found.IncompatibleTypeException
- If the alias has a type incompatible for this operation.ReservedAliasException
- If the alias name or prefix is reserved for quasardb internal use.
-