github.com/weaviate/weaviate@v1.24.6/entities/models/node_shard_status.go (about) 1 // _ _ 2 // __ _____ __ ___ ___ __ _| |_ ___ 3 // \ \ /\ / / _ \/ _` \ \ / / |/ _` | __/ _ \ 4 // \ V V / __/ (_| |\ V /| | (_| | || __/ 5 // \_/\_/ \___|\__,_| \_/ |_|\__,_|\__\___| 6 // 7 // Copyright © 2016 - 2024 Weaviate B.V. All rights reserved. 8 // 9 // CONTACT: hello@weaviate.io 10 // 11 12 // Code generated by go-swagger; DO NOT EDIT. 13 14 package models 15 16 // This file was generated by the swagger tool. 17 // Editing this file might prove futile when you re-run the swagger generate command 18 19 import ( 20 "context" 21 22 "github.com/go-openapi/strfmt" 23 "github.com/go-openapi/swag" 24 ) 25 26 // NodeShardStatus The definition of a node shard status response body 27 // 28 // swagger:model NodeShardStatus 29 type NodeShardStatus struct { 30 31 // The name of shard's class. 32 Class string `json:"class"` 33 34 // The status of vector compression/quantization. 35 Compressed bool `json:"compressed"` 36 37 // The load status of the shard. 38 Loaded bool `json:"loaded"` 39 40 // The name of the shard. 41 Name string `json:"name"` 42 43 // The number of objects in shard. 44 ObjectCount int64 `json:"objectCount"` 45 46 // The status of the vector indexing process. 47 VectorIndexingStatus string `json:"vectorIndexingStatus"` 48 49 // The length of the vector indexing queue. 50 VectorQueueLength int64 `json:"vectorQueueLength"` 51 } 52 53 // Validate validates this node shard status 54 func (m *NodeShardStatus) Validate(formats strfmt.Registry) error { 55 return nil 56 } 57 58 // ContextValidate validates this node shard status based on context it is used 59 func (m *NodeShardStatus) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 60 return nil 61 } 62 63 // MarshalBinary interface implementation 64 func (m *NodeShardStatus) MarshalBinary() ([]byte, error) { 65 if m == nil { 66 return nil, nil 67 } 68 return swag.WriteJSON(m) 69 } 70 71 // UnmarshalBinary interface implementation 72 func (m *NodeShardStatus) UnmarshalBinary(b []byte) error { 73 var res NodeShardStatus 74 if err := swag.ReadJSON(b, &res); err != nil { 75 return err 76 } 77 *m = res 78 return nil 79 }