Home
last modified time | relevance | path

Searched refs:schema_type (Results 1 – 22 of 22) sorted by relevance

/external/icing/icing/schema/
Dschema-util.cc74 if (old_property.schema_type() != new_property.schema_type()) { in IsSchemaTypeCompatible()
76 old_property.schema_type(), "->", in IsSchemaTypeCompatible()
77 new_property.schema_type()); in IsSchemaTypeCompatible()
214 std::string_view schema_type(type_config.schema_type()); in BuildTransitiveDependencyGraph() local
215 if (known_types.count(schema_type) > 0) { in BuildTransitiveDependencyGraph()
217 "Field 'schema_type' '", schema_type, "' is already defined")); in BuildTransitiveDependencyGraph()
219 known_types.insert(schema_type); in BuildTransitiveDependencyGraph()
220 unknown_types.erase(schema_type); in BuildTransitiveDependencyGraph()
226 std::string_view property_schema_type(property_config.schema_type()); in BuildTransitiveDependencyGraph()
227 if (property_schema_type == schema_type) { in BuildTransitiveDependencyGraph()
[all …]
Dsection-manager_test.cc55 type_config_map_.emplace(email_type.schema_type(), email_type); in SectionManagerTest()
56 type_config_map_.emplace(conversation_type.schema_type(), in SectionManagerTest()
386 document_property->set_schema_type(empty_type.schema_type()); in TEST_F()
396 type_config_map.emplace(type_with_non_string_properties.schema_type(), in TEST_F()
398 type_config_map.emplace(empty_type.schema_type(), empty_type); in TEST_F()
408 type_with_non_string_properties.schema_type(), /*schema_type_id=*/0)); in TEST_F()
409 ICING_ASSERT_OK(schema_type_mapper->Put(empty_type.schema_type(), in TEST_F()
419 .SetSchema(empty_type.schema_type()) in TEST_F()
426 .SetSchema(type_with_non_string_properties.schema_type()) in TEST_F()
461 document_property->set_schema_type(document_type.schema_type()); in TEST_F()
[all …]
Dschema-store.cc77 old_types_and_index.emplace(old_schema.types(i).schema_type(), i); in SchemaTypeIdsChanged()
82 new_types_and_index.emplace(new_schema.types(i).schema_type(), i); in SchemaTypeIdsChanged()
203 type_config_map_.emplace(type_config.schema_type(), type_config); in InitializeDerivedFiles()
220 type_config_map_.emplace(type_config.schema_type(), type_config); in RegenerateDerivedFiles()
224 type_config.schema_type(), schema_type_mapper_->num_keys())); in RegenerateDerivedFiles()
357 for (const auto& schema_type : schema_delta.schema_types_deleted) { in SetSchema() local
362 result.schema_types_deleted_by_name.emplace(schema_type); in SetSchema()
365 GetSchemaTypeId(schema_type)); in SetSchema()
369 for (const auto& schema_type : schema_delta.schema_types_incompatible) { in SetSchema() local
374 result.schema_types_incompatible_by_name.emplace(schema_type); in SetSchema()
[all …]
Dschema-util.h170 std::string_view property_name, std::string_view schema_type = "");
179 std::string_view schema_type);
188 std::string_view schema_type, std::string_view property_name);
197 std::string_view schema_type, std::string_view property_name);
209 std::string_view schema_type, std::string_view property_name);
Dschema-store.h165 GetSchemaTypeConfig(std::string_view schema_type) const;
175 std::string_view schema_type) const;
Dsection-manager.cc76 type_config_map.find(property_config.schema_type()); in AssignSections()
81 "Type config not found: ", property_config.schema_type())); in AssignSections()
/external/icing/icing/index/iterator/
Ddoc-hit-info-iterator-filter.cc57 for (std::string_view schema_type : options_.schema_types) { in DocHitInfoIteratorFilter() local
58 auto schema_type_id_or = schema_store_.GetSchemaTypeId(schema_type); in DocHitInfoIteratorFilter()
/external/icing/icing/
Dschema-builder.h55 PropertyConfigBuilder& SetDataTypeDocument(std::string_view schema_type, in SetDataTypeDocument() argument
58 property_.set_schema_type(std::string(schema_type)); in SetDataTypeDocument()
Dicing-search-engine.h172 GetSchemaTypeResultProto GetSchemaType(std::string_view schema_type)
268 DeleteBySchemaTypeResultProto DeleteBySchemaType(std::string_view schema_type)
Dicing-search-engine.cc618 std::string_view schema_type) { in GetSchemaType() argument
629 auto type_config_or = schema_store_->GetSchemaTypeConfig(schema_type); in GetSchemaType()
728 if (type_field_mask.schema_type() == document.schema()) { in Get()
730 } else if (type_field_mask.schema_type() == in Get()
858 const std::string_view schema_type) { in DeleteBySchemaType() argument
877 document_store_->DeleteBySchemaType(schema_type); in DeleteBySchemaType()
880 << "Failed to delete SchemaType: " << schema_type; in DeleteBySchemaType()
Dicing-search-engine_test.cc1651 EXPECT_THAT(icing.GetSchemaType(CreateMessageSchema().types(0).schema_type()), in TEST_F()
2906 .SetSchema(schema.types(0).schema_type()) in TEST_F()
2913 .SetSchema(schema.types(1).schema_type()) in TEST_F()
2939 search_spec.add_schema_type_filters(schema.types(0).schema_type()); in TEST_F()
5742 EXPECT_THAT(icing.GetSchemaType(email_schema.types(0).schema_type()).status(), in TEST_F()
5757 EXPECT_THAT(icing.DeleteBySchemaType(email_schema.types(0).schema_type()) in TEST_F()
/external/icing/icing/jni/
Dicing-search-engine-jni.cc161 JNIEnv* env, jclass clazz, jobject object, jstring schema_type) { in Java_com_google_android_icing_IcingSearchEngine_nativeGetSchemaType() argument
166 env->GetStringUTFChars(schema_type, /*isCopy=*/nullptr); in Java_com_google_android_icing_IcingSearchEngine_nativeGetSchemaType()
329 JNIEnv* env, jclass clazz, jobject object, jstring schema_type) { in Java_com_google_android_icing_IcingSearchEngine_nativeDeleteBySchemaType() argument
334 env->GetStringUTFChars(schema_type, /*isCopy=*/nullptr); in Java_com_google_android_icing_IcingSearchEngine_nativeDeleteBySchemaType()
/external/icing/proto/icing/proto/
Dschema.proto44 optional string schema_type = 1; field
142 // MUST have a valid 'schema_type'.
157 // in schema.org, matching the SchemaTypeConfigProto.schema_type of another
159 optional string schema_type = 3; field
261 // Copy of the SchemaTypeConfig proto with the specified schema_type.
Ddocument.proto38 // REQUIRED: Type of the Document. This should match the 'schema_type' of
40 // See icing.lib.SchemaTypeConfigProto.schema_type for details.
50 // already defined in the schema for this Document's schema_type.
Dsearch.proto265 optional string schema_type = 1; field
/external/python/google-api-python-client/googleapiclient/
Ddiscovery.py402 def _cast(value, schema_type): argument
415 if schema_type == "string":
420 elif schema_type == "integer":
422 elif schema_type == "number":
424 elif schema_type == "boolean":
/external/icing/icing/testing/
Ddocument-generator.h92 .SetSchema(type_config.schema_type()) in generateDoc()
/external/icing/icing/result/
Dresult-state.cc55 {type_field_mask.schema_type(), ProjectionTree(type_field_mask)}); in ResultState()
/external/icing/icing/util/
Ddocument-validator.cc153 property_config.schema_type(); in Validate()
/external/icing/icing/store/
Ddocument-store.h334 DeleteByGroupResult DeleteBySchemaType(std::string_view schema_type);
Ddocument-store.cc1213 std::string_view schema_type) { in DeleteBySchemaType() argument
1215 auto schema_type_id_or = schema_store_->GetSchemaTypeId(schema_type); in DeleteBySchemaType()
1220 schema_type)); in DeleteBySchemaType()
1233 "No documents found with schema type '", schema_type, "'")); in DeleteBySchemaType()
/external/libchrome/components/policy/core/common/
Dschema.cc79 const char* schema_type; in SchemaTypeToValueType() member
91 if (kSchemaToValueTypeMap[i].schema_type == type_string) { in SchemaTypeToValueType()