Couchbase Lite C
Couchbase Lite C API
CBLQueryIndex.h
Go to the documentation of this file.
1//
2// CBLQueryIndex.h
3//
4// Copyright (c) 2024 Couchbase, Inc All rights reserved.
5//
6// Licensed under the Apache License, Version 2.0 (the "License");
7// you may not use this file except in compliance with the License.
8// You may obtain a copy of the License at
9//
10// http://www.apache.org/licenses/LICENSE-2.0
11//
12// Unless required by applicable law or agreed to in writing, software
13// distributed under the License is distributed on an "AS IS" BASIS,
14// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15// See the License for the specific language governing permissions and
16// limitations under the License.
17//
18
19#pragma once
20#include "CBLBase.h"
21#include "CBLQueryTypes.h"
22
24
63
68
73
74#ifdef COUCHBASE_ENTERPRISE
75
77
91 size_t limit,
92 CBLError* _cbl_nullable outError) CBLAPI;
93
108
118
131 size_t index,
132 const float vector[_cbl_nullable],
133 size_t dimension,
134 CBLError* _cbl_nullable outError) CBLAPI;
135
143
154
155#endif
156
#define CBLAPI
Definition: CBL_Compat.h:104
#define _cbl_nullable
Definition: CBL_Compat.h:92
#define CBL_CAPI_BEGIN
Definition: CBL_Compat.h:105
#define CBL_CAPI_END
Definition: CBL_Compat.h:106
#define _cbl_warn_unused
Definition: CBL_Compat.h:40
struct CBLCollection CBLCollection
A collection, a document container.
Definition: CBLBase.h:194
FLValue CBLIndexUpdater_Value(CBLIndexUpdater *updater, size_t index)
ENTERPRISE EDITION ONLY.
FLString CBLQueryIndex_Name(const CBLQueryIndex *index)
Returns the index's name.
struct CBLQueryIndex CBLQueryIndex
A query index.
Definition: CBLBase.h:224
bool CBLIndexUpdater_Finish(CBLIndexUpdater *updater, CBLError *_cbl_nullable outError)
ENTERPRISE EDITION ONLY.
CBLCollection * CBLQueryIndex_Collection(const CBLQueryIndex *index)
Returns the collection that the index belongs to.
struct CBLIndexUpdater CBLIndexUpdater
Definition: CBLBase.h:227
bool CBLIndexUpdater_SetVector(CBLIndexUpdater *updater, size_t index, const float vector[_cbl_nullable], size_t dimension, CBLError *_cbl_nullable outError)
ENTERPRISE EDITION ONLY.
size_t CBLIndexUpdater_Count(const CBLIndexUpdater *updater)
ENTERPRISE EDITION ONLY.
void CBLIndexUpdater_SkipVector(CBLIndexUpdater *updater, size_t index)
ENTERPRISE EDITION ONLY.
_cbl_warn_unused CBLIndexUpdater *_cbl_nullable CBLQueryIndex_BeginUpdate(CBLQueryIndex *index, size_t limit, CBLError *_cbl_nullable outError)
ENTERPRISE EDITION ONLY.
#define CBL_REFCOUNTED(TYPE, NAME)
Definition: CBLBase.h:170
const struct _FLValue * FLValue
A reference to a value of any type.
Definition: FLBase.h:35
A struct holding information about an error.
Definition: CBLBase.h:104
A simple reference to a block of memory.
Definition: FLSlice.h:45