src/lib/services/sz-bulk-data.service.ts
methods used to manipulate data is bulk, ie import, analyze, map, and load data from a parseable format.
Properties |
|
Methods |
|
Accessors |
constructor(adminService: SzAdminService, datasourcesService: SzDataSourcesService, bulkDataService: BulkDataService)
|
||||||||||||
Parameters :
|
Public analyze | ||||||
analyze(file: File)
|
||||||
analze a file and prep for mapping
Parameters :
Returns :
Observable<SzBulkDataAnalysisResponse>
|
Public changeDataSourceName |
changeDataSourceName(fromDataSource: string, toDataSource: string)
|
change the destination datasource of a file currently being mapped to datasource.
Returns :
void
|
Public clear |
clear()
|
clear any file and associated data. removes file focus context
Returns :
void
|
Public createDataSources | ||||||
createDataSources(dataSources: string[])
|
||||||
create a new datasource
Parameters :
Returns :
Observable<string[]>
|
destroy |
destroy()
|
unsubscribe event streams
Returns :
void
|
Public load | ||||||||||||
load(file?: File, dataSourceMap?: literal type, analysis?: SzBulkDataAnalysis)
|
||||||||||||
load a files contents in to a datasource.
Parameters :
Returns :
Observable | undefined
|
_dataSources |
Type : string[]
|
current datasources |
Public analyzingFile |
Default value : new Subject<boolean>()
|
when a file is being analyzed |
Public currentAnalysis |
Type : SzBulkDataAnalysis
|
current result of last analysis operation |
Public currentError |
Type : Error
|
Public currentFile |
Type : File
|
current file to analyze or load |
Public currentLoadResult |
Type : SzBulkLoadResult
|
current result of last file load attempt |
Public dataSourceMap |
Type : literal type
|
map of current datasource name to new datasource names |
Public isAnalyzingFile |
Default value : false
|
when a file is being analyzed |
Public isLoadingFile |
Default value : false
|
when a file is being loaded in to the engine on thread |
Public loadingFile |
Default value : new Subject<boolean>()
|
when a file is being analyzed in the current thread |
Public onAnalysisChange |
Default value : new BehaviorSubject<SzBulkDataAnalysis>(undefined)
|
when the analysis result changes this behavior subject is broadcast |
Public onCurrentFileChange |
Default value : new Subject<File>()
|
when the file input changes this subject is broadcast |
Public onDataSourceMapChange |
Default value : new Subject<{ [key: string]: string }>()
|
when a datasrc destination changes this subject is broadcast |
Public onDataSourcesChange |
Default value : new BehaviorSubject<string[]>(undefined)
|
when the datasources change this behavior subject is broadcast |
Public onError |
Default value : new Subject<Error>()
|
when the file input changes this subject is broadcast |
Public onLoadResult |
Default value : new BehaviorSubject<SzBulkLoadResult>(undefined)
|
when the result of a load operation changes this behavior subject is broadcast |
Public unsubscribe$ |
Default value : new Subject<void>()
|
subscription to notify subscribers to unbind |
file | ||||||
getfile()
|
||||||
the file being analyzed, mapped, or loaded
Returns :
File
|
||||||
setfile(value: File)
|
||||||
the file to analyze, map, or load
Parameters :
Returns :
void
|