EdgeTypeLoader class.
More...
EdgeTypeLoader class.
Specific TypeLoader implementation for edge types.
Check out the 'Data import' section in the SPARKSEE User Manual for more details on this.
- Author
- Sparsity Technologies http://www.sparsity-technologies.com
Registers a new listener.
- Parameters
-
tel | TypeLoaderListener to be registered. |
See the TypeLoader class Run method.
- Exceptions
-
System.ApplicationException | null |
System.IO.IOException | null |
Implements STSTypeLoader.
- (void) runNPhases: |
|
(int) |
partitions |
|
See the TypeLoader class RunNPhases method.
- Parameters
-
- Exceptions
-
System.ApplicationException | null |
System.IO.IOException | null |
Implements STSTypeLoader.
See the TypeLoader class RunTwoPhases method.
- Exceptions
-
System.ApplicationException | null |
System.IO.IOException | null |
Implements STSTypeLoader.
Sets the list of attribute positions.
- Parameters
-
attrsPos | [in] Attribute positions (column index >=0). |
Sets the list of Attributes.
- Parameters
-
attrs | [in] Attribute identifiers to be loaded |
- (void) setFrequency: |
|
(int) |
freq |
|
Sets the frequency of listener notification.
- Parameters
-
freq | [in] Frequency in number of rows managed to notify progress to all listeners |
Sets the graph where the data will be loaded.
- Parameters
-
- (void) setHeadAttribute: |
|
(int) |
attr |
|
Sets the attribute that will be used to find the head of the edge.
This method is protected because only the Edge loaders should have it.
- Parameters
-
- (void) setHeadMEP: |
|
(enum STSMissingEndpoint) |
mep |
|
Sets the flag to create missing head nodes when loading nodes or edges.
flagTrue if the nodes need to be created. False otherwise
- Parameters
-
- (void) setHeadPosition: |
|
(int) |
pos |
|
Sets the position of the head attribute in the source data.
This method is protected because only the Edge loaders should have it.
- Parameters
-
- (void) setLocale: |
|
(NSString *) |
localeStr |
|
Sets the locale that will be used to read the data.
It should match the locale used in the rowreader.
- Parameters
-
localeStr | [in] The locale string for the read data. See CSVReader. |
- (void) setLogError: |
|
(NSString *) |
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.
- Parameters
-
path | [in] The path to the error log file. |
- Exceptions
-
System.IO.IOException | If bad things happen opening the file. |
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.
Sets the input data source.
- Parameters
-
- (void) setTailAttribute: |
|
(int) |
attr |
|
Sets the attribute that will be used to find the tail of the edge.
This method is protected because only the Edge loaders should have it.
- Parameters
-
- (void) setTailMEP: |
|
(enum STSMissingEndpoint) |
mep |
|
Sets the flag to create missing tail nodes when loading nodes or edges.
flagTrue if the nodes need to be created. False otherwise
- Parameters
-
- (void) setTailPosition: |
|
(int) |
pos |
|
Sets the position of the tail attribute in the source data.
This method is protected because only the Edge loaders should have it.
- Parameters
-
- (void) setTimestampFormat: |
|
(NSString *) |
timestampFormat |
|
Sets a specific timestamp format.
- Parameters
-
timestampFormat | [in] A string with the timestamp format definition. |
- (void) setType: |
|
(int) |
type |
|
Sets the type to be loaded.
- Parameters
-
type | [in] Type identifier. |
The documentation for this class was generated from the following file: