Home
last modified time | relevance | path

Searched refs:schema (Results 1 – 25 of 244) sorted by relevance

12345678910

/ohos5.0/foundation/distributeddatamgr/kv_store/test/unittest/distributedKVStore/
H A DSchemaJsTest.js39 schema: {}, property in AnonymousFunction8fa752ac0100.options
99 schema.skip = 0;
101 options.schema = schema;
146 schema.skip = 0;
148 options.schema = schema;
193 schema.skip = 0;
195 options.schema = schema;
240 schema.skip = 0;
242 options.schema = schema;
287 schema.skip = 0;
[all …]
/ohos5.0/foundation/ai/neural_network_runtime/example/drivers/nnrt/v1_0/hdi_cpu_service/src/
H A Dnode_functions.cpp35 auto prim = std::make_unique<mindspore::schema::PrimitiveT>(); in GetAddPrimitive()
36 prim->value.type = mindspore::schema::PrimitiveType_AddFusion; in GetAddPrimitive()
37 auto attr = new (std::nothrow) mindspore::schema::AddFusionT; in GetAddPrimitive()
56 auto prim = std::make_unique<mindspore::schema::PrimitiveT>(); in GetAvgPoolPrimitive()
85 auto prim = std::make_unique<mindspore::schema::PrimitiveT>(); in GetConcatPrimitive()
86 prim->value.type = mindspore::schema::PrimitiveType_Concat; in GetConcatPrimitive()
88 auto attr = new (std::nothrow) mindspore::schema::ConcatT; in GetConcatPrimitive()
223 prim->value.type = mindspore::schema::PrimitiveType_Softmax; in GetSoftmaxPrimitive()
225 auto attr = new (std::nothrow) mindspore::schema::SoftmaxT; in GetSoftmaxPrimitive()
246 prim->value.type = mindspore::schema::PrimitiveType_Reshape; in GetReshapePrimitive()
[all …]
H A Dnnrt_device_service.cpp289 auto metaGraph = std::make_shared<mindspore::schema::MetaGraphT>(); in TransModelToGraph()
293 std::unique_ptr<mindspore::schema::TensorT> transTensor {nullptr}; in TransModelToGraph()
306 std::unique_ptr<mindspore::schema::CNodeT> transNode {nullptr}; in TransModelToGraph()
336 auto schemaTensor = std::make_unique<mindspore::schema::TensorT>(); in TransTensor()
339 schemaTensor->format = static_cast<mindspore::schema::Format>(tensor.format); in TransTensor()
342 auto quantParam = std::make_unique<mindspore::schema::QuantParamT>(); in TransTensor()
370 std::unique_ptr<mindspore::schema::CNodeT> NnrtDeviceService::TransNode(const Node& node) const in TransNode()
372 auto cnode = std::make_unique<mindspore::schema::CNodeT>(); in TransNode()
376 cnode->quantType = static_cast<mindspore::schema::QuantType>(node.quantType); in TransNode()
390 std::unique_ptr<mindspore::schema::SubGraphT> NnrtDeviceService::TransSubGraph(const SubGraph& grap… in TransSubGraph()
[all …]
/ohos5.0/foundation/ai/neural_network_runtime/example/drivers/nnrt/v2_0/hdi_cpu_service/src/
H A Dnode_functions.cpp35 auto prim = std::make_unique<mindspore::schema::PrimitiveT>(); in GetAddPrimitive()
36 prim->value.type = mindspore::schema::PrimitiveType_AddFusion; in GetAddPrimitive()
37 auto attr = new (std::nothrow) mindspore::schema::AddFusionT; in GetAddPrimitive()
56 auto prim = std::make_unique<mindspore::schema::PrimitiveT>(); in GetAvgPoolPrimitive()
85 auto prim = std::make_unique<mindspore::schema::PrimitiveT>(); in GetConcatPrimitive()
86 prim->value.type = mindspore::schema::PrimitiveType_Concat; in GetConcatPrimitive()
88 auto attr = new (std::nothrow) mindspore::schema::ConcatT; in GetConcatPrimitive()
223 prim->value.type = mindspore::schema::PrimitiveType_Softmax; in GetSoftmaxPrimitive()
225 auto attr = new (std::nothrow) mindspore::schema::SoftmaxT; in GetSoftmaxPrimitive()
246 prim->value.type = mindspore::schema::PrimitiveType_Reshape; in GetReshapePrimitive()
[all …]
H A Dnnrt_device_service.cpp325 auto metaGraph = std::make_shared<mindspore::schema::MetaGraphT>(); in TransModelToGraph()
329 std::unique_ptr<mindspore::schema::TensorT> transTensor {nullptr}; in TransModelToGraph()
342 std::unique_ptr<mindspore::schema::CNodeT> transNode {nullptr}; in TransModelToGraph()
362 std::unique_ptr<mindspore::schema::TensorT> NnrtDeviceService::TransTensor(const Tensor& tensor, in TransTensor()
377 auto schemaTensor = std::make_unique<mindspore::schema::TensorT>(); in TransTensor()
380 schemaTensor->format = static_cast<mindspore::schema::Format>(tensor.format); in TransTensor()
383 auto quantParam = std::make_unique<mindspore::schema::QuantParamT>(); in TransTensor()
415 std::unique_ptr<mindspore::schema::CNodeT> NnrtDeviceService::TransNode(const Node& node, in TransNode()
418 auto cnode = std::make_unique<mindspore::schema::CNodeT>(); in TransNode()
422 cnode->quantType = static_cast<mindspore::schema::QuantType>(node.quantType); in TransNode()
[all …]
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/interfaces/
H A Ddistributeddb_interfaces_relational_tracker_table_test.cpp298 TrackerSchema schema; variable
305 schema.tableName = "xx";
330 TrackerSchema schema; variable
346 schema.extendColName = {};
363 TrackerSchema schema; variable
410 schema = g_normalSchema3;
461 schema = g_normalSchema2;
509 schema = g_normalSchema1;
1192 schema = g_normalSchema2;
1224 TrackerSchema schema; variable
[all …]
H A Ddistributeddb_interfaces_database_test.cpp163 option.schema = emptySchema; in OpenOpenedKvstoreWithSchema()
181 option.schema = inSchema; in OpenClosedSchemaKvStore()
248 option.schema = inSchema; in OpenClosedSchemaKvStore()
876 GenerateValidSchemaString(option.schema);
902 GenerateValidSchemaString(option.schema);
938 GenerateValidSchemaString(option.schema);
976 GenerateValidSchemaString(option.schema);
1010 GenerateValidSchemaString(option.schema);
1080 GenerateValidSchemaString(option.schema);
1110 std::string schema; variable
[all …]
H A Ddistributeddb_interfaces_index_unit_test.cpp302 option.schema = g_schemaString1;
323 option.schema = g_schemaString2;
369 option.schema = g_schemaString1;
390 option.schema = g_schemaString2;
437 option.schema = g_schemaString1;
463 option.schema = g_schemaString2;
517 option.schema = g_schemaString1;
587 option.schema = g_schemaString1;
633 option.schema = g_schemaString1;
704 option.schema = GenerateSchemaString(g_pathGroup1, vector<FieldPath>(),
[all …]
/ohos5.0/foundation/distributeddatamgr/kv_store/test/unittest/distributeddata/
H A DSchemaJsTest.js101 schema : {}, property in AnonymousFunction89a74c980300.options
209 options.schema = schema;
237 options.schema = schema;
280 schema.indexes = [];
283 options.schema = schema;
326 options.schema = schema;
372 options.schema = schema;
418 options.schema = schema;
495 schema.mode = 1;
515 schema.mode = 0;
[all …]
H A DKvManagerDataCallbackJsTest.js40 schema : '', property in AnonymousFunctionc221124a0100.options
134 schema : '', property in AnonymousFunctionc221124a0100.AnonymousFunctionc221124a0d00.optionsInfo
166 schema : '', property in AnonymousFunctionc221124a0100.AnonymousFunctionc221124a0f00.optionsInfo
199 schema : '', property in AnonymousFunctionc221124a0100.AnonymousFunctionc221124a1100.optionsInfo
230 schema : '', property in AnonymousFunctionc221124a0100.AnonymousFunctionc221124a1300.optionsInfo
261 schema : '', property in AnonymousFunctionc221124a0100.AnonymousFunctionc221124a1500.optionsInfo
292 schema : '', property in AnonymousFunctionc221124a0100.AnonymousFunctionc221124a1700.optionsInfo
323 schema : '', property in AnonymousFunctionc221124a0100.AnonymousFunctionc221124a1900.optionsInfo
354 schema : '', property in AnonymousFunctionc221124a0100.AnonymousFunctionc221124a1b00.optionsInfo
385 schema : '', property in AnonymousFunctionc221124a0100.AnonymousFunctionc221124a1d00.optionsInfo
[all …]
H A DKvManagerDataPromiseJsTest.js44 schema: '', property in AnonymousFunction8874adbc0100.options
142 schema: '', property in AnonymousFunction8874adbc0100.AnonymousFunction8874adbc0800.optionsInfo
170 schema: '', property in AnonymousFunction8874adbc0100.AnonymousFunction8874adbc0900.optionsInfo
196 schema: '', property in AnonymousFunction8874adbc0100.AnonymousFunction8874adbc0a00.optionsInfo
224 schema: '', property in AnonymousFunction8874adbc0100.AnonymousFunction8874adbc0b00.optionsInfo
252 schema: '', property in AnonymousFunction8874adbc0100.AnonymousFunction8874adbc0c00.optionsInfo
280 schema: '', property in AnonymousFunction8874adbc0100.AnonymousFunction8874adbc0d00.optionsInfo
308 schema: '', property in AnonymousFunction8874adbc0100.AnonymousFunction8874adbc0e00.optionsInfo
336 schema: '', property in AnonymousFunction8874adbc0100.AnonymousFunction8874adbc0f00.optionsInfo
364 schema: '', property in AnonymousFunction8874adbc0100.AnonymousFunction8874adbc1000.optionsInfo
[all …]
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/jskitsimpl/distributeddata/src/
H A Djs_schema.cpp76 delete schema; in New()
78 ASSERT_CALL(env, napi_wrap(env, ctxt->self, schema, finalize, nullptr, nullptr), schema); in New()
106 auto schema = GetSchema(env, info, ctxt); in GetRootNode() local
108 if (schema->rootNode_ == nullptr) { in GetRootNode()
134 if (schema->ref_ != nullptr) { in SetRootNode()
139 schema->rootNode_ = node; in SetRootNode()
150 auto schema = GetSchema(env, info, ctxt); in GetMode() local
169 schema->mode_ = mode; in SetMode()
177 auto schema = GetSchema(env, info, ctxt); in GetSkip() local
196 schema->skip_ = skip; in SetSkip()
[all …]
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/jskitsimpl/distributedkvstore/src/
H A Djs_schema.cpp78 delete schema; in New()
80 ASSERT_CALL(env, napi_wrap(env, ctxt->self, schema, finalize, nullptr, nullptr), schema); in New()
108 auto schema = GetSchema(env, info, ctxt); in GetRootNode() local
110 if (schema->rootNode_ == nullptr) { in GetRootNode()
136 if (schema->ref_ != nullptr) { in SetRootNode()
141 schema->rootNode_ = node; in SetRootNode()
152 auto schema = GetSchema(env, info, ctxt); in GetMode() local
171 schema->mode_ = mode; in SetMode()
179 auto schema = GetSchema(env, info, ctxt); in GetSkip() local
198 schema->skip_ = skip; in SetSkip()
[all …]
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/sqlite/relational/
H A Dsqlite_single_relational_storage_engine.cpp139 schema_ = schema; in SetSchema()
241 RelationalSchemaObject &schema) in CreateDistributedSharedTable() argument
260 schema_ = schema; in CreateDistributedSharedTable()
301 SetSchema(schema); in CreateDistributedTable()
318 schema.SetTableMode(mode); in CreateDistributedTable()
374 SetSchema(schema); in UpgradeDistributedTable()
470 if (!tracker.GetTrackerTable(schema.tableName).IsChanging(schema) && !schema.isForceUpgrade) { in SetTrackerTable()
519 …if (!tracker.GetTrackerTable(schema.tableName).IsChanging(schema) && !schema.isForceUpgrade) { // … in CheckAndCacheTrackerSchema()
651 schema = schema_; in SetReference()
772 schema_ = schema; in UpgradeSharedTableInner()
[all …]
H A Dsqlite_single_relational_storage_engine.h34 void SetSchema(const RelationalSchemaObject &schema);
46 int SetTrackerTable(const TrackerSchema &schema);
47 …int CheckAndCacheTrackerSchema(const TrackerSchema &schema, TableInfo &tableInfo, bool &isFirstCre…
57 RelationalSchemaObject &schema);
77 const std::string &identity, TableInfo &table, RelationalSchemaObject &schema);
80 RelationalSchemaObject &schema, TableSyncType tableSyncType);
83 const std::string &sharedTableName, TableSyncType syncType, RelationalSchemaObject &schema);
105 const std::vector<std::string> &deleteTableNames, RelationalSchemaObject &schema);
112 const std::map<std::string, std::string> &alterTableNames, RelationalSchemaObject &schema);
116 const std::map<std::string, std::string> &alterTableNames, RelationalSchemaObject &schema);
[all …]
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/storage/
H A Ddistributeddb_storage_index_optimize_test.cpp62 schema = BASE_SCHEMA_STRING + indexString + "}"; in GenerateSchemaString()
227 std::string schema; variable
234 option.schema = schema;
251 std::string schema; variable
252 GenerateSchemaString(schema, "[\"name\", \"id\"]");
254 ASSERT_EQ(schemaObject1.ParseFromSchemaString(schema), E_OK);
271 ASSERT_EQ(schemaObject2.ParseFromSchemaString(schema), E_OK);
283 ASSERT_EQ(schemaObject3.ParseFromSchemaString(schema), E_OK);
303 std::string schema; variable
310 ASSERT_EQ(schemaObject1.ParseFromSchemaString(schema), E_OK);
[all …]
H A Ddistributeddb_relational_syncable_storage_test.cpp97 RelationalSchemaObject schema = syncAbleStorage->GetSchemaInfo(); in __anon97c14e970202() local
98 (void)schema.ToSchemaString(); in __anon97c14e970202()
103 RelationalSchemaObject schema; variable
107 schema.AddRelationalTable(table);
111 RelationalSchemaObject tmpSchema = schema;
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/moduletest/common/distributeddb/src/
H A Ddistributeddb_data_generator.cpp453 std::string schema; in SpliceToSchema() local
467 return schema; in SpliceToSchema()
532 return schema; in GetValidSchema()
574 schema.push_back("\""); in GenarateOtherInvalidSchema()
575 schema.push_back(" "); in GenarateOtherInvalidSchema()
576 schema.push_back("\t"); in GenarateOtherInvalidSchema()
577 schema.push_back("\r"); in GenarateOtherInvalidSchema()
609 result[0] = schema; in GetInvalidSchema()
610 schema.clear(); in GetInvalidSchema()
616 result[1] = schema; in GetInvalidSchema()
[all …]
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/common/
H A Ddistributeddb_schema_object_test.cpp987 CheckValueLackField(schema, oriValue, lackField, expectErrCode, valueObj); in CheckValueLackField()
1000 SchemaObject schema; variable
1008 CheckValueLackField(schema, VALUE_NO_LACK_FIELD, "", -E_VALUE_MATCH);
1059 SchemaObject schema; variable
1104 SchemaObject schema; variable
1105 std::string str1 = schema.GetExtractFuncName(SchemaType::NONE);
1145 SchemaObject schema; variable
1147 int ret = schema.CompareAgainstSchemaObject(schema, indexDiffer);
1150 ret = schema.CheckValueAndAmendIfNeed(ValueSource::FROM_LOCAL, inValue);
1154 ret = schema.VerifyValue(ValueSource::FROM_LOCAL, val);
[all …]
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/moduletest/src/
H A Ddistributeddb_nb_schema_test.cpp321 option.schema.clear();
430 option.schema.clear();
476 option.schema.clear();
526 option.schema.clear();
542 option.schema.clear();
563 option.schema.clear();
575 option.schema.clear(); in ReopenDBWithDiffSchema()
685 option.schema.clear();
731 option.schema.clear();
751 option.schema.clear();
[all …]
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/common/src/relational/
H A Dtracker_table.cpp22 void TrackerTable::Init(const TrackerSchema &schema) in Init() argument
24 tableName_ = schema.tableName; in Init()
25 extendColName_ = schema.extendColName; in Init()
26 trackerColNames_ = schema.trackerColNames; in Init()
254 bool TrackerTable::IsChanging(const TrackerSchema &schema) in IsChanging() argument
256 if (tableName_ != schema.tableName || extendColName_ != schema.extendColName) { in IsChanging()
259 if (trackerColNames_.size() != schema.trackerColNames.size()) { in IsChanging()
263 if (schema.trackerColNames.find(col) == schema.trackerColNames.end()) { in IsChanging()
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkdata/
H A Djs-apis-data-dataSharePredicates.md30 目前仅RDB及KVDB(schema)支持该谓词。
61 目前仅RDB及KVDB(schema)支持该谓词。
86 目前仅RDB及KVDB(schema)支持该谓词。
115 目前仅RDB及KVDB(schema)支持该谓词。
144 目前仅RDB及KVDB(schema)支持该谓词。
174 目前仅RDB及KVDB(schema)支持该谓词。
H A Djs-apis-data-dataSharePredicates-sys.md32 目前仅RDB及KVDB(schema)支持该谓词。
124 目前仅RDB及KVDB(schema)支持该谓词。
247 目前仅RDB及KVDB(schema)支持该谓词。
278 目前仅RDB及KVDB(schema)支持该谓词。
309 目前仅RDB及KVDB(schema)支持该谓词。
341 目前仅RDB及KVDB(schema)支持该谓词。
471 目前仅RDB及KVDB(schema)支持该谓词。
503 目前仅RDB及KVDB(schema)支持该谓词。
535 目前仅RDB及KVDB(schema)支持该谓词。
567 目前仅RDB及KVDB(schema)支持该谓词。
[all …]
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/syncer/cloud/
H A Dcloud_db_data_utils.cpp20 std::vector<VBucket> CloudDBDataUtils::GenerateRecords(int recordCounts, const TableSchema &schema) in GenerateRecords() argument
25 records.push_back(GenerateRecord(schema, i)); in GenerateRecords()
30 VBucket CloudDBDataUtils::GenerateRecord(const DistributedDB::TableSchema &schema, int32_t start) in GenerateRecord() argument
34 for (const auto &field: schema.fields) { in GenerateRecord()
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/sqlite/
H A Dsqlite_single_ver_schema_database_upgrader.cpp49 SchemaObject schema; member
72 …int errCode = valueObj.Parse(inValue.first, inValue.first + inValue.second, context.schema.GetSkip… in CheckGetForJsonSchema()
79 errCode = context.schema.CheckValueAndAmendIfNeed(ValueSource::FROM_DBFILE, valueObj); in CheckGetForJsonSchema()
118 int errCode = context.schema.VerifyValue(ValueSource::FROM_DBFILE, inValue); in CheckGetForFlatBufferSchema()
136 if (context == nullptr || !context->schema.IsSchemaValid()) { // Unlikely in CheckValueOrGetAmendValue()
150 if (context->schema.GetSchemaType() == SchemaType::JSON) { in CheckValueOrGetAmendValue()
177 context.schema = newSchema_; in UpgradeValues()

12345678910