Home
last modified time | relevance | path

Searched refs:FieldType (Results 1 – 25 of 32) sorted by relevance

12

/ohos5.0/foundation/ability/dmsfwk_lite/include/
H A Ddmslite_packet.h30 bool MarshallUint8(uint8_t field, FieldType fieldType);
31 bool MarshallUint16(uint16_t field, FieldType fieldType);
32 bool MarshallUint32(uint32_t field, FieldType fieldType);
33 bool MarshallUint64(uint64_t field, FieldType fieldType);
34 bool MarshallInt8(int8_t field, FieldType fieldType);
35 bool MarshallInt16(int16_t field, FieldType fieldType);
36 bool MarshallInt32(int32_t field, FieldType fieldType);
37 bool MarshallInt64(int64_t field, FieldType fieldType);
H A Ddmslite_tlv_common.h58 } FieldType; typedef
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/common/src/
H A Dschema_object.cpp60 {FieldType::LEAF_FIELD_BOOL, "INT"}, in GenerateExtractSQL()
61 {FieldType::LEAF_FIELD_INTEGER, "INT"}, in GenerateExtractSQL()
62 {FieldType::LEAF_FIELD_LONG, "INT"}, in GenerateExtractSQL()
63 {FieldType::LEAF_FIELD_DOUBLE, "REAL"}, in GenerateExtractSQL()
64 {FieldType::LEAF_FIELD_STRING, "TEXT"}, in GenerateExtractSQL()
470 if (type != FieldType::LEAF_FIELD_STRING) { in CheckMetaFieldCountAndType()
857 …if (!(oldAttr.type == FieldType::LEAF_FIELD_OBJECT && newAttr.type == FieldType::INTERNAL_FIELD_OB… in CompareSchemaAttribute()
985 int CheckValueItemNumericType(FieldType typeInValue, FieldType typeInSchema) in CheckValueItemNumericType()
1014 inline bool IsObjectType(FieldType inType) in IsObjectType()
1016 return (inType == FieldType::LEAF_FIELD_OBJECT || inType == FieldType::INTERNAL_FIELD_OBJECT); in IsObjectType()
[all …]
H A Dschema_utils.cpp259 case FieldType::LEAF_FIELD_BOOL: in TransformDefaultValue()
262 case FieldType::LEAF_FIELD_INTEGER: in TransformDefaultValue()
265 case FieldType::LEAF_FIELD_LONG: in TransformDefaultValue()
268 case FieldType::LEAF_FIELD_DOUBLE: in TransformDefaultValue()
271 case FieldType::LEAF_FIELD_STRING: in TransformDefaultValue()
470 {FieldType::LEAF_FIELD_NULL, "NULL"}, in FieldTypeString()
471 {FieldType::LEAF_FIELD_BOOL, "BOOL"}, in FieldTypeString()
473 {FieldType::LEAF_FIELD_LONG, "LONG"}, in FieldTypeString()
474 {FieldType::LEAF_FIELD_DOUBLE, "DOUBLE"}, in FieldTypeString()
475 {FieldType::LEAF_FIELD_STRING, "STRING"}, in FieldTypeString()
[all …]
H A Djson_object.cpp286 FieldType valueType; in GetFieldValueByFieldPath()
292 case FieldType::LEAF_FIELD_BOOL: in GetFieldValueByFieldPath()
298 case FieldType::LEAF_FIELD_LONG: in GetFieldValueByFieldPath()
301 case FieldType::LEAF_FIELD_DOUBLE: in GetFieldValueByFieldPath()
304 case FieldType::LEAF_FIELD_STRING: in GetFieldValueByFieldPath()
367 FieldType eachSubType; in GetSubFieldPathAndType()
471 case FieldType::LEAF_FIELD_BOOL: in LeafJsonNodeAssignValue()
478 case FieldType::LEAF_FIELD_LONG: in LeafJsonNodeAssignValue()
482 case FieldType::LEAF_FIELD_DOUBLE: in LeafJsonNodeAssignValue()
485 case FieldType::LEAF_FIELD_STRING: in LeafJsonNodeAssignValue()
[all …]
H A Dflatbuffer_schema.cpp246 FieldType fieldType;
249 FieldType MapFieldType(reflection::BaseType inType) in MapFieldType()
252 {reflection::BaseType::Bool, FieldType::LEAF_FIELD_BOOL}, in MapFieldType()
253 {reflection::BaseType::Byte, FieldType::LEAF_FIELD_INTEGER}, in MapFieldType()
254 {reflection::BaseType::UByte, FieldType::LEAF_FIELD_INTEGER}, in MapFieldType()
257 {reflection::BaseType::Int, FieldType::LEAF_FIELD_INTEGER}, in MapFieldType()
258 {reflection::BaseType::UInt, FieldType::LEAF_FIELD_LONG}, in MapFieldType()
259 {reflection::BaseType::Long, FieldType::LEAF_FIELD_LONG}, in MapFieldType()
260 {reflection::BaseType::ULong, FieldType::LEAF_FIELD_DOUBLE}, in MapFieldType()
261 {reflection::BaseType::Float, FieldType::LEAF_FIELD_DOUBLE}, in MapFieldType()
[all …]
H A Dvalue_object.cpp107 int ValueObject::GetFieldTypeByFieldPath(const FieldPath &inPath, FieldType &outType) const in GetFieldTypeByFieldPath()
139 int ValueObject::GetSubFieldPathAndType(const FieldPath &inPath, std::map<FieldPath, FieldType> &ou… in GetSubFieldPathAndType()
148 std::map<FieldPath, FieldType> &outSubPathType) const in GetSubFieldPathAndType()
156 int ValueObject::InsertField(const FieldPath &inPath, FieldType inType, const FieldValue &inValue) in InsertField()
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/common/
H A Ddistributeddb_schema_unit_test.cpp70 attributeRes.type = FieldType::LEAF_FIELD_INTEGER; in PreNumDataForParseAndCheckSchemaAttribute003()
76 attributeRes1.type = FieldType::LEAF_FIELD_INTEGER; in PreNumDataForParseAndCheckSchemaAttribute003()
83 attributeRes2.type = FieldType::LEAF_FIELD_INTEGER; in PreNumDataForParseAndCheckSchemaAttribute003()
89 attributeRes3.type = FieldType::LEAF_FIELD_LONG; in PreNumDataForParseAndCheckSchemaAttribute003()
95 attributeRes4.type = FieldType::LEAF_FIELD_LONG; in PreNumDataForParseAndCheckSchemaAttribute003()
105 attributeRes5.type = FieldType::LEAF_FIELD_STRING; in PreStringDataForParseAndCheckSchemaAttribute003()
111 attributeRes6.type = FieldType::LEAF_FIELD_STRING; in PreStringDataForParseAndCheckSchemaAttribute003()
164 attributeRes14.type = FieldType::LEAF_FIELD_BOOL; in PreBoolDataForParseAndCheckSchemaAttribute003()
171 attributeRes15.type = FieldType::LEAF_FIELD_BOOL; in PreBoolDataForParseAndCheckSchemaAttribute003()
196 attributeRes1.type = FieldType::LEAF_FIELD_BOOL;
[all …]
H A Ddistributeddb_schema_object_test.cpp908 …errCode = testObject.InsertField(FieldPath{"L1F1", "L2F1", "L3F1", "L4F2"}, FieldType::LEAF_FIELD_…
911 …errCode = testObject.InsertField(FieldPath{"L1F1", "L2F1", "L3F2"}, FieldType::LEAF_FIELD_LONG, va…
913 errCode = testObject.InsertField(FieldPath{"L1F1", "L2F2"}, FieldType::LEAF_FIELD_OBJECT, val);
916 …errCode = testObject.InsertField(FieldPath{"L1F1", "L2F2", "L3F3"}, FieldType::LEAF_FIELD_INTEGER,…
919 …errCode = testObject.InsertField(FieldPath{"L1F1", "L2F2", "L3F4"}, FieldType::LEAF_FIELD_BOOL, va…
921 errCode = testObject.InsertField(FieldPath{"L1F2"}, FieldType::LEAF_FIELD_NULL, val);
953 …int errCode = testObject.InsertField(FieldPath{"L1F1", "L2F1", "L3F1"}, FieldType::LEAF_FIELD_STRI…
956 …errCode = testObject.InsertField(FieldPath{"L1F1", "L2F1", "L3F1"}, FieldType::LEAF_FIELD_DOUBLE, …
959 …errCode = testObject.InsertField(FieldPath{"L1F1", "L2F1", "L3F1", "L4F1"}, FieldType::LEAF_FIELD_…
1117 FieldType schemaFieldType = FieldType::LEAF_FIELD_BOOL;
[all …]
/ohos5.0/foundation/ability/dmsfwk_lite/source/
H A Ddmslite_packet.c48 static bool MarshallInt(uint64_t field, FieldType fieldType, uint8_t fieldSize);
69 bool MarshallUint8(uint8_t field, FieldType fieldType) in MarshallUint8()
74 bool MarshallUint16(uint16_t field, FieldType fieldType) in MarshallUint16()
79 bool MarshallUint32(uint32_t field, FieldType fieldType) in MarshallUint32()
84 bool MarshallUint64(uint64_t field, FieldType fieldType) in MarshallUint64()
89 bool MarshallInt8(int8_t field, FieldType fieldType) in MarshallInt8()
94 bool MarshallInt16(int16_t field, FieldType fieldType) in MarshallInt16()
99 bool MarshallInt32(int32_t field, FieldType fieldType) in MarshallInt32()
104 bool MarshallInt64(int64_t field, FieldType fieldType) in MarshallInt64()
213 static bool MarshallInt(uint64_t field, FieldType fieldType, uint8_t fieldSize) in MarshallInt()
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/common/src/relational/
H A Drelational_schema_object.cpp374 FieldType fieldType; in GetMemberFromJsonObject()
398 FieldType fieldType; in ParseTrackerSchema()
476 FieldType fieldType; in ParseCheckTrackerName()
606 FieldType fieldType; in ParseCheckSchemaTableDefine()
612 if (FieldType::LEAF_FIELD_ARRAY != fieldType) { in ParseCheckSchemaTableDefine()
694 std::map<FieldPath, FieldType> tableFields; in ParseCheckTableDefine()
813 FieldType type; in ParseCheckTablePrimaryKey()
846 FieldType fieldType; in ParseCheckReferenceProperty()
852 if (FieldType::LEAF_FIELD_ARRAY != fieldType) { in ParseCheckReferenceProperty()
915 FieldType fieldType; in ParseCheckReferenceColumns()
[all …]
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/common/include/
H A Dvalue_object.h50 int GetFieldTypeByFieldPath(const FieldPath &inPath, FieldType &outType) const;
57 …int GetSubFieldPathAndType(const FieldPath &inPath, std::map<FieldPath, FieldType> &outSubPathType…
58 …int GetSubFieldPathAndType(const std::set<FieldPath> &inPath, std::map<FieldPath, FieldType> &outS…
64 int InsertField(const FieldPath &inPath, FieldType inType, const FieldValue &inValue);
H A Djson_object.h62 int GetFieldTypeByFieldPath(const FieldPath &inPath, FieldType &outType) const;
74 …int GetSubFieldPathAndType(const FieldPath &inPath, std::map<FieldPath, FieldType> &outSubPathType…
75 …int GetSubFieldPathAndType(const std::set<FieldPath> &inPath, std::map<FieldPath, FieldType> &outS…
92 …int InsertField(const FieldPath &inPath, FieldType inType, const FieldValue &inValue, bool isAppen…
107 int GetFieldTypeByJsonValue(const Json::Value &value, FieldType &outType) const;
H A Dischema.h43 FieldType type = FieldType::LEAF_FIELD_NULL;
H A Dschema_object.h33 using IndexFieldInfo = std::pair<FieldPath, FieldType>;
46 …ng GenerateExtractSQL(SchemaType inSchemaType, const FieldPath &inFieldpath, FieldType inFieldType,
77 int CheckQueryableAndGetFieldType(const FieldPath &inPath, FieldType &outType) const;
122 …efineItemDecideAttribute(const JsonObject &inJsonObject, const FieldPath &inPath, FieldType inType,
H A Ddb_types.h102 enum class FieldType { enum
113 using TypeValue = std::pair<FieldType, FieldValue>; // Define for parameter convenience
H A Dschema_utils.h48 static std::string FieldTypeString(FieldType inType);
/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/rust/ylong_cloud_extension/src/ipc_conn/
H A Dconnect.rs342 pub(crate) enum FieldType { enum
354 impl From<&FieldType> for u8 {
357 FieldType::Null => 0, in from()
359 FieldType::Real => 2, in from()
360 FieldType::Text => 3, in from()
361 FieldType::Bool => 4, in from()
362 FieldType::Blob => 5, in from()
369 impl TryFrom<u8> for FieldType { implementation
388 impl Serialize for FieldType { implementation
395 impl Deserialize for FieldType { implementation
[all …]
H A Dmod.rs28 AppInfo, CloudData, Connect, Database, Databases, Field, FieldRaw, FieldType, Fields,
/ohos5.0/foundation/distributeddatamgr/relational_store/interfaces/inner_api/rdb/include/
H A Dvalues_buckets.h32 using FieldType = std::reference_wrapper<const std::string>; variable
34 using BucketType = std::map<FieldType, ValueType, std::less<std::string>>;
42 API_EXPORT std::pair<int, ValueType> Get(size_t row, const FieldType &field) const;
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/sqlite/
H A Dquery_object.cpp310 FieldType schemaFieldType = FieldType::LEAF_FIELD_BOOL; in CheckEqualFormat()
318 if (schemaFieldType == FieldType::LEAF_FIELD_BOOL && in CheckEqualFormat()
380 FieldType schemaFieldType; in CheckOrderByFormat()
391 if (schemaFieldType == FieldType::LEAF_FIELD_BOOL) { in CheckOrderByFormat()
H A Dsqlite_utils.cpp1908 inline bool IsExtractableType(FieldType inType) in IsExtractableType()
1910 return (inType != FieldType::LEAF_FIELD_NULL && inType != FieldType::LEAF_FIELD_ARRAY && in IsExtractableType()
1911 inType != FieldType::LEAF_FIELD_OBJECT && inType != FieldType::INTERNAL_FIELD_OBJECT); in IsExtractableType()
1917FieldType outType = FieldType::LEAF_FIELD_NULL; // Default type null for invalid-path(path not exi… in JsonExtractInnerFunc()
2028 void SQLiteUtils::ExtractReturn(sqlite3_context *ctx, FieldType type, const FieldValue &value) in ExtractReturn()
2034 case FieldType::LEAF_FIELD_BOOL: in ExtractReturn()
2037 case FieldType::LEAF_FIELD_INTEGER: in ExtractReturn()
2040 case FieldType::LEAF_FIELD_LONG: in ExtractReturn()
2043 case FieldType::LEAF_FIELD_DOUBLE: in ExtractReturn()
2046 case FieldType::LEAF_FIELD_STRING: in ExtractReturn()
H A Dsqlite_query_helper.h145 std::string MapCastTypeSql(const FieldType &type) const;
/ohos5.0/foundation/distributeddatamgr/relational_store/frameworks/native/rdb/src/
H A Dvalues_buckets.cpp48 std::pair<int, ValuesBuckets::ValueType> ValuesBuckets::Get(size_t row, const FieldType &field) con… in Get()
/ohos5.0/foundation/distributeddatamgr/relational_store/frameworks/js/napi/cloud_extension/
H A Dcloud_extension_stub.js36 })(f = a.FieldType || (a.FieldType = {}));
926 FieldType: cloudExtension.FieldType,

12