public class Index extends Object
| 构造器和说明 |
|---|
Index() |
Index(String collectionName,
String indexName,
VectorIndexParams vectorIndex,
List<String> scalarIndex,
String stat,
VikingDBService vikingDBService) |
| 限定符和类型 | 方法和说明 |
|---|---|
List<DataObject> |
fetchData(List<?> ids,
FetchDataParam fetchDataParam) |
<T> DataObject |
fetchData(T id,
FetchDataParam fetchDataParam) |
List<DataObject> |
getDatas(com.google.gson.internal.LinkedTreeMap<String,Object> resData,
List<String> outputFields) |
String |
requestPrimaryKey() |
List<DataObject> |
search(SearchParam searchParam) |
List<DataObject> |
searchById(SearchByIdParam searchByIdParam) |
List<DataObject> |
searchByText(SearchByTextParam searchByTextParam) |
List<DataObject> |
searchByVector(SearchByVectorParam searchByVectorParam) |
void |
setCpuQuota(Integer cpuQuota) |
void |
setCpuQuota(Long cpuQuota) |
void |
setShardCount(Integer shardCount) |
void |
setShardCount(Long shardCount) |
void |
setShardPolicy(String shardPolicy) |
<T> IndexSortResult<T> |
sort(IndexSortParam<T> indexSortParam) |
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 List<DataObject> searchById(SearchByIdParam searchByIdParam) throws Exception
Exceptionpublic List<DataObject> searchByVector(SearchByVectorParam searchByVectorParam) throws Exception
Exceptionpublic List<DataObject> searchByText(SearchByTextParam searchByTextParam) 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
ExceptionCopyright © 2025. All rights reserved.