public class Index extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
collectionName |
protected String |
indexName |
protected Boolean |
isClient |
protected String |
primaryKey |
protected VikingDBService |
vikingDBService |
| Constructor and Description |
|---|
Index() |
Index(String collectionName,
String indexName,
VectorIndexParams vectorIndex,
List<String> scalarIndex,
String stat,
VikingDBService vikingDBService) |
protected String collectionName
protected String indexName
protected VikingDBService vikingDBService
protected String primaryKey
protected Boolean isClient
public Index()
public Index(String collectionName, String indexName, VectorIndexParams vectorIndex, List<String> scalarIndex, String stat, VikingDBService vikingDBService)
public void setCpuQuota(Integer cpuQuota)
public void setCpuQuota(Long cpuQuota)
public void setShardCount(Integer shardCount)
public void setShardCount(Long shardCount)
public void setShardPolicy(String shardPolicy)
public List<DataObject> search(SearchParam searchParam) throws Exception
Exceptionpublic PageDataObject searchPagination(SearchParam searchParam) throws Exception
Exceptionpublic List<DataObject> searchById(SearchByIdParam searchByIdParam) throws Exception
Exceptionpublic List<DataObject> searchByVector(SearchByVectorParam searchByVectorParam) throws Exception
Exceptionpublic List<DataObject> searchWithMultiModal(SearchWithMultiModalParam searchWithMultiModalParam) throws Exception
Exceptionpublic List<DataObject> searchByText(SearchByTextParam searchByTextParam) throws Exception
public SearchAggResult searchAgg(SearchAggParam searchAggParam) throws Exception
Exceptionpublic <T> IndexSortResult<T> sort(IndexSortParam<T> indexSortParam) throws Exception
Exceptionpublic <T> DataObject fetchData(T id, FetchDataParam fetchDataParam) throws Exception
Exceptionpublic List<DataObject> fetchData(List<?> ids, FetchDataParam fetchDataParam) throws Exception
Exceptionpublic PageDataObject getPageData(com.google.gson.internal.LinkedTreeMap<String,Object> resData, List<String> outputFields) throws Exception
ExceptionCopyright © 2025. All rights reserved.