Home
last modified time | relevance | path

Searched refs:StorageType (Results 1 – 25 of 27) sorted by relevance

12

/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/common/src/
H A Ddata_value.cpp122 case StorageType::STORAGE_TYPE_REAL: in operator =()
125 case StorageType::STORAGE_TYPE_BLOB: in operator =()
126 case StorageType::STORAGE_TYPE_TEXT: in operator =()
145 case StorageType::STORAGE_TYPE_BLOB: in operator =()
146 case StorageType::STORAGE_TYPE_TEXT: in operator =()
166 type_ = StorageType::STORAGE_TYPE_REAL; in operator =()
184 type_ = StorageType::STORAGE_TYPE_BLOB; in Set()
247 if (type_ != StorageType::STORAGE_TYPE_BLOB && type_ != StorageType::STORAGE_TYPE_TEXT) { in GetBlob()
269 type_ = StorageType::STORAGE_TYPE_BLOB; in SetBlob()
279 if (type_ != StorageType::STORAGE_TYPE_BLOB && type_ != StorageType::STORAGE_TYPE_TEXT) { in GetBlob()
[all …]
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/
H A Ddata_transformer.cpp99 case StorageType::STORAGE_TYPE_NULL: in CalDataValueLength()
101 case StorageType::STORAGE_TYPE_INTEGER: in CalDataValueLength()
103 case StorageType::STORAGE_TYPE_REAL: in CalDataValueLength()
108 if (dataValue.GetType() != StorageType::STORAGE_TYPE_BLOB && in CalDataValueLength()
109 dataValue.GetType() != StorageType::STORAGE_TYPE_TEXT) { in CalDataValueLength()
114 case StorageType::STORAGE_TYPE_BLOB: in CalDataValueLength()
115 case StorageType::STORAGE_TYPE_TEXT: { in CalDataValueLength()
218 if (type == StorageType::STORAGE_TYPE_TEXT) { in DeSerializeBlobByType()
220 } else if (type == StorageType::STORAGE_TYPE_BLOB) { in DeSerializeBlobByType()
253 StorageType type = dataValue.GetType(); in SerializeDataValue()
[all …]
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/storage/
H A Ddistributeddb_data_transformer_test.cpp53 std::map<StorageType, void(*)(DataValue&)> g_typeMapFunction = {
54 {StorageType::STORAGE_TYPE_NULL, &SetNull},
55 {StorageType::STORAGE_TYPE_INTEGER, &SetInt64},
56 {StorageType::STORAGE_TYPE_REAL, &SetDouble},
57 {StorageType::STORAGE_TYPE_TEXT, &SetText},
58 {StorageType::STORAGE_TYPE_BLOB, &SetBlob}
65 StorageType type = StorageType::STORAGE_TYPE_NULL; in GenerateRowData()
H A Ddistributeddb_relational_schema_analysis_test.cpp198 …EXPECT_EQ(field.GetStorageType(), StorageType::STORAGE_TYPE_BLOB); // asset and assets affinity bl…
200 …EXPECT_EQ(field.GetStorageType(), StorageType::STORAGE_TYPE_NULL); // asset and assets affinity bl…
H A Ddistributeddb_relational_result_set_test.cpp167 StorageType type = StorageType::STORAGE_TYPE_NONE;
169 EXPECT_EQ(type, StorageType::STORAGE_TYPE_NULL);
H A Ddistributeddb_cloud_schema_mgr_test.cpp710 EXPECT_EQ(fieldInfo.GetStorageType(), StorageType::STORAGE_TYPE_INTEGER);
712 EXPECT_EQ(fieldInfo.GetStorageType(), StorageType::STORAGE_TYPE_INTEGER);
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/common/src/relational/
H A Dtable_info.cpp73 StorageType type = StorageType::STORAGE_TYPE_NULL; in AffinityType()
78 type = StorageType::STORAGE_TYPE_TEXT; in AffinityType()
80 type = StorageType::STORAGE_TYPE_TEXT; in AffinityType()
82 type = StorageType::STORAGE_TYPE_TEXT; in AffinityType()
84 type == StorageType::STORAGE_TYPE_REAL)) { in AffinityType()
85 type = StorageType::STORAGE_TYPE_BLOB; in AffinityType()
87 type = StorageType::STORAGE_TYPE_REAL; in AffinityType()
89 type = StorageType::STORAGE_TYPE_REAL; in AffinityType()
91 type = StorageType::STORAGE_TYPE_REAL; in AffinityType()
93 type = StorageType::STORAGE_TYPE_INTEGER; in AffinityType()
[all …]
H A Drelational_result_set_impl.cpp172 { static_cast<int>(StorageType::STORAGE_TYPE_NONE), ColumnType::INVALID_TYPE }, in GetColumnType()
173 { static_cast<int>(StorageType::STORAGE_TYPE_NULL), ColumnType::NULL_VALUE }, in GetColumnType()
174 { static_cast<int>(StorageType::STORAGE_TYPE_INTEGER), ColumnType::INT64 }, in GetColumnType()
175 { static_cast<int>(StorageType::STORAGE_TYPE_REAL), ColumnType::DOUBLE }, in GetColumnType()
176 { static_cast<int>(StorageType::STORAGE_TYPE_TEXT), ColumnType::STRING }, in GetColumnType()
177 { static_cast<int>(StorageType::STORAGE_TYPE_BLOB), ColumnType::BLOB }, in GetColumnType()
185 auto type = StorageType::STORAGE_TYPE_NONE; in GetColumnType()
276 auto type = StorageType::STORAGE_TYPE_NONE; in IsColumnNull()
279 isNull = type == StorageType::STORAGE_TYPE_NULL; in IsColumnNull()
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/interfaces/
H A Ddistributeddb_interfaces_data_value_test.cpp35 EXPECT_EQ(dataValue.GetType(), StorageType::STORAGE_TYPE_NULL); in DataValueDefaultNullCheck()
46 EXPECT_EQ(dataValue.GetType(), StorageType::STORAGE_TYPE_REAL); in DataValueDoubleCheck()
64 EXPECT_EQ(dataValue.GetType(), StorageType::STORAGE_TYPE_INTEGER); in DataValueInt64Check()
81 EXPECT_EQ(dataValue.GetType(), StorageType::STORAGE_TYPE_TEXT); in DataValueStringCheck()
101 EXPECT_EQ(dataValue.GetType(), StorageType::STORAGE_TYPE_BLOB); in DataValueBlobCheck()
H A Ddistributeddb_interfaces_relational_sync_test.cpp585 EXPECT_EQ(dataVal.GetType(), StorageType::STORAGE_TYPE_TEXT); in GetKey()
837 EXPECT_EQ(value.GetType(), StorageType::STORAGE_TYPE_INTEGER);
843 EXPECT_EQ(value.GetType(), StorageType::STORAGE_TYPE_TEXT);
849 EXPECT_EQ(value.GetType(), StorageType::STORAGE_TYPE_INTEGER);
854 EXPECT_EQ(value.GetType(), StorageType::STORAGE_TYPE_INTEGER);
937 EXPECT_EQ(val.GetType(), StorageType::STORAGE_TYPE_INTEGER);
939 EXPECT_EQ(val.GetType(), StorageType::STORAGE_TYPE_INTEGER);
941 EXPECT_EQ(val.GetType(), StorageType::STORAGE_TYPE_REAL);
943 EXPECT_EQ(val.GetType(), StorageType::STORAGE_TYPE_TEXT);
945 EXPECT_EQ(val.GetType(), StorageType::STORAGE_TYPE_BLOB);
[all …]
/ohos5.0/base/update/updater/services/ptable_parse/
H A Dptable_manager.h30 enum class StorageType { enum
45 StorageType storage_ = StorageType::STORAGE_UNKNOWN;
60 StorageType GetDeviceStorageType();
H A Dptable_manager.cpp32 PtableManager::StorageType PtableManager::GetDeviceStorageType() in GetDeviceStorageType()
39 if (storage_ != StorageType::STORAGE_UNKNOWN) { in SetDeviceStorageType()
43 storage_ = StorageType::STORAGE_UFS; in SetDeviceStorageType()
46 storage_ = StorageType::STORAGE_EMMC; in SetDeviceStorageType()
70 if (GetDeviceStorageType() == StorageType::STORAGE_UFS) { in InitPtablePtr()
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/cloud/
H A Dschema_mgr.cpp109 StorageType localType = localField.GetStorageType(); in CompareType()
115 return localType == StorageType::STORAGE_TYPE_NULL; in CompareType()
117 return localType == StorageType::STORAGE_TYPE_INTEGER; in CompareType()
119 return localType == StorageType::STORAGE_TYPE_REAL; in CompareType()
121 return localType == StorageType::STORAGE_TYPE_TEXT; in CompareType()
125 return localType == StorageType::STORAGE_TYPE_BLOB; in CompareType()
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/common/include/
H A Ddata_value.h68 StorageType GetType() const;
81 StorageType type_ = StorageType::STORAGE_TYPE_NULL;
H A Ddb_types.h152 enum class StorageType : int32_t { enum
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/common/include/relational/
H A Dtable_info.h45 StorageType GetStorageType() const;
46 void SetStorageType(StorageType storageType);
65 StorageType storageType_ = StorageType::STORAGE_TYPE_NONE;
H A Drelational_row_data.h34 virtual int GetType(int index, StorageType &type) const = 0;
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/syncer/
H A Ddistributeddb_relational_ver_p2p_sync_test.cpp66 std::vector<StorageType> g_storageType = {
67 StorageType::STORAGE_TYPE_INTEGER, StorageType::STORAGE_TYPE_REAL,
68 StorageType::STORAGE_TYPE_TEXT, StorageType::STORAGE_TYPE_BLOB
127 std::string GetType(StorageType type) in GetType()
132 {StorageType::STORAGE_TYPE_TEXT, "TEXT"}, in GetType()
133 {StorageType::STORAGE_TYPE_BLOB, "BLOB"} in GetType()
136 type = StorageType::STORAGE_TYPE_INTEGER; in GetType()
212 case StorageType::STORAGE_TYPE_REAL: { in BindValue()
219 case StorageType::STORAGE_TYPE_TEXT: { in BindValue()
226 case StorageType::STORAGE_TYPE_BLOB: { in BindValue()
[all …]
/ohos5.0/base/update/updater/test/unittest/ptable_parse_test/
H A Dptable_manager_unittest.cpp129 ASSERT_EQ(context.storage_, PtableManagerTest::StorageType::STORAGE_UFS); in TestInitPtableManagerAndSetDeviceStorageType()
130 context.storage_ = PtableManagerTest::StorageType::STORAGE_EMMC; in TestInitPtableManagerAndSetDeviceStorageType()
132 ASSERT_EQ(context.storage_, PtableManagerTest::StorageType::STORAGE_EMMC); in TestInitPtableManagerAndSetDeviceStorageType()
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/include/
H A Drelational_row_data_impl.h35 int GetType(int index, StorageType &type) const override;
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/relational/
H A Drelational_row_data_impl.cpp74 int RelationalRowDataImpl::GetType(int index, StorageType &type) const in GetType()
/ohos5.0/base/update/updateservice/services/firmware/common/include/
H A Dfirmware_common.h94 enum StorageType { enum
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/sqlite/
H A Dsqlite_utils.cpp2318 StorageType type = data.value_or(DataValue()).GetType(); in BindDataValueByType()
2320 case StorageType::STORAGE_TYPE_INTEGER: { in BindDataValueByType()
2327 case StorageType::STORAGE_TYPE_REAL: { in BindDataValueByType()
2334 case StorageType::STORAGE_TYPE_TEXT: { in BindDataValueByType()
2341 case StorageType::STORAGE_TYPE_BLOB: { in BindDataValueByType()
2349 case StorageType::STORAGE_TYPE_NULL: { in BindDataValueByType()
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/sqlite/relational/
H A Dsqlite_relational_utils.cpp64 if (value.GetType() != StorageType::STORAGE_TYPE_TEXT) { in GetDataValueByType()
H A Dsqlite_relational_store.cpp990 type = static_cast<int32_t>(StorageType::STORAGE_TYPE_NULL); in CheckFields()
992 type = static_cast<int32_t>(StorageType::STORAGE_TYPE_BLOB); in CheckFields()

12