File

src/lib/services/sz-bulk-data.service.ts

Description

methods used to manipulate data is bulk, ie import, analyze, map, and load data from a parseable format.

Index

Properties
Methods
Accessors

Constructor

constructor(adminService: SzAdminService, datasourcesService: SzDataSourcesService, bulkDataService: BulkDataService)
Parameters :
Name Type Optional
adminService SzAdminService No
datasourcesService SzDataSourcesService No
bulkDataService BulkDataService No

Methods

Public analyze
analyze(file: File)

analze a file and prep for mapping

Parameters :
Name Type Optional
file File No
Public changeDataSourceName
changeDataSourceName(fromDataSource: string, toDataSource: string)

change the destination datasource of a file currently being mapped to datasource.

Parameters :
Name Type Optional
fromDataSource string No
toDataSource string No
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 :
Name Type Optional
dataSources string[] No
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 :
Name Type Optional
file File Yes
dataSourceMap literal type Yes
analysis SzBulkDataAnalysis Yes
Returns : Observable | undefined

Properties

_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

Accessors

file
getfile()

the file being analyzed, mapped, or loaded

Returns : File
setfile(value: File)

the file to analyze, map, or load

Parameters :
Name Type Optional
value File No
Returns : void

results matching ""

    No results matching ""