|
kDB: Knowledge DataBase
|
#include <RDFValueBinaryMarshal.h>


Classes | |
| class | FieldIO |
| struct | Private |
Public Types | |
| enum class | Operator : quint64 { None = 0 , Addition = 1 , Multiplication = 1 << 2 , Substraction = 1 << 3 , Division = 1 << 4 , Minus = 1 << 5 , AllArithmetic = Addition | Multiplication | Substraction | Division | Minus , Inferior = 1 << 6 , InferiorEqual = 1 << 7 , Superior = 1 << 8 , SuperiorEqual = 1 << 9 , Equal = 1 << 10 , NotEqual = 1 << 11 , AllComparison = Inferior | InferiorEqual | Superior | SuperiorEqual | Equal | NotEqual } |
| enum class | Feature : quint64 { None = 0 , Indexable = 1 } |
Public Types inherited from kDB::Repository::AbstractBinaryMarshal | |
| enum class | Mode { ToVariant = 0x1 , ToByteArray = 0x2 } |
Public Member Functions | |
| knowCore::ReturnValue< knowCore::Value > | toValue (const QByteArray &_source, const kDB::Repository::Connection &_connection) const override |
| knowCore::ReturnValue< QByteArray > | toByteArray (const knowCore::Value &_source, QString &_oidName, const kDB::Repository::Connection &_connection) const override |
Public Member Functions inherited from kDB::Repository::AbstractBinaryMarshal | |
| QString | oid () const |
| knowCore::Uri | datatype () const |
| Modes | modes () const |
Static Public Member Functions | |
| static knowCore::ReturnValue< RDFValueBinaryMarshal * > | create (const Connection &_connection) |
| static QStringList | fields (const Connection &_connection) |
| static knowCore::ReturnVoid | registerField (const Connection &_connection, const knowCore::Uri &_defaultUri, const FieldIO *_fieldIO, quint64 _operators, quint64 _features) |
| static knowCore::ReturnVoid | registerTerm (const Connection &_connection, const knowCore::Uri &_defaultUri, const QString &_typename, const QString &_cast_typename=QString()) |
Friends | |
| class | Repository::Connection |
| class | Repository::GraphsManager |
Additional Inherited Members | |
Protected Member Functions inherited from kDB::Repository::AbstractBinaryMarshal | |
| AbstractBinaryMarshal (const QString &_oid, const knowCore::Uri &_datatype, const Modes &_modes) | |
Static Protected Member Functions inherited from kDB::Repository::AbstractBinaryMarshal | |
| template<typename _T_ > | |
| static knowCore::Uri | datatype () |
This class handles the storage of a value of a RDF Literal in the database.
Values are stored using multiple types, each different types is stored in a different field. There should be only field in use at a given time.
|
static |
This function generate additional create term function, provided that _typename can be casted to an exisiting value
|
overridevirtual |
Convert a knowCore::Value to a postgresql binary representation.
| _oidName | is filled with the postgresql OID name |
Reimplemented from kDB::Repository::AbstractBinaryMarshal.
|
overridevirtual |
Convert from a postgresql binary representation to a knowCore::Value value.
Reimplemented from kDB::Repository::AbstractBinaryMarshal.