JsonMapDataManager
geovisto-map / JsonMapDataManager
Class: JsonMapDataManager
A data wrapper which provides a basic flattening of JSON data structure.
Author
Jiri Hynek
Extends
Implements
Constructors
new JsonMapDataManager()
new JsonMapDataManager(
data
):JsonMapDataManager
It creates JSON data manager
Parameters
• data: unknown
Returns
Overrides
AbstractMapDataManager
.constructor
Source
model/internal/data/json/JsonMapDataManager.ts:34
Properties
dataDomains?
private
optional
dataDomains:IMapDataDomain
[]
The list is initialized when required.
Source
model/internal/data/json/JsonMapDataManager.ts:27
dataRecords?
private
optional
dataRecords:IMapData
The list is initialized when required.
Source
model/internal/data/json/JsonMapDataManager.ts:22
Methods
createDataDomains()
protected
createDataDomains():IMapDataDomain
[]
Help function which analyzes data and creates its metedata description.
Returns
Source
model/internal/data/json/JsonMapDataManager.ts:140
createDataRecords()
protected
createDataRecords(data
):IMapData
Help function which converts data to the flat structure.
Parameters
• data: unknown
Returns
Source
model/internal/data/json/JsonMapDataManager.ts:202
getDataRecordValues()
getDataRecordValues(
dataDomain
,dataRecord
):unknown
[]
It returns values stored of the selected data domain stored in the given data record.
Parameters
• dataDomain: IMapDataDomain
• dataRecord: IMapDataRecord
Returns
unknown
[]
Implementation of
IMapDataManager
.getDataRecordValues
Overrides
AbstractMapDataManager
.getDataRecordValues
Source
model/internal/data/json/JsonMapDataManager.ts:127
getDataRecords()
getDataRecords():
IMapData
It returns preprocessed flattened data.
Returns
Implementation of
IMapDataManager
.getDataRecords
Overrides
AbstractMapDataManager
.getDataRecords
Source
model/internal/data/json/JsonMapDataManager.ts:48
getDataRecordsValues()
getDataRecordsValues(
dataDomain
,dataRecords
):unknown
[]
It returns list of all values of the selected data domain for the given subset of data.
Parameters
• dataDomain: IMapDataDomain
• dataRecords: IMapData
Returns
unknown
[]
Implementation of
IMapDataManager
.getDataRecordsValues
Overrides
AbstractMapDataManager
.getDataRecordsValues
Source
model/internal/data/json/JsonMapDataManager.ts:102
getDomain()
getDomain(
name
):IMapDataDomain
It returns the data domain which corresponds to the given string.
If data domain does not exists it creates a new one (to avoid undefined return value)
Parameters
• name: string
Returns
Implementation of
Overrides
AbstractMapDataManager
.getDomain
Source
model/internal/data/json/JsonMapDataManager.ts:81
getDomainNames()
getDomainNames():
string
[]
Help function which returns the list of data domain string name.
Returns
string
[]
Implementation of
IMapDataManager
.getDomainNames
Inherited from
AbstractMapDataManager
.getDomainNames
Source
model/internal/data/abstract/AbstractMapDataManager.ts:51
getDomains()
getDomains():
IMapDataDomain
[]
It returns list of data domains (IMapDataDomain) representing data dimensions e. g.: [ [ 'value' ], [ 'source', 'ip' ], [ 'source', 'country' ], [ 'target', 'ip' ], [ 'target', 'country' ] ]
Returns
Implementation of
Overrides
AbstractMapDataManager
.getDomains
Source
model/internal/data/json/JsonMapDataManager.ts:66
getOriginalData()
getOriginalData():
unknown
It returns the original input data.
Returns
unknown
Implementation of
IMapDataManager
.getOriginalData
Overrides
AbstractMapDataManager
.getOriginalData
Source
model/internal/data/json/JsonMapDataManager.ts:41
getValues()
getValues(
dataDomain
):unknown
[]
It returns list of all values of the selected data domain.
Parameters
• dataDomain: IMapDataDomain
Returns
unknown
[]
Implementation of
Overrides
AbstractMapDataManager
.getValues
Source
model/internal/data/json/JsonMapDataManager.ts:91
processDataDomainDescription()
protected
processDataDomainDescription(result
,actRecord
,domainDescription
,i
):void
Static help function represents a step of recursive data processing searching data items.
Parameters
• result: unknown
[]
• actRecord: IMapDataRecordItem
• domainDescription: string
[]
• i: number
Returns
void