|
SparkseePython3 6.1.0
|
NodeTypeLoader class. More...


Public Member Functions | |
| run (self) | |
| See the TypeLoader class Run method. | |
| set_log_error (self, path) | |
| Sets a log error file. | |
| set_type (self, type) | |
| Sets the type to be loaded. | |
| set_locale (self, locale_str) | |
| Sets the locale that will be used to read the data. | |
| set_timestamp_format (self, timestamp_format) | |
| Sets a specific timestamp format. | |
| set_attributes (self, attrs) | |
| Sets the list of Attributes. | |
| __init__ (self) | |
| Creates a new instance. | |
| register (self, tel) | |
| Registers a new listener. | |
| set_frequency (self, freq) | |
| Sets the frequency of listener notification. | |
| __init__ (self, row_reader, graph, type, attrs, attrs_pos) | |
| Creates a new instance. | |
| run_two_phases (self) | |
| See the TypeLoader class RunTwoPhases method. | |
| set_row_reader (self, rr) | |
| Sets the input data source. | |
| set_attribute_positions (self, attrs_pos) | |
| Sets the list of attribute positions. | |
| set_graph (self, graph) | |
| Sets the graph where the data will be loaded. | |
| run_n_phases (self, partitions) | |
| See the TypeLoader class RunNPhases method. | |
| set_log_off (self) | |
| Truns off all the error reporting. | |
NodeTypeLoader class.
Specific TypeLoader implementation for node types.
Check out the 'Data import' section in the SPARKSEE User Manual for more details on this.
| sparksee.NodeTypeLoader.__init__ | ( | self, | |
| row_reader, | |||
| graph, | |||
| type, | |||
| attrs, | |||
| attrs_pos ) |
| sparksee.NodeTypeLoader.register | ( | self, | |
| tel ) |
Registers a new listener.
| tel | TypeLoaderListener to be registered. |
Reimplemented from sparksee.TypeLoader.
| sparksee.NodeTypeLoader.run | ( | self | ) |
See the TypeLoader class Run method.
ErrorFor other issues
| RuntimeError | null |
| IOError | If bad things happen using to the RowReader. |
Reimplemented from sparksee.TypeLoader.
| sparksee.NodeTypeLoader.run_n_phases | ( | self, | |
| partitions ) |
See the TypeLoader class RunNPhases method.
ErrorFor other issues
| partitions | null |
| RuntimeError | null |
| IOError | If bad things happen using to the RowReader. |
Reimplemented from sparksee.TypeLoader.
| sparksee.NodeTypeLoader.run_two_phases | ( | self | ) |
See the TypeLoader class RunTwoPhases method.
ErrorFor other issues
| RuntimeError | null |
| IOError | If bad things happen using to the RowReader. |
Reimplemented from sparksee.TypeLoader.
| sparksee.NodeTypeLoader.set_attribute_positions | ( | self, | |
| attrs_pos ) |
Sets the list of attribute positions.
| attrs_pos | [in] Attribute positions (column index >=0). |
Reimplemented from sparksee.TypeLoader.
| sparksee.NodeTypeLoader.set_attributes | ( | self, | |
| attrs ) |
Sets the list of Attributes.
| attrs | [in] Attribute identifiers to be loaded |
Reimplemented from sparksee.TypeLoader.
| sparksee.NodeTypeLoader.set_frequency | ( | self, | |
| freq ) |
Sets the frequency of listener notification.
| freq | [in] Frequency in number of rows managed to notify progress to all listeners |
Reimplemented from sparksee.TypeLoader.
| sparksee.NodeTypeLoader.set_graph | ( | self, | |
| graph ) |
Sets the graph where the data will be loaded.
| graph | [in] Graph. |
Reimplemented from sparksee.TypeLoader.
| sparksee.NodeTypeLoader.set_locale | ( | self, | |
| locale_str ) |
Sets the locale that will be used to read the data.
It should match the locale used in the rowreader.
| locale_str | [in] The locale string for the read data. See CSVReader. |
Reimplemented from sparksee.TypeLoader.
| sparksee.NodeTypeLoader.set_log_error | ( | self, | |
| path ) |
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. |
| IOError | If bad things happen opening the file. |
Reimplemented from sparksee.TypeLoader.
| sparksee.NodeTypeLoader.set_log_off | ( | self | ) |
Truns off all the error reporting.
The log file will not be created and no exceptions for invalid data will be thrown. If you just want to turn off the logs, but abort at the first error what you should do is not call this method and not set a logError file.
Reimplemented from sparksee.TypeLoader.
| sparksee.NodeTypeLoader.set_row_reader | ( | self, | |
| rr ) |
Sets the input data source.
| rr | [in] Input RowReader. |
Reimplemented from sparksee.TypeLoader.
| sparksee.NodeTypeLoader.set_timestamp_format | ( | self, | |
| timestamp_format ) |
Sets a specific timestamp format.
| timestamp_format | [in] A string with the timestamp format definition. |
Reimplemented from sparksee.TypeLoader.
| sparksee.NodeTypeLoader.set_type | ( | self, | |
| type ) |
Sets the type to be loaded.
| type | [in] Type identifier. |
Reimplemented from sparksee.TypeLoader.