Flex  0.17.9
Classes | Public Member Functions | Private Member Functions | Private Attributes | List of all members
gs::ReadTransaction Class Reference

#include <read_transaction.h>

Collaboration diagram for gs::ReadTransaction:
Collaboration graph
[legend]

Classes

class  edge_iterator
 
class  vertex_iterator
 

Public Member Functions

 ReadTransaction (const GraphDBSession &session, const MutablePropertyFragment &graph, VersionManager &vm, timestamp_t timestamp)
 
 ~ReadTransaction ()
 
std::string run (const std::string &cypher, const std::map< std::string, std::string > &params) const
 
timestamp_t timestamp () const
 
bool Commit ()
 
void Abort ()
 
const MutablePropertyFragmentgraph () const
 
const std::shared_ptr< ColumnBaseget_vertex_property_column (uint8_t label, const std::string &col_name) const
 
template<typename T >
const std::shared_ptr< TypedRefColumn< T > > get_vertex_ref_property_column (uint8_t label, const std::string &col_name) const
 Get the handle of the vertex property column, including the primary key. More...
 
vertex_iterator GetVertexIterator (label_t label) const
 
vertex_iterator FindVertex (label_t label, const Any &id) const
 
bool GetVertexIndex (label_t label, const Any &id, vid_t &index) const
 
vid_t GetVertexNum (label_t label) const
 
Any GetVertexId (label_t label, vid_t index) const
 
edge_iterator GetOutEdgeIterator (label_t label, vid_t u, label_t neighbor_label, label_t edge_label) const
 
edge_iterator GetInEdgeIterator (label_t label, vid_t u, label_t neighbor_label, label_t edge_label) const
 
size_t GetOutDegree (label_t label, vid_t u, label_t neighbor_label, label_t edge_label) const
 
size_t GetInDegree (label_t label, vid_t u, label_t neighbor_label, label_t edge_label) const
 
template<typename EDATA_T >
AdjListView< EDATA_T > GetOutgoingEdges (label_t v_label, vid_t v, label_t neighbor_label, label_t edge_label) const
 
template<typename EDATA_T >
AdjListView< EDATA_T > GetIncomingEdges (label_t v_label, vid_t v, label_t neighbor_label, label_t edge_label) const
 
const Schemaschema () const
 
template<typename EDATA_T >
GraphView< EDATA_T > GetOutgoingGraphView (label_t v_label, label_t neighbor_label, label_t edge_label) const
 
template<typename EDATA_T >
GraphView< EDATA_T > GetIncomingGraphView (label_t v_label, label_t neighbor_label, label_t edge_label) const
 
template<typename EDATA_T >
SingleGraphView< EDATA_T > GetOutgoingSingleGraphView (label_t v_label, label_t neighbor_label, label_t edge_label) const
 
template<typename EDATA_T >
SingleGraphView< EDATA_T > GetIncomingSingleGraphView (label_t v_label, label_t neighbor_label, label_t edge_label) const
 
template<typename EDATA_T >
SingleImmutableGraphView< EDATA_T > GetOutgoingSingleImmutableGraphView (label_t v_label, label_t neighbor_label, label_t edge_label) const
 
template<typename EDATA_T >
SingleImmutableGraphView< EDATA_T > GetIncomingSingleImmutableGraphView (label_t v_label, label_t neighbor_label, label_t edge_label) const
 
template<typename EDATA_T >
ImmutableGraphView< EDATA_T > GetOutgoingImmutableGraphView (label_t v_label, label_t neighbor_label, label_t edge_label) const
 
template<typename EDATA_T >
ImmutableGraphView< EDATA_T > GetIncomingImmutableGraphView (label_t v_label, label_t neighbor_label, label_t edge_label) const
 
const GraphDBSessionGetSession () const
 

Private Member Functions

void release ()
 

Private Attributes

const GraphDBSessionsession_
 
const MutablePropertyFragmentgraph_
 
VersionManagervm_
 
timestamp_t timestamp_
 

Constructor & Destructor Documentation

◆ ReadTransaction()

gs::ReadTransaction::ReadTransaction ( const GraphDBSession session,
const MutablePropertyFragment graph,
VersionManager vm,
timestamp_t  timestamp 
)

◆ ~ReadTransaction()

gs::ReadTransaction::~ReadTransaction ( )

Member Function Documentation

◆ Abort()

void gs::ReadTransaction::Abort ( )

◆ Commit()

bool gs::ReadTransaction::Commit ( )

◆ FindVertex()

ReadTransaction::vertex_iterator gs::ReadTransaction::FindVertex ( label_t  label,
const Any id 
) const

◆ get_vertex_property_column()

const std::shared_ptr<ColumnBase> gs::ReadTransaction::get_vertex_property_column ( uint8_t  label,
const std::string &  col_name 
) const
inline

◆ get_vertex_ref_property_column()

template<typename T >
const std::shared_ptr<TypedRefColumn<T> > gs::ReadTransaction::get_vertex_ref_property_column ( uint8_t  label,
const std::string &  col_name 
) const
inline

Get the handle of the vertex property column, including the primary key.

Template Parameters
TThe type of the column.
Parameters
labelThe label of the vertex.
col_nameThe name of the column.

◆ GetIncomingEdges()

template<typename EDATA_T >
AdjListView<EDATA_T> gs::ReadTransaction::GetIncomingEdges ( label_t  v_label,
vid_t  v,
label_t  neighbor_label,
label_t  edge_label 
) const
inline

◆ GetIncomingGraphView()

template<typename EDATA_T >
GraphView<EDATA_T> gs::ReadTransaction::GetIncomingGraphView ( label_t  v_label,
label_t  neighbor_label,
label_t  edge_label 
) const
inline

◆ GetIncomingImmutableGraphView()

template<typename EDATA_T >
ImmutableGraphView<EDATA_T> gs::ReadTransaction::GetIncomingImmutableGraphView ( label_t  v_label,
label_t  neighbor_label,
label_t  edge_label 
) const
inline

◆ GetIncomingSingleGraphView()

template<typename EDATA_T >
SingleGraphView<EDATA_T> gs::ReadTransaction::GetIncomingSingleGraphView ( label_t  v_label,
label_t  neighbor_label,
label_t  edge_label 
) const
inline

◆ GetIncomingSingleImmutableGraphView()

template<typename EDATA_T >
SingleImmutableGraphView<EDATA_T> gs::ReadTransaction::GetIncomingSingleImmutableGraphView ( label_t  v_label,
label_t  neighbor_label,
label_t  edge_label 
) const
inline

◆ GetInDegree()

size_t gs::ReadTransaction::GetInDegree ( label_t  label,
vid_t  u,
label_t  neighbor_label,
label_t  edge_label 
) const

◆ GetInEdgeIterator()

ReadTransaction::edge_iterator gs::ReadTransaction::GetInEdgeIterator ( label_t  label,
vid_t  u,
label_t  neighbor_label,
label_t  edge_label 
) const

◆ GetOutDegree()

size_t gs::ReadTransaction::GetOutDegree ( label_t  label,
vid_t  u,
label_t  neighbor_label,
label_t  edge_label 
) const

◆ GetOutEdgeIterator()

ReadTransaction::edge_iterator gs::ReadTransaction::GetOutEdgeIterator ( label_t  label,
vid_t  u,
label_t  neighbor_label,
label_t  edge_label 
) const

◆ GetOutgoingEdges()

template<typename EDATA_T >
AdjListView<EDATA_T> gs::ReadTransaction::GetOutgoingEdges ( label_t  v_label,
vid_t  v,
label_t  neighbor_label,
label_t  edge_label 
) const
inline

◆ GetOutgoingGraphView()

template<typename EDATA_T >
GraphView<EDATA_T> gs::ReadTransaction::GetOutgoingGraphView ( label_t  v_label,
label_t  neighbor_label,
label_t  edge_label 
) const
inline

◆ GetOutgoingImmutableGraphView()

template<typename EDATA_T >
ImmutableGraphView<EDATA_T> gs::ReadTransaction::GetOutgoingImmutableGraphView ( label_t  v_label,
label_t  neighbor_label,
label_t  edge_label 
) const
inline

◆ GetOutgoingSingleGraphView()

template<typename EDATA_T >
SingleGraphView<EDATA_T> gs::ReadTransaction::GetOutgoingSingleGraphView ( label_t  v_label,
label_t  neighbor_label,
label_t  edge_label 
) const
inline

◆ GetOutgoingSingleImmutableGraphView()

template<typename EDATA_T >
SingleImmutableGraphView<EDATA_T> gs::ReadTransaction::GetOutgoingSingleImmutableGraphView ( label_t  v_label,
label_t  neighbor_label,
label_t  edge_label 
) const
inline

◆ GetSession()

const GraphDBSession & gs::ReadTransaction::GetSession ( ) const

◆ GetVertexId()

Any gs::ReadTransaction::GetVertexId ( label_t  label,
vid_t  index 
) const

◆ GetVertexIndex()

bool gs::ReadTransaction::GetVertexIndex ( label_t  label,
const Any id,
vid_t index 
) const

◆ GetVertexIterator()

ReadTransaction::vertex_iterator gs::ReadTransaction::GetVertexIterator ( label_t  label) const

◆ GetVertexNum()

vid_t gs::ReadTransaction::GetVertexNum ( label_t  label) const

◆ graph()

const MutablePropertyFragment & gs::ReadTransaction::graph ( ) const

◆ release()

void gs::ReadTransaction::release ( )
private

◆ run()

std::string gs::ReadTransaction::run ( const std::string &  cypher,
const std::map< std::string, std::string > &  params 
) const

◆ schema()

const Schema& gs::ReadTransaction::schema ( ) const
inline

◆ timestamp()

timestamp_t gs::ReadTransaction::timestamp ( ) const

Member Data Documentation

◆ graph_

const MutablePropertyFragment& gs::ReadTransaction::graph_
private

◆ session_

const GraphDBSession& gs::ReadTransaction::session_
private

◆ timestamp_

timestamp_t gs::ReadTransaction::timestamp_
private

◆ vm_

VersionManager& gs::ReadTransaction::vm_
private

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