/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/common/src/ |
H A D | query.cpp | 76 Query &Query::SuggestIndex(const std::string &indexName) in SuggestIndex() argument 78 queryExpression_.QueryBySuggestIndex(indexName); in SuggestIndex()
|
H A D | query_expression.cpp | 223 void QueryExpression::QueryBySuggestIndex(const std::string &indexName) in QueryBySuggestIndex() argument 226 expressions_[fromTable_].QueryBySuggestIndex(indexName); in QueryBySuggestIndex() 231 queryInfo_.emplace_back(QueryObjNode{QueryObjType::SUGGEST_INDEX, indexName, in QueryBySuggestIndex() 233 suggestIndex_ = indexName; in QueryBySuggestIndex()
|
H A D | schema_object.cpp | 205 bool SchemaObject::IsIndexExist(const IndexName &indexName) const in IsIndexExist() 210 return (schemaIndexes_.count(indexName) != 0); in IsIndexExist() 710 // Check indexDefine duplication, Use Sort-Column(the first fieldPath in index) as the indexName. in ParseCheckEachIndexFromStringArray() 711 const IndexName &indexName = indexPathVec.front(); in ParseCheckEachIndexFromStringArray() local 712 if (schemaIndexes_.count(indexName) != 0) { in ParseCheckEachIndexFromStringArray() 717 return CheckFieldPathIndexableThenSave(indexPathVec, schemaIndexes_[indexName]); in ParseCheckEachIndexFromStringArray() 963 LOGD("[Schema][CompareIndex] Increase indexName."); in CompareSchemaIndexes() 968 LOGD("[Schema][CompareIndex] Change indexName."); in CompareSchemaIndexes() 976 LOGD("[Schema][CompareIndex] Decrease indexName."); in CompareSchemaIndexes()
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/sqlite/ |
H A D | sqlite_utils.cpp | 744 std::string indexName; in GetSchemaIndexList() local 745 (void) SQLiteUtils::GetColumnTextValue(statement, 1, indexName); // 1 means index name in GetSchemaIndexList() 749 indexList.push_back(indexName); in GetSchemaIndexList() 751 uniqueList.push_back(indexName); in GetSchemaIndexList() 762 int AnalysisSchemaIndexDefine(sqlite3 *db, const std::string &indexName, CompositeFields &indexDefine) in AnalysisSchemaIndexDefine() argument 764 auto sql = "pragma index_info('" + indexName + "')"; in AnalysisSchemaIndexDefine() 801 for (const auto &indexName : indexList) { in AnalysisSchemaIndex() 803 errCode = AnalysisSchemaIndexDefine(db, indexName, indexDefine); in AnalysisSchemaIndex() 808 table.AddIndexDefine(indexName, indexDefine); in AnalysisSchemaIndex() 1302 std::string indexName in IncreaseIndex() local 1347 std::string indexName = SchemaUtils::FieldPathString(name); DecreaseIndex() local [all...] |
H A D | sqlite_query_helper.cpp | 812 IndexName indexName; in CheckAndFormatSuggestIndex() local 813 int errCode = SchemaUtils::ParseAndCheckFieldPath(suggestIndex_, indexName); in CheckAndFormatSuggestIndex() 819 if (!schema_.IsIndexExist(indexName)) { in CheckAndFormatSuggestIndex() 823 return SchemaUtils::FieldPathString(indexName); in CheckAndFormatSuggestIndex()
|
/foundation/distributeddatamgr/relational_store/frameworks/native/rdb/src/ |
H A D | abs_predicates.cpp | 447 AbsPredicates *AbsPredicates::IndexedBy(const std::string &indexName)
in IndexedBy() argument 449 if (!CheckParameter("indexedBy", indexName, {})) {
in IndexedBy() 452 index = RemoveQuotes(indexName);
in IndexedBy()
|
H A D | abs_rdb_predicates.cpp | 302 AbsRdbPredicates *AbsRdbPredicates::IndexedBy(const std::string &indexName)
in IndexedBy() argument 304 predicates_.AddOperation(DistributedRdb::INDEXED_BY, indexName, "");
in IndexedBy() 305 return (AbsRdbPredicates *)AbsPredicates::IndexedBy(indexName);
in IndexedBy()
|
H A D | sqlite_sql_builder.cpp | 76 const std::string &indexName, const std::string &orderBy, const int &limit, const int &offset, std::string &outSql) in BuildQueryString() 94 .append(BuildSqlStringFromPredicates(indexName, joinClause, whereClause, groupBy, orderBy, limit, offset)); in BuildQueryString() 74 BuildQueryString(bool distinct, const std::string &table, const std::string &joinClause, const std::vector<std::string> &columns, const std::string &whereClause, const std::string &groupBy, const std::string &indexName, const std::string &orderBy, const int &limit, const int &offset, std::string &outSql) BuildQueryString() argument
|
H A D | rdb_store.cpp | 223 const std::string &indexName, const std::string &orderBy, const int &limit, const int &offset) in Query() 226 errCode = SqliteSqlBuilder::BuildQueryString(distinct, table, "", columns, whereClause, groupBy, indexName, in Query() 221 Query(int &errCode, bool distinct, const std::string &table, const Fields &columns, const std::string &whereClause, const Values &args, const std::string &groupBy, const std::string &indexName, const std::string &orderBy, const int &limit, const int &offset) Query() argument
|
/foundation/distributeddatamgr/relational_store/frameworks/native/rdb/include/ |
H A D | sqlite_sql_builder.h | 39 const std::string &indexName, const std::string &orderBy, const int &limit,
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/storage/ |
H A D | distributeddb_storage_index_optimize_test.cpp | 75 bool CheckIndexFromDbFile(const::std::string &filePath, const std::string &indexName) in CheckIndexFromDbFile() argument 86 std::string querySQL = "select sql from sqlite_master where name = '" + indexName + "'"; in CheckIndexFromDbFile()
|
/foundation/distributeddatamgr/data_share/interfaces/inner_api/common/include/ |
H A D | datashare_predicates.h | 367 * @param indexName indicates the query condition.
369 DataSharePredicates *IndexedBy(const std::string &indexName)
in IndexedBy() argument 371 SetOperationList(INDEXED_BY, indexName);
in IndexedBy()
|
H A D | datashare_abs_predicates.h | 240 * @param indexName indicates the query condition. 242 virtual DataShareAbsPredicates *IndexedBy(const std::string &indexName) = 0;
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/common/include/relational/ |
H A D | table_info.h | 95 void AddIndexDefine(const std::string &indexName, const CompositeFields &indexDefine);
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/common/include/ |
H A D | schema_object.h | 74 bool IsIndexExist(const IndexName &indexName) const;
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/include/ |
H A D | query.h | 148 DB_API Query &SuggestIndex(const std::string &indexName);
|
H A D | query_expression.h | 124 void QueryBySuggestIndex(const std::string &indexName);
|
/foundation/distributeddatamgr/relational_store/interfaces/inner_api/rdb/include/ |
H A D | abs_rdb_predicates.h | 229 API_EXPORT AbsRdbPredicates *IndexedBy(const std::string &indexName) override;
|
H A D | abs_predicates.h | 100 API_EXPORT virtual AbsPredicates *IndexedBy(const std::string &indexName);
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/common/src/relational/ |
H A D | table_info.cpp | 337 void TableInfo::AddIndexDefine(const std::string &indexName, const CompositeFields &indexDefine) in AddIndexDefine() argument 339 indexDefines_[indexName] = indexDefine; in AddIndexDefine()
|
/foundation/bundlemanager/app_domain_verify/test/unittest/mock/include/ |
H A D | mock_rdb.h | 95 const std::vector<ValueObject>& bindArgs, const std::string& groupBy, const std::string& indexName,
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/mock/include/ |
H A D | mock_app_provision_info.h | 83 const std::string &indexName = "", const std::string &orderBy = "",
|
/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/medialibrary_rdb_callback_test/include/ |
H A D | rdbstore_mock.h | 103 const std::string &groupBy, const std::string &indexName, const std::string &orderBy,
|
/foundation/filemanagement/dfs_service/test/unittests/clouddisk_database/mock/ |
H A D | rdb_assistant.h | 118 const std::string &indexName,
|
/foundation/filemanagement/dfs_service/test/unittests/clouddisk_database/include/ |
H A D | clouddisk_rdbstore_mock.h | 119 const std::string &indexName,
|