@girs/parquet-1.0 1.0.0-4.0.0-beta.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +86 -0
- package/index.d.ts +15 -0
- package/index.js +5 -0
- package/package.json +62 -0
- package/parquet-1.0-ambient.d.ts +9 -0
- package/parquet-1.0-ambient.js +2 -0
- package/parquet-1.0-import.d.ts +9 -0
- package/parquet-1.0-import.js +3 -0
- package/parquet-1.0.d.ts +445 -0
- package/parquet-1.0.js +5 -0
- package/tsconfig.json +23 -0
- package/typedoc.json +7 -0
package/README.md
ADDED
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
|
|
2
|
+
# Parquet-1.0
|
|
3
|
+
|
|
4
|
+

|
|
5
|
+

|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
GJS TypeScript type definitions for Parquet-1.0, generated from library version 1.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.0-beta.16.
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
## Install
|
|
12
|
+
|
|
13
|
+
To use this type definitions, install them with NPM:
|
|
14
|
+
```bash
|
|
15
|
+
npm install @girs/parquet-1.0
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Usage
|
|
19
|
+
|
|
20
|
+
You can import this package into your project like this:
|
|
21
|
+
```ts
|
|
22
|
+
import Parquet from '@girs/parquet-1.0';
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
### Ambient Modules
|
|
26
|
+
|
|
27
|
+
You can also use [ambient modules](https://github.com/gjsify/ts-for-gir/tree/main/packages/cli#ambient-modules) to import this module like you would do this in JavaScript.
|
|
28
|
+
For this you need to include `@girs/parquet-1.0` or `@girs/parquet-1.0/ambient` in your `tsconfig` or entry point Typescript file:
|
|
29
|
+
|
|
30
|
+
`index.ts`:
|
|
31
|
+
```ts
|
|
32
|
+
import '@girs/parquet-1.0'
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
`tsconfig.json`:
|
|
36
|
+
```json
|
|
37
|
+
{
|
|
38
|
+
"compilerOptions": {
|
|
39
|
+
...
|
|
40
|
+
},
|
|
41
|
+
"include": ["@girs/parquet-1.0"],
|
|
42
|
+
...
|
|
43
|
+
}
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
Now you can import the ambient module with TypeScript support:
|
|
47
|
+
|
|
48
|
+
```ts
|
|
49
|
+
import Parquet from 'gi://Parquet?version=1.0';
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
### Global import
|
|
53
|
+
|
|
54
|
+
You can also import the module with Typescript support using the global `imports.gi` object of GJS.
|
|
55
|
+
For this you need to include `@girs/parquet-1.0` or `@girs/parquet-1.0/import` in your `tsconfig` or entry point Typescript file:
|
|
56
|
+
|
|
57
|
+
`index.ts`:
|
|
58
|
+
```ts
|
|
59
|
+
import '@girs/parquet-1.0'
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
`tsconfig.json`:
|
|
63
|
+
```json
|
|
64
|
+
{
|
|
65
|
+
"compilerOptions": {
|
|
66
|
+
...
|
|
67
|
+
},
|
|
68
|
+
"include": ["@girs/parquet-1.0"],
|
|
69
|
+
...
|
|
70
|
+
}
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
Now you have also type support for this, too:
|
|
74
|
+
|
|
75
|
+
```ts
|
|
76
|
+
const Parquet = imports.gi.Parquet;
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
### Bundle
|
|
80
|
+
|
|
81
|
+
Depending on your project configuration, it is recommended to use a bundler like [esbuild](https://esbuild.github.io/). You can find examples using different bundlers [here](https://github.com/gjsify/ts-for-gir/tree/main/examples).
|
|
82
|
+
|
|
83
|
+
## Other packages
|
|
84
|
+
|
|
85
|
+
All existing pre-generated packages can be found on [gjsify/types](https://github.com/gjsify/types).
|
|
86
|
+
|
package/index.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Type Definitions for Gjs (https://gjs.guide/)
|
|
3
|
+
*
|
|
4
|
+
* These type definitions are automatically generated, do not edit them by hand.
|
|
5
|
+
* If you found a bug fix it in `ts-for-gir` or create a bug report on https://github.com/gjsify/ts-for-gir
|
|
6
|
+
*
|
|
7
|
+
* This template is used to generate the index.d.ts file of each GIR module like Gtk-4.0, GObject-2.0, ...
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
import './parquet-1.0-ambient.d.ts';
|
|
11
|
+
|
|
12
|
+
import './parquet-1.0-import.d.ts';
|
|
13
|
+
|
|
14
|
+
import Parquet from './parquet-1.0.js';
|
|
15
|
+
export default Parquet;
|
package/index.js
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@girs/parquet-1.0",
|
|
3
|
+
"version": "1.0.0-4.0.0-beta.16",
|
|
4
|
+
"description": "GJS TypeScript type definitions for Parquet-1.0, generated from library version 1.0.0",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"module": "parquet-1.0.js",
|
|
7
|
+
"main": "parquet-1.0.js",
|
|
8
|
+
"exports": {
|
|
9
|
+
"./ambient": {
|
|
10
|
+
"types": "./parquet-1.0-ambient.d.ts",
|
|
11
|
+
"import": "./parquet-1.0-ambient.js",
|
|
12
|
+
"default": "./parquet-1.0-ambient.js"
|
|
13
|
+
},
|
|
14
|
+
"./import": {
|
|
15
|
+
"types": "./parquet-1.0-import.d.ts",
|
|
16
|
+
"import": "./parquet-1.0-import.js",
|
|
17
|
+
"default": "./parquet-1.0-import.js"
|
|
18
|
+
},
|
|
19
|
+
"./parquet-1.0": {
|
|
20
|
+
"types": "./parquet-1.0.d.ts",
|
|
21
|
+
"import": "./parquet-1.0.js",
|
|
22
|
+
"default": "./parquet-1.0.js"
|
|
23
|
+
},
|
|
24
|
+
".": {
|
|
25
|
+
"types": "./index.d.ts",
|
|
26
|
+
"import": "./index.js",
|
|
27
|
+
"default": "./index.js"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"scripts": {
|
|
31
|
+
"test": "tsc --project tsconfig.json"
|
|
32
|
+
},
|
|
33
|
+
"dependencies": {
|
|
34
|
+
"@girs/arrow-1.0": "^16.1.0-4.0.0-beta.16",
|
|
35
|
+
"@girs/gio-2.0": "^2.82.0-4.0.0-beta.16",
|
|
36
|
+
"@girs/gjs": "^4.0.0-beta.16",
|
|
37
|
+
"@girs/glib-2.0": "^2.82.0-4.0.0-beta.16",
|
|
38
|
+
"@girs/gmodule-2.0": "^2.0.0-4.0.0-beta.16",
|
|
39
|
+
"@girs/gobject-2.0": "^2.82.0-4.0.0-beta.16"
|
|
40
|
+
},
|
|
41
|
+
"devDependencies": {
|
|
42
|
+
"typescript": "*"
|
|
43
|
+
},
|
|
44
|
+
"keywords": [
|
|
45
|
+
"Gir",
|
|
46
|
+
"TypeScript",
|
|
47
|
+
"types",
|
|
48
|
+
"GObject-Introspection",
|
|
49
|
+
"GJS",
|
|
50
|
+
"Parquet-1.0"
|
|
51
|
+
],
|
|
52
|
+
"author": "ts-for-gir",
|
|
53
|
+
"license": "MIT",
|
|
54
|
+
"repository": {
|
|
55
|
+
"type": "git",
|
|
56
|
+
"url": "git+https://github.com/gjsify/ts-for-gir.git"
|
|
57
|
+
},
|
|
58
|
+
"bugs": {
|
|
59
|
+
"url": "https://github.com/gjsify/ts-for-gir/issues"
|
|
60
|
+
},
|
|
61
|
+
"homepage": "https://github.com/gjsify/types/tree/main/parquet-1.0#readme"
|
|
62
|
+
}
|
package/parquet-1.0.d.ts
ADDED
|
@@ -0,0 +1,445 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Type Definitions for Gjs (https://gjs.guide/)
|
|
3
|
+
*
|
|
4
|
+
* These type definitions are automatically generated, do not edit them by hand.
|
|
5
|
+
* If you found a bug fix it in `ts-for-gir` or create a bug report on https://github.com/gjsify/ts-for-gir
|
|
6
|
+
*
|
|
7
|
+
* The based EJS template file is used for the generated .d.ts file of each GIR module like Gtk-4.0, GObject-2.0, ...
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
// Module dependencies
|
|
11
|
+
import type Arrow from '@girs/arrow-1.0';
|
|
12
|
+
import type Gio from '@girs/gio-2.0';
|
|
13
|
+
import type GObject from '@girs/gobject-2.0';
|
|
14
|
+
import type GLib from '@girs/glib-2.0';
|
|
15
|
+
import type GModule from '@girs/gmodule-2.0';
|
|
16
|
+
|
|
17
|
+
export namespace Parquet {
|
|
18
|
+
/**
|
|
19
|
+
* Parquet-1.0
|
|
20
|
+
*/
|
|
21
|
+
|
|
22
|
+
module ArrowFileReader {
|
|
23
|
+
// Constructor properties interface
|
|
24
|
+
|
|
25
|
+
interface ConstructorProps extends GObject.Object.ConstructorProps {
|
|
26
|
+
arrow_file_reader: any;
|
|
27
|
+
arrowFileReader: any;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
class ArrowFileReader extends GObject.Object {
|
|
32
|
+
static $gtype: GObject.GType<ArrowFileReader>;
|
|
33
|
+
|
|
34
|
+
// Properties
|
|
35
|
+
|
|
36
|
+
set arrow_file_reader(val: any);
|
|
37
|
+
set arrowFileReader(val: any);
|
|
38
|
+
|
|
39
|
+
// Constructors
|
|
40
|
+
|
|
41
|
+
constructor(properties?: Partial<ArrowFileReader.ConstructorProps>, ...args: any[]);
|
|
42
|
+
|
|
43
|
+
_init(...args: any[]): void;
|
|
44
|
+
|
|
45
|
+
static new_arrow(source: Arrow.SeekableInputStream): ArrowFileReader;
|
|
46
|
+
|
|
47
|
+
static new_path(path: string): ArrowFileReader;
|
|
48
|
+
|
|
49
|
+
// Methods
|
|
50
|
+
|
|
51
|
+
get_metadata(): FileMetadata;
|
|
52
|
+
get_n_row_groups(): number;
|
|
53
|
+
get_n_rows(): number;
|
|
54
|
+
get_schema(): Arrow.Schema | null;
|
|
55
|
+
read_column_data(i: number): Arrow.ChunkedArray | null;
|
|
56
|
+
read_row_group(row_group_index: number, column_indices?: number[] | null): Arrow.Table | null;
|
|
57
|
+
read_table(): Arrow.Table | null;
|
|
58
|
+
set_use_threads(use_threads: boolean): void;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
module ArrowFileWriter {
|
|
62
|
+
// Constructor properties interface
|
|
63
|
+
|
|
64
|
+
interface ConstructorProps extends GObject.Object.ConstructorProps {
|
|
65
|
+
arrow_file_writer: any;
|
|
66
|
+
arrowFileWriter: any;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
class ArrowFileWriter extends GObject.Object {
|
|
71
|
+
static $gtype: GObject.GType<ArrowFileWriter>;
|
|
72
|
+
|
|
73
|
+
// Properties
|
|
74
|
+
|
|
75
|
+
set arrow_file_writer(val: any);
|
|
76
|
+
set arrowFileWriter(val: any);
|
|
77
|
+
|
|
78
|
+
// Constructors
|
|
79
|
+
|
|
80
|
+
constructor(properties?: Partial<ArrowFileWriter.ConstructorProps>, ...args: any[]);
|
|
81
|
+
|
|
82
|
+
_init(...args: any[]): void;
|
|
83
|
+
|
|
84
|
+
static new_arrow(
|
|
85
|
+
schema: Arrow.Schema,
|
|
86
|
+
sink: Arrow.OutputStream,
|
|
87
|
+
writer_properties?: WriterProperties | null,
|
|
88
|
+
): ArrowFileWriter;
|
|
89
|
+
|
|
90
|
+
static new_path(
|
|
91
|
+
schema: Arrow.Schema,
|
|
92
|
+
path: string,
|
|
93
|
+
writer_properties?: WriterProperties | null,
|
|
94
|
+
): ArrowFileWriter;
|
|
95
|
+
|
|
96
|
+
// Methods
|
|
97
|
+
|
|
98
|
+
close(): boolean;
|
|
99
|
+
write_table(table: Arrow.Table, chunk_size: number): boolean;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
module BooleanStatistics {
|
|
103
|
+
// Constructor properties interface
|
|
104
|
+
|
|
105
|
+
interface ConstructorProps extends Statistics.ConstructorProps {}
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
class BooleanStatistics extends Statistics {
|
|
109
|
+
static $gtype: GObject.GType<BooleanStatistics>;
|
|
110
|
+
|
|
111
|
+
// Constructors
|
|
112
|
+
|
|
113
|
+
constructor(properties?: Partial<BooleanStatistics.ConstructorProps>, ...args: any[]);
|
|
114
|
+
|
|
115
|
+
_init(...args: any[]): void;
|
|
116
|
+
|
|
117
|
+
// Methods
|
|
118
|
+
|
|
119
|
+
get_max(): boolean;
|
|
120
|
+
get_min(): boolean;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
module ByteArrayStatistics {
|
|
124
|
+
// Constructor properties interface
|
|
125
|
+
|
|
126
|
+
interface ConstructorProps extends Statistics.ConstructorProps {}
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
class ByteArrayStatistics extends Statistics {
|
|
130
|
+
static $gtype: GObject.GType<ByteArrayStatistics>;
|
|
131
|
+
|
|
132
|
+
// Constructors
|
|
133
|
+
|
|
134
|
+
constructor(properties?: Partial<ByteArrayStatistics.ConstructorProps>, ...args: any[]);
|
|
135
|
+
|
|
136
|
+
_init(...args: any[]): void;
|
|
137
|
+
|
|
138
|
+
// Methods
|
|
139
|
+
|
|
140
|
+
get_max(): GLib.Bytes;
|
|
141
|
+
get_min(): GLib.Bytes;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
module ColumnChunkMetadata {
|
|
145
|
+
// Constructor properties interface
|
|
146
|
+
|
|
147
|
+
interface ConstructorProps extends GObject.Object.ConstructorProps {
|
|
148
|
+
metadata: any;
|
|
149
|
+
owner: RowGroupMetadata;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
class ColumnChunkMetadata extends GObject.Object {
|
|
154
|
+
static $gtype: GObject.GType<ColumnChunkMetadata>;
|
|
155
|
+
|
|
156
|
+
// Properties
|
|
157
|
+
|
|
158
|
+
set metadata(val: any);
|
|
159
|
+
set owner(val: RowGroupMetadata);
|
|
160
|
+
|
|
161
|
+
// Constructors
|
|
162
|
+
|
|
163
|
+
constructor(properties?: Partial<ColumnChunkMetadata.ConstructorProps>, ...args: any[]);
|
|
164
|
+
|
|
165
|
+
_init(...args: any[]): void;
|
|
166
|
+
|
|
167
|
+
// Methods
|
|
168
|
+
|
|
169
|
+
can_decompress(): boolean;
|
|
170
|
+
equal(other_metadata: ColumnChunkMetadata): boolean;
|
|
171
|
+
get_file_offset(): number;
|
|
172
|
+
get_statistics(): Statistics | null;
|
|
173
|
+
get_total_compressed_size(): number;
|
|
174
|
+
get_total_size(): number;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
module DoubleStatistics {
|
|
178
|
+
// Constructor properties interface
|
|
179
|
+
|
|
180
|
+
interface ConstructorProps extends Statistics.ConstructorProps {}
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
class DoubleStatistics extends Statistics {
|
|
184
|
+
static $gtype: GObject.GType<DoubleStatistics>;
|
|
185
|
+
|
|
186
|
+
// Constructors
|
|
187
|
+
|
|
188
|
+
constructor(properties?: Partial<DoubleStatistics.ConstructorProps>, ...args: any[]);
|
|
189
|
+
|
|
190
|
+
_init(...args: any[]): void;
|
|
191
|
+
|
|
192
|
+
// Methods
|
|
193
|
+
|
|
194
|
+
get_max(): number;
|
|
195
|
+
get_min(): number;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
module FileMetadata {
|
|
199
|
+
// Constructor properties interface
|
|
200
|
+
|
|
201
|
+
interface ConstructorProps extends GObject.Object.ConstructorProps {
|
|
202
|
+
metadata: any;
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
class FileMetadata extends GObject.Object {
|
|
207
|
+
static $gtype: GObject.GType<FileMetadata>;
|
|
208
|
+
|
|
209
|
+
// Properties
|
|
210
|
+
|
|
211
|
+
set metadata(val: any);
|
|
212
|
+
|
|
213
|
+
// Constructors
|
|
214
|
+
|
|
215
|
+
constructor(properties?: Partial<FileMetadata.ConstructorProps>, ...args: any[]);
|
|
216
|
+
|
|
217
|
+
_init(...args: any[]): void;
|
|
218
|
+
|
|
219
|
+
// Methods
|
|
220
|
+
|
|
221
|
+
can_decompress(): boolean;
|
|
222
|
+
equal(other_metadata: FileMetadata): boolean;
|
|
223
|
+
get_created_by(): string;
|
|
224
|
+
get_n_columns(): number;
|
|
225
|
+
get_n_row_groups(): number;
|
|
226
|
+
get_n_rows(): number;
|
|
227
|
+
get_n_schema_elements(): number;
|
|
228
|
+
get_row_group(index: number): RowGroupMetadata | null;
|
|
229
|
+
get_size(): number;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
module FixedLengthByteArrayStatistics {
|
|
233
|
+
// Constructor properties interface
|
|
234
|
+
|
|
235
|
+
interface ConstructorProps extends Statistics.ConstructorProps {}
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
class FixedLengthByteArrayStatistics extends Statistics {
|
|
239
|
+
static $gtype: GObject.GType<FixedLengthByteArrayStatistics>;
|
|
240
|
+
|
|
241
|
+
// Constructors
|
|
242
|
+
|
|
243
|
+
constructor(properties?: Partial<FixedLengthByteArrayStatistics.ConstructorProps>, ...args: any[]);
|
|
244
|
+
|
|
245
|
+
_init(...args: any[]): void;
|
|
246
|
+
|
|
247
|
+
// Methods
|
|
248
|
+
|
|
249
|
+
get_max(): GLib.Bytes;
|
|
250
|
+
get_min(): GLib.Bytes;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
module FloatStatistics {
|
|
254
|
+
// Constructor properties interface
|
|
255
|
+
|
|
256
|
+
interface ConstructorProps extends Statistics.ConstructorProps {}
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
class FloatStatistics extends Statistics {
|
|
260
|
+
static $gtype: GObject.GType<FloatStatistics>;
|
|
261
|
+
|
|
262
|
+
// Constructors
|
|
263
|
+
|
|
264
|
+
constructor(properties?: Partial<FloatStatistics.ConstructorProps>, ...args: any[]);
|
|
265
|
+
|
|
266
|
+
_init(...args: any[]): void;
|
|
267
|
+
|
|
268
|
+
// Methods
|
|
269
|
+
|
|
270
|
+
get_max(): number;
|
|
271
|
+
get_min(): number;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
module Int32Statistics {
|
|
275
|
+
// Constructor properties interface
|
|
276
|
+
|
|
277
|
+
interface ConstructorProps extends Statistics.ConstructorProps {}
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
class Int32Statistics extends Statistics {
|
|
281
|
+
static $gtype: GObject.GType<Int32Statistics>;
|
|
282
|
+
|
|
283
|
+
// Constructors
|
|
284
|
+
|
|
285
|
+
constructor(properties?: Partial<Int32Statistics.ConstructorProps>, ...args: any[]);
|
|
286
|
+
|
|
287
|
+
_init(...args: any[]): void;
|
|
288
|
+
|
|
289
|
+
// Methods
|
|
290
|
+
|
|
291
|
+
get_max(): number;
|
|
292
|
+
get_min(): number;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
module Int64Statistics {
|
|
296
|
+
// Constructor properties interface
|
|
297
|
+
|
|
298
|
+
interface ConstructorProps extends Statistics.ConstructorProps {}
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
class Int64Statistics extends Statistics {
|
|
302
|
+
static $gtype: GObject.GType<Int64Statistics>;
|
|
303
|
+
|
|
304
|
+
// Constructors
|
|
305
|
+
|
|
306
|
+
constructor(properties?: Partial<Int64Statistics.ConstructorProps>, ...args: any[]);
|
|
307
|
+
|
|
308
|
+
_init(...args: any[]): void;
|
|
309
|
+
|
|
310
|
+
// Methods
|
|
311
|
+
|
|
312
|
+
get_max(): number;
|
|
313
|
+
get_min(): number;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
module RowGroupMetadata {
|
|
317
|
+
// Constructor properties interface
|
|
318
|
+
|
|
319
|
+
interface ConstructorProps extends GObject.Object.ConstructorProps {
|
|
320
|
+
metadata: any;
|
|
321
|
+
owner: FileMetadata;
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
class RowGroupMetadata extends GObject.Object {
|
|
326
|
+
static $gtype: GObject.GType<RowGroupMetadata>;
|
|
327
|
+
|
|
328
|
+
// Properties
|
|
329
|
+
|
|
330
|
+
set metadata(val: any);
|
|
331
|
+
set owner(val: FileMetadata);
|
|
332
|
+
|
|
333
|
+
// Constructors
|
|
334
|
+
|
|
335
|
+
constructor(properties?: Partial<RowGroupMetadata.ConstructorProps>, ...args: any[]);
|
|
336
|
+
|
|
337
|
+
_init(...args: any[]): void;
|
|
338
|
+
|
|
339
|
+
// Methods
|
|
340
|
+
|
|
341
|
+
can_decompress(): boolean;
|
|
342
|
+
equal(other_metadata: RowGroupMetadata): boolean;
|
|
343
|
+
get_column_chunk(index: number): ColumnChunkMetadata | null;
|
|
344
|
+
get_file_offset(): number;
|
|
345
|
+
get_n_columns(): number;
|
|
346
|
+
get_n_rows(): number;
|
|
347
|
+
get_total_compressed_size(): number;
|
|
348
|
+
get_total_size(): number;
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
module Statistics {
|
|
352
|
+
// Constructor properties interface
|
|
353
|
+
|
|
354
|
+
interface ConstructorProps extends GObject.Object.ConstructorProps {
|
|
355
|
+
statistics: any;
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
abstract class Statistics extends GObject.Object {
|
|
360
|
+
static $gtype: GObject.GType<Statistics>;
|
|
361
|
+
|
|
362
|
+
// Properties
|
|
363
|
+
|
|
364
|
+
set statistics(val: any);
|
|
365
|
+
|
|
366
|
+
// Constructors
|
|
367
|
+
|
|
368
|
+
constructor(properties?: Partial<Statistics.ConstructorProps>, ...args: any[]);
|
|
369
|
+
|
|
370
|
+
_init(...args: any[]): void;
|
|
371
|
+
|
|
372
|
+
// Methods
|
|
373
|
+
|
|
374
|
+
equal(other_statistics: Statistics): boolean;
|
|
375
|
+
get_n_distinct_values(): number;
|
|
376
|
+
get_n_nulls(): number;
|
|
377
|
+
get_n_values(): number;
|
|
378
|
+
has_min_max(): boolean;
|
|
379
|
+
has_n_distinct_values(): boolean;
|
|
380
|
+
has_n_nulls(): boolean;
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
module WriterProperties {
|
|
384
|
+
// Constructor properties interface
|
|
385
|
+
|
|
386
|
+
interface ConstructorProps extends GObject.Object.ConstructorProps {}
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
class WriterProperties extends GObject.Object {
|
|
390
|
+
static $gtype: GObject.GType<WriterProperties>;
|
|
391
|
+
|
|
392
|
+
// Constructors
|
|
393
|
+
|
|
394
|
+
constructor(properties?: Partial<WriterProperties.ConstructorProps>, ...args: any[]);
|
|
395
|
+
|
|
396
|
+
_init(...args: any[]): void;
|
|
397
|
+
|
|
398
|
+
static ['new'](): WriterProperties;
|
|
399
|
+
|
|
400
|
+
// Methods
|
|
401
|
+
|
|
402
|
+
disable_dictionary(path?: string | null): void;
|
|
403
|
+
enable_dictionary(path?: string | null): void;
|
|
404
|
+
get_batch_size(): number;
|
|
405
|
+
get_compression_path(path: string): Arrow.CompressionType;
|
|
406
|
+
get_data_page_size(): number;
|
|
407
|
+
get_dictionary_page_size_limit(): number;
|
|
408
|
+
get_max_row_group_length(): number;
|
|
409
|
+
is_dictionary_enabled(path: string): boolean;
|
|
410
|
+
set_batch_size(batch_size: number): void;
|
|
411
|
+
set_compression(compression_type: Arrow.CompressionType, path?: string | null): void;
|
|
412
|
+
set_data_page_size(data_page_size: number): void;
|
|
413
|
+
set_dictionary_page_size_limit(limit: number): void;
|
|
414
|
+
set_max_row_group_length(length: number): void;
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
type ArrowFileReaderClass = typeof ArrowFileReader;
|
|
418
|
+
type ArrowFileWriterClass = typeof ArrowFileWriter;
|
|
419
|
+
type BooleanStatisticsClass = typeof BooleanStatistics;
|
|
420
|
+
type ByteArrayStatisticsClass = typeof ByteArrayStatistics;
|
|
421
|
+
type ColumnChunkMetadataClass = typeof ColumnChunkMetadata;
|
|
422
|
+
type DoubleStatisticsClass = typeof DoubleStatistics;
|
|
423
|
+
type FileMetadataClass = typeof FileMetadata;
|
|
424
|
+
type FixedLengthByteArrayStatisticsClass = typeof FixedLengthByteArrayStatistics;
|
|
425
|
+
type FloatStatisticsClass = typeof FloatStatistics;
|
|
426
|
+
type Int32StatisticsClass = typeof Int32Statistics;
|
|
427
|
+
type Int64StatisticsClass = typeof Int64Statistics;
|
|
428
|
+
type RowGroupMetadataClass = typeof RowGroupMetadata;
|
|
429
|
+
type StatisticsClass = typeof Statistics;
|
|
430
|
+
type WriterPropertiesClass = typeof WriterProperties;
|
|
431
|
+
/**
|
|
432
|
+
* Name of the imported GIR library
|
|
433
|
+
* `see` https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L188
|
|
434
|
+
*/
|
|
435
|
+
const __name__: string;
|
|
436
|
+
/**
|
|
437
|
+
* Version of the imported GIR library
|
|
438
|
+
* `see` https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L189
|
|
439
|
+
*/
|
|
440
|
+
const __version__: string;
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
export default Parquet;
|
|
444
|
+
|
|
445
|
+
// END
|
package/parquet-1.0.js
ADDED
package/tsconfig.json
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
// General settings for code interpretation
|
|
4
|
+
"target": "ESNext",
|
|
5
|
+
"module": "NodeNext",
|
|
6
|
+
"lib": ["ESNext"],
|
|
7
|
+
"types": [],
|
|
8
|
+
"experimentalDecorators": true,
|
|
9
|
+
"moduleResolution": "NodeNext",
|
|
10
|
+
"noEmit": true,
|
|
11
|
+
"noEmitOnError": false,
|
|
12
|
+
"baseUrl": "./",
|
|
13
|
+
"rootDir": ".",
|
|
14
|
+
// General settings for code generation
|
|
15
|
+
"removeComments": false,
|
|
16
|
+
"inlineSourceMap": false,
|
|
17
|
+
"inlineSources": false,
|
|
18
|
+
"newLine": "LF"
|
|
19
|
+
},
|
|
20
|
+
"include": ["./parquet-1.0.d.ts"]
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
|