|
Sparksee 6.1.0
|
Base TypeLoader class. More...
#include <BulkLoader.h>


Public Member Functions | |
| void | SetLogError (const std::wstring &path) throw (sparksee::gdb::IOException) |
| Sets a log error file. | |
| virtual | ~BulkLoader () |
| Destructor. | |
| virtual void | Run () throw (sparksee::gdb::IOException, sparksee::gdb::Error) |
| Run the loader. | |
| void | SetFilename (const std::wstring &filename) |
| Sets the input data source. | |
| void | SetLocale (const std::wstring &localeStr) |
| Sets the locale that will be used to read the data. | |
| void | SetType (sparksee::gdb::type_t type) |
| Sets the type to be loaded. | |
| void | SetAttributes (sparksee::gdb::AttributeList &attrs) |
| Sets the list of Attributes. | |
| void | SetAttributePositions (sparksee::gdb::Int32List &attrsPos) |
| Sets the list of attribute positions. | |
| void | SetTimestampFormat (const std::wstring ×tampFormat) |
| Sets a specific timestamp format. | |
Base TypeLoader class.
Base class to load a node or edge type from a graph using a RowReader.
TypeLoaderListener can be registered to receive information about the progress of the load process by means of TypeLoaderEvent. The default frequency of notification to listeners is 100000.
Check out the 'Data import' section in the SPARKSEE User Manual for more details on this.
|
virtual | ||||||||||||||||
Run the loader.
| IOException | For errors accessing the file |
| Error | For other issues |
| void BulkLoader::SetAttributePositions | ( | sparksee::gdb::Int32List & | attrsPos | ) |
Sets the list of attribute positions.
| attrsPos | [in] Attribute positions (column index >=0). |
References SetAttributePositions().
Referenced by SetAttributePositions().
| void BulkLoader::SetAttributes | ( | sparksee::gdb::AttributeList & | attrs | ) |
Sets the list of Attributes.
| attrs | [in] Attribute identifiers to be loaded |
References SetAttributes().
Referenced by SetAttributes().
| void BulkLoader::SetFilename | ( | const std::wstring & | filename | ) |
Sets the input data source.
| rr | [in] Input RowReader. |
References SetFilename().
Referenced by SetFilename().
| void BulkLoader::SetLocale | ( | const std::wstring & | localeStr | ) |
Sets the locale that will be used to read the data.
It should match the locale used in the rowreader.
| localeStr | [in] The locale string for the read data. See CSVReader. |
References SetLocale().
Referenced by SetLocale().
| void BulkLoader::SetLogError | ( | const std::wstring & | path | ) | ||
| throw | ( | sparksee::gdb::IOException ) | ||||
Sets a log error file.
By default errors are thrown as a exception and the load process ends. If a log file is set, errors are logged there and the load process does not stop.
| path | [in] The path to the error log file. |
| IOException | If bad things happen opening the file. |
| void BulkLoader::SetTimestampFormat | ( | const std::wstring & | timestampFormat | ) |
Sets a specific timestamp format.
| timestampFormat | [in] A string with the timestamp format definition. |
References END_SPARKSEE_IO_NAMESPACE, and SetTimestampFormat().
Referenced by SetTimestampFormat().
| void BulkLoader::SetType | ( | sparksee::gdb::type_t | type | ) |