ProvSQL C/C++ API
Adding support for provenance and uncertainty management to PostgreSQL databases
Loading...
Searching...
No Matches
WhereCircuit::Locator Struct Reference

Describes the origin of a single attribute value. More...

#include "WhereCircuit.h"

Public Member Functions

 Locator (std::string t, uuid u, int i)
 Construct a Locator.
 
bool operator< (Locator that) const
 Lexicographic ordering for use in std::set.
 
std::string toString () const
 Return a human-readable representation of this locator.
 

Public Attributes

std::string table
 Name of the source relation.
 
uuid tid
 UUID (row token) of the source tuple.
 
int position
 Zero-based column index within the tuple.
 

Detailed Description

Describes the origin of a single attribute value.

A Locator identifies a specific attribute of a specific tuple in a specific base table as the origin of an output value.

Definition at line 102 of file WhereCircuit.h.

Constructor & Destructor Documentation

◆ Locator()

WhereCircuit::Locator::Locator ( std::string  t,
uuid  u,
int  i 
)
inline

Construct a Locator.

Parameters
tSource table name.
uSource tuple UUID.
iColumn position.

Definition at line 113 of file WhereCircuit.h.

Member Function Documentation

◆ operator<()

bool WhereCircuit::Locator::operator< ( WhereCircuit::Locator  that) const

Lexicographic ordering for use in std::set.

Parameters
thatOther Locator.
Returns
true if *this is less than that.

Definition at line 188 of file WhereCircuit.cpp.

◆ toString()

std::string WhereCircuit::Locator::toString ( ) const

Return a human-readable representation of this locator.

Returns
String of the form "table[tid].position".

Definition at line 197 of file WhereCircuit.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ position

int WhereCircuit::Locator::position

Zero-based column index within the tuple.

Definition at line 105 of file WhereCircuit.h.

◆ table

std::string WhereCircuit::Locator::table

Name of the source relation.

Definition at line 103 of file WhereCircuit.h.

◆ tid

uuid WhereCircuit::Locator::tid

UUID (row token) of the source tuple.

Definition at line 104 of file WhereCircuit.h.


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