1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
export default class Dataset {
_id: string = '';
constructor(
public name: string = 'Novi izvor podataka',
public description: string = '',
public header: string[] = [],
public fileId?: number,
public extension: string = '.csv',
public isPublic: boolean = false,
public accessibleByLink: boolean = false,
public dateCreated: Date = new Date(),
public lastUpdated: Date = new Date(),
public username: string = '',
public delimiter: string = '',
public hasHeader: boolean = true,
public columnInfo: ColumnInfo[] = [],
public nullRows: number = 0,
public nullCols: number = 0,
public preview: string[][] = [[]]
) { }
}
export class ColumnInfo {
constructor(
public columnName: string = '',
public isNumber: boolean = false,
public numNulls: number = 0,
public uniqueValues?: string[],
public median?: number,
public mean?: number,
public min?: number,
public max?: number
) { }
}
|