Class ShardKeyFactory

java.lang.Object
io.qdrant.client.ShardKeyFactory

public final class ShardKeyFactory extends Object
Convenience methods for constructing Collections.ShardKey
  • Method Details

    • shardKey

      public static io.qdrant.client.grpc.Collections.ShardKey shardKey(String keyword)
      Creates a Collections.ShardKey based on a keyword.
      Parameters:
      keyword - The keyword to create the shard key from
      Returns:
      The Collections.ShardKey object
    • shardKey

      public static io.qdrant.client.grpc.Collections.ShardKey shardKey(long number)
      Creates a Collections.ShardKey based on a number.
      Parameters:
      number - The number to create the shard key from
      Returns:
      The Collections.ShardKey object