tlp::AbstractCSVToGraphDataMapping Class Reference
Abstract class handling node or edge mapping between a CSV column and a graph property.
More...
#include <CSVGraphImport.h>
List of all members.
Public Member Functions
Protected Member Functions
- virtual unsigned int buildIndexForRow (unsigned int row, const std::string &indexKey, tlp::Graph *graph, tlp::PropertyInterface *keyProperty)=0
- Create a new element if no elements for the given row was found.
Protected Attributes
Detailed Description
Abstract class handling node or edge mapping between a CSV column and a graph property.
Be sure there is a property with the given name in the graph or an error will occur. Automatically handle CSV file parsing just implements the buildIndexForRow function to fill the rowToGraphId map with the right graph element.
Constructor & Destructor Documentation
tlp::AbstractCSVToGraphDataMapping::AbstractCSVToGraphDataMapping |
( |
tlp::Graph * |
graph, |
|
|
tlp::ElementType |
type, |
|
|
unsigned int |
columnIndex, |
|
|
const std::string & |
propertyName | |
|
) |
| | |
virtual tlp::AbstractCSVToGraphDataMapping::~AbstractCSVToGraphDataMapping |
( |
|
) |
[inline, virtual] |
Member Function Documentation
virtual unsigned int tlp::AbstractCSVToGraphDataMapping::buildIndexForRow |
( |
unsigned int |
row, |
|
|
const std::string & |
indexKey, |
|
|
tlp::Graph * |
graph, |
|
|
tlp::PropertyInterface * |
keyProperty | |
|
) |
| | [protected, pure virtual] |
std::pair<tlp::ElementType,unsigned int> tlp::AbstractCSVToGraphDataMapping::getElementForRow |
( |
const std::vector< std::string > & |
tokens |
) |
[virtual] |
void tlp::AbstractCSVToGraphDataMapping::init |
( |
unsigned int |
rowNumber |
) |
[virtual] |
Member Data Documentation