[SERVER-86151] Create unowned key_string::View type Created: 02/Feb/24  Updated: 03/Feb/24

Status: Open
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: Louis Williams Assignee: Backlog - Storage Execution Team
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-81012 KeyString Version of Index Scan Optim... Open
Assigned Teams:
Storage Execution
Participants:

 Description   

Create a key_string::View type with the following structure:

struct key_string::View {
  const char* data;
  int size;
 
  // Due to the uncertainty of the underlying index key format, this key string may or may not
  // have a RecordId encoded at the end.
  bool hasRecordIdAtEnd;
 
  // Unowned TypeBits
 TypeBitsView typeBits;
 
  // Get an owned copy of the keystring
  Value getOwnedCopy();
};

Create relevant comparison helpers.


Generated at Thu Feb 08 06:59:31 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.