ReadShardValue reads a value from a shard at given position.
(shard *TableShard, columnID int, primaryKey []byte)
| 80 | |
| 81 | // ReadShardValue reads a value from a shard at given position. |
| 82 | func ReadShardValue(shard *TableShard, columnID int, primaryKey []byte) (unsafe.Pointer, bool) { |
| 83 | vp, index := getVectorParty(shard, columnID, primaryKey) |
| 84 | if vp == nil { |
| 85 | return nil, false |
| 86 | } |
| 87 | |
| 88 | validity := vp.GetValidity(index) |
| 89 | if validity { |
| 90 | return vp.GetDataValue(index).OtherVal, true |
| 91 | } |
| 92 | return nil, false |
| 93 | } |
| 94 | |
| 95 | // ReadShardBool reads a bool value from a shard at given position. |
| 96 | func ReadShardBool(shard *TableShard, columnID int, primaryKey []byte) (bool, bool) { |
no test coverage detected