Home
last modified time | relevance | path

Searched refs:new_schema (Results 1 – 9 of 9) sorted by relevance

/external/icing/icing/schema/
Dschema-store.cc72 const SchemaProto& old_schema, const SchemaProto& new_schema) { in SchemaTypeIdsChanged() argument
81 for (int i = 0; i < new_schema.types_size(); ++i) { in SchemaTypeIdsChanged()
82 new_types_and_index.emplace(new_schema.types(i).schema_type(), i); in SchemaTypeIdsChanged()
317 SchemaStore::SetSchema(const SchemaProto& new_schema, in SetSchema() argument
319 return SetSchema(SchemaProto(new_schema), ignore_errors_and_delete_documents); in SetSchema()
323 SchemaStore::SetSchema(SchemaProto&& new_schema, in SetSchema() argument
326 SchemaUtil::Validate(new_schema)); in SetSchema()
344 if (new_schema.SerializeAsString() == old_schema.SerializeAsString()) { in SetSchema()
351 SchemaUtil::ComputeCompatibilityDelta(old_schema, new_schema, in SetSchema()
383 SchemaTypeIdsChanged(old_schema, new_schema); in SetSchema()
[all …]
Dschema-util_test.cc768 SchemaProto new_schema = in TEST() local
781 EXPECT_THAT(SchemaUtil::ComputeCompatibilityDelta(old_schema, new_schema, in TEST()
839 SchemaProto new_schema = in TEST() local
852 EXPECT_THAT(SchemaUtil::ComputeCompatibilityDelta(old_schema, new_schema, in TEST()
884 SchemaProto new_schema = in TEST() local
913 old_schema, new_schema, dependencies_map); in TEST()
977 SchemaProto new_schema = in TEST() local
996 EXPECT_THAT(SchemaUtil::ComputeCompatibilityDelta(old_schema, new_schema, in TEST()
1015 SchemaProto new_schema = in TEST() local
1035 EXPECT_THAT(SchemaUtil::ComputeCompatibilityDelta(old_schema, new_schema, in TEST()
[all …]
Dschema-store.h151 const SchemaProto& new_schema,
154 SchemaProto&& new_schema,
Dschema-util.h155 const SchemaProto& old_schema, const SchemaProto& new_schema,
Dschema-util.cc432 const SchemaProto& old_schema, const SchemaProto& new_schema, in ComputeCompatibilityDelta() argument
438 BuildTypeConfigMap(new_schema, &new_type_config_map); in ComputeCompatibilityDelta()
/external/icing/icing/
Dicing-search-engine.h141 SchemaProto&& new_schema, bool ignore_errors_and_delete_documents = false)
150 SetSchemaResultProto SetSchema(const SchemaProto& new_schema,
Dicing-search-engine.cc493 const SchemaProto& new_schema, bool ignore_errors_and_delete_documents) { in SetSchema() argument
494 return SetSchema(SchemaProto(new_schema), ignore_errors_and_delete_documents); in SetSchema()
498 SchemaProto&& new_schema, bool ignore_errors_and_delete_documents) { in SetSchema() argument
528 std::move(new_schema), ignore_errors_and_delete_documents); in SetSchema()
Dicing-search-engine_test.cc1569 SchemaProto new_schema; in TEST_F() local
1570 type = new_schema.add_types(); in TEST_F()
1579 EXPECT_THAT(icing.SetSchema(new_schema), EqualsProto(expected_result)); in TEST_F()
1584 EXPECT_THAT(icing.SetSchema(new_schema, in TEST_F()
3932 SchemaProto new_schema; in TEST_F() local
3933 auto type = new_schema.add_types(); in TEST_F()
3936 type = new_schema.add_types(); in TEST_F()
3972 ICING_EXPECT_OK(schema_store->SetSchema(new_schema)); in TEST_F()
6591 SchemaProto new_schema = in TEST_F() local
6618 ICING_EXPECT_OK(schema_store->SetSchema(new_schema)); in TEST_F()
/external/icing/icing/store/
Ddocument-store_test.cc949 SchemaProto new_schema = in TEST_F() local
954 new_schema, /*ignore_errors_and_delete_documents=*/true)); in TEST_F()
2396 SchemaProto new_schema = in TEST_F() local
2402 schema_store->SetSchema(new_schema, in TEST_F()
2631 SchemaProto new_schema = in TEST_F() local
2638 schema_store->SetSchema(new_schema, in TEST_F()