leveldb
Public Member Functions | Public Attributes | List of all members
leveldb::ParsedInternalKey Struct Reference

#include <dbformat.h>

Collaboration diagram for leveldb::ParsedInternalKey:
Collaboration graph
[legend]

Public Member Functions

 ParsedInternalKey ()
 
 ParsedInternalKey (const Slice &u, const SequenceNumber &seq, ValueType t)
 
std::string DebugString () const
 

Public Attributes

Slice user_key
 
SequenceNumber sequence
 
ValueType type
 

Detailed Description

Definition at line 70 of file dbformat.h.

Constructor & Destructor Documentation

§ ParsedInternalKey() [1/2]

leveldb::ParsedInternalKey::ParsedInternalKey ( )
inline

Definition at line 75 of file dbformat.h.

75 { } // Intentionally left uninitialized (for speed)

§ ParsedInternalKey() [2/2]

leveldb::ParsedInternalKey::ParsedInternalKey ( const Slice u,
const SequenceNumber seq,
ValueType  t 
)
inline

Definition at line 76 of file dbformat.h.

77  : user_key(u), sequence(seq), type(t) { }
SequenceNumber sequence
Definition: dbformat.h:72

Member Function Documentation

§ DebugString()

std::string leveldb::ParsedInternalKey::DebugString ( ) const

Definition at line 23 of file dbformat.cc.

23  {
24  char buf[50];
25  snprintf(buf, sizeof(buf), "' @ %llu : %d",
26  (unsigned long long) sequence,
27  int(type));
28  std::string result = "'";
29  result += EscapeString(user_key.ToString());
30  result += buf;
31  return result;
32 }
SequenceNumber sequence
Definition: dbformat.h:72
std::string ToString() const
Definition: slice.h:66
std::string EscapeString(const Slice &value)
Definition: logging.cc:42
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

§ sequence

SequenceNumber leveldb::ParsedInternalKey::sequence

Definition at line 72 of file dbformat.h.

§ type

ValueType leveldb::ParsedInternalKey::type

Definition at line 73 of file dbformat.h.

§ user_key

Slice leveldb::ParsedInternalKey::user_key

Definition at line 71 of file dbformat.h.


The documentation for this struct was generated from the following files: