Class Get
- All Implemented Interfaces:
ClientResult<GraphQLResponse>
public class Get
extends BaseGraphQLClient<GraphQLResponse>
implements ClientResult<GraphQLResponse>
-
Field Summary
Fields inherited from class io.weaviate.client.base.BaseClient
config, serializer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionrun()<C> Result<GraphQLTypedResponse<C>>This method provides a better way of serializing a GraphQL response using one's defined classes.withAsk(AskArgument ask) withAutocut(Integer autocut) withBm25(Bm25Argument bm25) withClassName(String className) withConsistencyLevel(String level) withFields(Field... fields) withGenerativeSearch(GenerativeSearchBuilder generativeSearch) withGroup(GroupArgument group) withGroupBy(GroupByArgument groupBy) withHybrid(HybridArgument hybrid) withNearAudio(NearAudioArgument nearAudio) withNearDepth(NearDepthArgument nearDepth) withNearImage(NearImageArgument nearImage) withNearImu(NearImuArgument nearImu) withNearObject(NearObjectArgument nearObject) withNearText(NearTextArgument nearText) withNearThermal(NearThermalArgument nearThermal) withNearVector(NearVectorArgument nearVector) withNearVideo(NearVideoArgument nearVideo) withOffset(Integer offset) withSort(SortArgument... sort) withTenant(String tenant) withWhere(WhereFilter where) Deprecated.withWhere(WhereArgument where) Methods inherited from class io.weaviate.client.base.BaseGraphQLClient
sendGraphQLTypedRequestMethods inherited from class io.weaviate.client.base.BaseClient
getWeaviateErrorResponse, sendDeleteRequest, sendGetRequest, sendHeadRequest, sendHttpRequest, sendPatchRequest, sendPostRequest, sendPutRequest, toResponse
-
Constructor Details
-
Get
-
-
Method Details
-
withClassName
-
withFields
-
withWhere
Deprecated. -
withWhere
-
withLimit
-
withOffset
-
withAfter
-
withBm25
-
withHybrid
-
withAsk
-
withNearText
-
withNearObject
-
withNearVector
-
withNearImage
-
withNearAudio
-
withNearVideo
-
withNearDepth
-
withNearThermal
-
withNearImu
-
withGroup
-
withSort
-
withGenerativeSearch
-
withConsistencyLevel
-
withGroupBy
-
withTenant
-
withAutocut
-
run
- Specified by:
runin interfaceClientResult<GraphQLResponse>
-
run
This method provides a better way of serializing a GraphQL response using one's defined classes. Example: In Weaviate we have defined collection named Soup with name and price properties. For client to be able to properly serialize GraphQL response to an Object with convenient methods accessing GraphQL settings one can create a class, example:import com.google.gson.annotations.SerializedName; public class Soups { {@literal @}SerializedName(value = "Soup") List<Soup> soups; public List<Soup> getSoups() { return soups; } public static class Soup extends GraphQLGetBaseObject { String name; Float price; public String getName() { return name; } public Float getPrice() { return price; } } }- Type Parameters:
C- - Class of C- Parameters:
classOfC- - class describing Weaviate object, example: Soups class- Returns:
- Result of GraphQLTypedResponse of a given class
- See Also:
-