github.com/weaviate/weaviate@v1.24.6/adapters/repos/db/lsmkv/segmentindex/key_index.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 package segmentindex 13 14 // Key is a helper struct that can be used to build the key nodes for the 15 // segment index. It contains the primary key and an arbitrary number of 16 // secondary keys, as well as valueStart and valueEnd indicator. Those are used 17 // to find the correct payload for each key. 18 type Key struct { 19 Key []byte 20 SecondaryKeys [][]byte 21 ValueStart int 22 ValueEnd int 23 }