|
Sparksee
6.0.2
|
EdgeTypeExporter class. More...


Public Member Functions | |
| EdgeTypeExporter () | |
| Creates a new instance. | |
| EdgeTypeExporter (RowWriter &rowWriter, sparksee::gdb::Graph &graph, sparksee::gdb::type_t type, sparksee::gdb::AttributeList &attrs, sparksee::gdb::int32_t hPos, sparksee::gdb::int32_t tPos, sparksee::gdb::attr_t hAttr, sparksee::gdb::attr_t tAttr) | |
| Creates a new instance. More... | |
| virtual | ~EdgeTypeExporter () |
| Destructor. | |
| void | Run () throw (sparksee::gdb::IOException, sparksee::gdb::Error) |
| See the TypeExporter class Run method. | |
| void | SetHeadAttribute (sparksee::gdb::attr_t attr) |
| Sets the attribute that will be used to get the value to be dumped for the head of the edge. More... | |
| void | SetHeadPosition (sparksee::gdb::int32_t pos) |
| Sets the position (index column) of the head attribute in the exported data. More... | |
| void | SetTailAttribute (sparksee::gdb::attr_t attr) |
| Sets the attribute that will be used to get the value to be dumped for the tail of the edge. More... | |
| void | SetTailPosition (sparksee::gdb::int32_t pos) |
| Sets the position (index column) of the tail attribute in the exported data. More... | |
| void | Register (TypeExporterListener &tel) |
| Registers a new listener. More... | |
| void | SetRowWriter (RowWriter &rw) |
| Sets the output data destination. More... | |
| void | SetGraph (sparksee::gdb::Graph &graph) |
| Sets the graph that will be exported. More... | |
| void | SetType (sparksee::gdb::type_t type) |
| Sets the type to be exported. More... | |
| void | SetAttributes (sparksee::gdb::AttributeList &attrs) |
| Sets the list of Attributes. More... | |
| void | SetFrequency (sparksee::gdb::int32_t freq) |
| Sets the frequency of listener notification. More... | |
| void | SetHeader (sparksee::gdb::bool_t header) |
| Sets the presence of a header row. More... | |
Protected Member Functions | |
| sparksee::gdb::bool_t | CanRun () |
| Checks that all the required settings are ready to run. More... | |
| void | NotifyListeners (const TypeExporterEvent &ev) |
| Notifies progress to all registered listeners. More... | |
| void | RunProcess () throw (sparksee::gdb::IOException, sparksee::gdb::Error) |
| Runs export process. More... | |
EdgeTypeExporter class.
Specific TypeExporter implementation for edge types.
Check out the 'Data export' section in the SPARKSEE User Manual for more details on this.
|
inline |
Creates a new instance.
| rowWriter | [in] Output RowWriter. |
| graph | [in] Graph. |
| type | [in] Type identifier. |
| attrs | [in] Attribute identifiers to be exported. |
| hPos | [in] The position (index column) for the head value. |
| tPos | [in] The position (index column) for the tail value. |
| hAttr | [in] The attribute identifier to get the value to be dumped for the head. |
| tAttr | [in] The attribute identifier to get the value to be dumped for the tail. |
References TypeExporter::SetHeadAttribute(), TypeExporter::SetHeadPosition(), TypeExporter::SetTailAttribute(), and TypeExporter::SetTailPosition().
|
protectedinherited |
Checks that all the required settings are ready to run.
|
protectedinherited |
Notifies progress to all registered listeners.
| ev | [in] Progress event to be notified. |
|
inherited |
Registers a new listener.
| tel | [in] TypeExporterListener to be registered. |
|
protectedinherited | |||||||||||||||||
Runs export process.
| IOException | If bad things happen writting to the RowWriter. |
|
inherited |
Sets the list of Attributes.
| attrs | [in] Attribute identifiers to be exported |
|
inherited |
Sets the frequency of listener notification.
| freq | [in] Frequency in number of rows managed to notify progress to all listeners |
|
inherited |
Sets the graph that will be exported.
| graph | [in] Graph. |
|
inline |
Sets the attribute that will be used to get the value to be dumped for the head of the edge.
| attr | [in] Head Attribute |
References TypeExporter::SetHeadAttribute().
|
inherited |
Sets the presence of a header row.
| header | [in] If TRUE, a header row is dumped with the name of the attributes. |
|
inline |
Sets the position (index column) of the head attribute in the exported data.
| pos | [in] Head position |
References TypeExporter::SetHeadPosition().
|
inherited |
Sets the output data destination.
| rw | [in] Input RowWriter. |
|
inline |
Sets the attribute that will be used to get the value to be dumped for the tail of the edge.
| attr | [in] Tail Attribute |
References TypeExporter::SetTailAttribute().
|
inline |
Sets the position (index column) of the tail attribute in the exported data.
| pos | [in] Tail position |
References END_SPARKSEE_IO_NAMESPACE, and TypeExporter::SetTailPosition().
|
inherited |
Sets the type to be exported.
| type | [in] Type identifier. |