Skip to main content

Collection

Addedv2.6.x

Represents a collection description returned by DescribeCollection, including schema, shards, and properties.

type Collection struct {
ID int64
Name string
Schema *Schema
PhysicalChannels []string
VirtualChannels []string
Loaded bool
ConsistencyLevel ConsistencyLevel
ShardNum int32
Properties map[string]string
UpdateTimestamp uint64
}

FIELDS:

  • ID (int64)

    collection id

  • Name (string)

    collection name

  • Schema (**Schema*)

    collection schema, with fields schema and primary key definition

  • PhysicalChannels ([]string)

    The physical channels.

  • VirtualChannels ([]string)

    The virtual channels.

  • Loaded (bool)

    Whether the resource is loaded into memory.

  • ConsistencyLevel (ConsistencyLevel)

    The consistency level for read operations.

  • ShardNum (int32)

    The number of shards for data distribution.

  • Properties (map[string]string)

    Custom key-value properties.

  • UpdateTimestamp (uint64)

    The last update timestamp for change detection.