leveldb
Public Member Functions | Public Attributes | List of all members
leveldb::VersionSet::Builder::BySmallestKey Struct Reference
Collaboration diagram for leveldb::VersionSet::Builder::BySmallestKey:
Collaboration graph
[legend]

Public Member Functions

bool operator() (FileMetaData *f1, FileMetaData *f2) const
 

Public Attributes

const InternalKeyComparatorinternal_comparator
 

Detailed Description

Definition at line 606 of file version_set.cc.

Member Function Documentation

§ operator()()

bool leveldb::VersionSet::Builder::BySmallestKey::operator() ( FileMetaData f1,
FileMetaData f2 
) const
inline

Definition at line 609 of file version_set.cc.

609  {
610  int r = internal_comparator->Compare(f1->smallest, f2->smallest);
611  if (r != 0) {
612  return (r < 0);
613  } else {
614  // Break ties by file number
615  return (f1->number < f2->number);
616  }
617  }
virtual int Compare(const Slice &a, const Slice &b) const
Definition: dbformat.cc:50
const InternalKeyComparator * internal_comparator
Definition: version_set.cc:607
Here is the call graph for this function:

Member Data Documentation

§ internal_comparator

const InternalKeyComparator* leveldb::VersionSet::Builder::BySmallestKey::internal_comparator

Definition at line 607 of file version_set.cc.


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