QueryPointGroups constructor

QueryPointGroups({
  1. String? collectionName,
  2. Iterable<PrefetchQuery>? prefetch,
  3. Query? query,
  4. String? using,
  5. Filter? filter,
  6. SearchParams? params,
  7. double? scoreThreshold,
  8. WithPayloadSelector? withPayload,
  9. WithVectorsSelector? withVectors,
  10. LookupLocation? lookupFrom,
  11. Int64? limit,
  12. Int64? groupSize,
  13. String? groupBy,
  14. ReadConsistency? readConsistency,
  15. WithLookup? withLookup,
  16. Int64? timeout,
  17. ShardKeySelector? shardKeySelector,
})

Implementation

factory QueryPointGroups({
  $core.String? collectionName,
  $core.Iterable<PrefetchQuery>? prefetch,
  Query? query,
  $core.String? using,
  Filter? filter,
  SearchParams? params,
  $core.double? scoreThreshold,
  WithPayloadSelector? withPayload,
  WithVectorsSelector? withVectors,
  LookupLocation? lookupFrom,
  $fixnum.Int64? limit,
  $fixnum.Int64? groupSize,
  $core.String? groupBy,
  ReadConsistency? readConsistency,
  WithLookup? withLookup,
  $fixnum.Int64? timeout,
  ShardKeySelector? shardKeySelector,
}) {
  final $result = create();
  if (collectionName != null) {
    $result.collectionName = collectionName;
  }
  if (prefetch != null) {
    $result.prefetch.addAll(prefetch);
  }
  if (query != null) {
    $result.query = query;
  }
  if (using != null) {
    $result.using = using;
  }
  if (filter != null) {
    $result.filter = filter;
  }
  if (params != null) {
    $result.params = params;
  }
  if (scoreThreshold != null) {
    $result.scoreThreshold = scoreThreshold;
  }
  if (withPayload != null) {
    $result.withPayload = withPayload;
  }
  if (withVectors != null) {
    $result.withVectors = withVectors;
  }
  if (lookupFrom != null) {
    $result.lookupFrom = lookupFrom;
  }
  if (limit != null) {
    $result.limit = limit;
  }
  if (groupSize != null) {
    $result.groupSize = groupSize;
  }
  if (groupBy != null) {
    $result.groupBy = groupBy;
  }
  if (readConsistency != null) {
    $result.readConsistency = readConsistency;
  }
  if (withLookup != null) {
    $result.withLookup = withLookup;
  }
  if (timeout != null) {
    $result.timeout = timeout;
  }
  if (shardKeySelector != null) {
    $result.shardKeySelector = shardKeySelector;
  }
  return $result;
}