@cobol-ts/cursor-record 0.0.3 → 0.0.4
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/dist/index.js.map +1 -0
- package/dist/src/cursor.record.d.ts +34 -0
- package/dist/src/cursor.record.js +268 -0
- package/dist/src/cursor.record.js.map +1 -0
- package/dist/src/cursor.record.spec.d.ts +1 -0
- package/dist/src/cursor.record.spec.js +509 -0
- package/dist/src/cursor.record.spec.js.map +1 -0
- package/dist/src/physical.record.d.ts +47 -0
- package/dist/src/physical.record.js +122 -0
- package/dist/src/physical.record.js.map +1 -0
- package/dist/src/physical.record.spec.d.ts +1 -0
- package/dist/src/physical.record.spec.js +392 -0
- package/dist/src/physical.record.spec.js.map +1 -0
- package/dist/src/record.pool.d.ts +15 -0
- package/dist/src/record.pool.js +65 -0
- package/dist/src/record.pool.js.map +1 -0
- package/dist/src/record.pool.spec.d.ts +1 -0
- package/dist/src/record.pool.spec.js +42 -0
- package/dist/src/record.pool.spec.js.map +1 -0
- package/package.json +6 -5
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAmC;AACnC,wDAAqC;AACrC,oDAAiC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { type Parser, type ParserPhysicalRecordContent, type ParserResult, type PhysicalRecordContent, type PhysicalRecordContext, type RecordCursorResult } from "@cobol-ts/cursor-loader-types";
|
|
2
|
+
import { type RecordCursorResources } from "./physical.record";
|
|
3
|
+
export interface OpenedRecordCursor<TRepresentation, TParserDetails, TRecordState> {
|
|
4
|
+
readonly details: TParserDetails;
|
|
5
|
+
readonly preparationContext?: PhysicalRecordContext;
|
|
6
|
+
readonly recordCursor: AsyncGenerator<RecordCursorResult<TRepresentation, TRecordState>, void, void>;
|
|
7
|
+
/** Synchronous record visitor; returning false stops the scan. */
|
|
8
|
+
scanRecords(visitor: RecordCursorVisitor<TRepresentation, TRecordState>): Promise<void>;
|
|
9
|
+
close(): void;
|
|
10
|
+
}
|
|
11
|
+
export type RecordCursorVisitor<TRepresentation, TRecordState> = (result: ParserResult<TRepresentation>, record: PhysicalRecordContent<TRecordState>) => void | boolean;
|
|
12
|
+
interface RecordParser<TRepresentation, TParserDetails, TRecordState> {
|
|
13
|
+
readonly parse: (record: ParserPhysicalRecordContent<TRecordState>, details: TParserDetails) => Promise<ParserResult<TRepresentation>>;
|
|
14
|
+
readonly parseBuffered?: (record: ParserPhysicalRecordContent<TRecordState>, details: TParserDetails) => ParserResult<TRepresentation> | undefined;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Low-level entry point when parser details are already known.
|
|
18
|
+
*/
|
|
19
|
+
export declare function createRecordCursor<TRepresentation, TParserDetails, TRecordState>(parser: RecordParser<TRepresentation, TParserDetails, TRecordState>, details: TParserDetails, resources: RecordCursorResources<TRecordState>): AsyncGenerator<RecordCursorResult<TRepresentation, TRecordState>, void, void>;
|
|
20
|
+
/**
|
|
21
|
+
* Open one parser against one source.
|
|
22
|
+
*
|
|
23
|
+
* prepare(), when present, consumes its bootstrap record through the same
|
|
24
|
+
* cursor state subsequently used for data records. Bytes already read beyond
|
|
25
|
+
* the bootstrap record therefore become the start of the first data record
|
|
26
|
+
* without copying or rereading.
|
|
27
|
+
*
|
|
28
|
+
* The physical bootstrap record itself is released after preparation. Only its
|
|
29
|
+
* thin source/record-number context is retained for later setup diagnostics.
|
|
30
|
+
*
|
|
31
|
+
* Preparation failures are configuration/setup failures and throw.
|
|
32
|
+
*/
|
|
33
|
+
export declare function openRecordCursor<TRepresentation, TParserConfig, TParserDetails, TRecordState, TProjectionPath>(parser: Parser<TRepresentation, TParserConfig, TParserDetails, TRecordState, TProjectionPath>, config: TParserConfig, resources: RecordCursorResources<TRecordState>): Promise<OpenedRecordCursor<TRepresentation, TParserDetails, TRecordState>>;
|
|
34
|
+
export {};
|
|
@@ -0,0 +1,268 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createRecordCursor = createRecordCursor;
|
|
4
|
+
exports.openRecordCursor = openRecordCursor;
|
|
5
|
+
const errors_1 = require("@cobol-ts/errors");
|
|
6
|
+
/**
|
|
7
|
+
* Low-level entry point when parser details are already known.
|
|
8
|
+
*/
|
|
9
|
+
function createRecordCursor(parser, details, resources) {
|
|
10
|
+
return createRecordCursorFromState(parser, details, createRecordCursorState(resources));
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Open one parser against one source.
|
|
14
|
+
*
|
|
15
|
+
* prepare(), when present, consumes its bootstrap record through the same
|
|
16
|
+
* cursor state subsequently used for data records. Bytes already read beyond
|
|
17
|
+
* the bootstrap record therefore become the start of the first data record
|
|
18
|
+
* without copying or rereading.
|
|
19
|
+
*
|
|
20
|
+
* The physical bootstrap record itself is released after preparation. Only its
|
|
21
|
+
* thin source/record-number context is retained for later setup diagnostics.
|
|
22
|
+
*
|
|
23
|
+
* Preparation failures are configuration/setup failures and throw.
|
|
24
|
+
*/
|
|
25
|
+
async function openRecordCursor(parser, config, resources) {
|
|
26
|
+
const state = createRecordCursorState(resources);
|
|
27
|
+
if (parser.prepare === undefined) {
|
|
28
|
+
const details = config;
|
|
29
|
+
return {
|
|
30
|
+
details,
|
|
31
|
+
recordCursor: createRecordCursorFromState(parser, details, state),
|
|
32
|
+
scanRecords: visitor => scanRecordCursorFromState(parser, details, state, visitor),
|
|
33
|
+
close: () => closeRecordCursorState(state)
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
let record = acquireRecord(state);
|
|
37
|
+
try {
|
|
38
|
+
const prepared = await parser.prepare(record, config);
|
|
39
|
+
/**
|
|
40
|
+
* Preparation errors terminate the source.
|
|
41
|
+
*
|
|
42
|
+
* Do not create a carry reference because no data-record run will
|
|
43
|
+
* follow.
|
|
44
|
+
*/
|
|
45
|
+
if ((0, errors_1.isErrors)(prepared)) {
|
|
46
|
+
throw new errors_1.ErrorsException(prepared.errors, prepared.reference);
|
|
47
|
+
}
|
|
48
|
+
/*
|
|
49
|
+
* Retain only the provenance needed after the bootstrap record itself
|
|
50
|
+
* has been released.
|
|
51
|
+
*/
|
|
52
|
+
const preparationContext = {
|
|
53
|
+
source: record.source,
|
|
54
|
+
recordNumber: record.recordNumber
|
|
55
|
+
};
|
|
56
|
+
/**
|
|
57
|
+
* Establish the carry before releasing the bootstrap record's own
|
|
58
|
+
* references.
|
|
59
|
+
*/
|
|
60
|
+
completeRecord(state, record);
|
|
61
|
+
const completedRecord = record;
|
|
62
|
+
record =
|
|
63
|
+
undefined;
|
|
64
|
+
completedRecord.close();
|
|
65
|
+
return {
|
|
66
|
+
details: prepared,
|
|
67
|
+
preparationContext,
|
|
68
|
+
recordCursor: createRecordCursorFromState(parser, prepared, state),
|
|
69
|
+
scanRecords: visitor => scanRecordCursorFromState(parser, prepared, state, visitor),
|
|
70
|
+
close: () => closeRecordCursorState(state)
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
catch (error) {
|
|
74
|
+
record?.close();
|
|
75
|
+
closeRecordCursorState(state);
|
|
76
|
+
throw error;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Visit records without yielding a promise (or a wrapper) per record.
|
|
81
|
+
*
|
|
82
|
+
* When the parser exposes parseBuffered(), parsing and the visitor are both
|
|
83
|
+
* synchronous while buffered bytes suffice. Only a genuine need for more
|
|
84
|
+
* input calls readMore(). Older parsers retain the original async parse API.
|
|
85
|
+
* The borrowed physical record is always released after the visitor returns,
|
|
86
|
+
* even on an exception or an early stop.
|
|
87
|
+
*/
|
|
88
|
+
async function scanRecordCursorFromState(parser, details, state, visitor) {
|
|
89
|
+
let record;
|
|
90
|
+
try {
|
|
91
|
+
while (!state.finished) {
|
|
92
|
+
record = acquireRecord(state);
|
|
93
|
+
let result;
|
|
94
|
+
if (parser.parseBuffered) {
|
|
95
|
+
let parsed = parser.parseBuffered(record, details);
|
|
96
|
+
while (parsed === undefined) {
|
|
97
|
+
if (record.fileFinished) {
|
|
98
|
+
throw new Error('Buffered parser requested data after EOF');
|
|
99
|
+
}
|
|
100
|
+
await record.readMore();
|
|
101
|
+
parsed = parser.parseBuffered(record, details);
|
|
102
|
+
}
|
|
103
|
+
result = parsed;
|
|
104
|
+
}
|
|
105
|
+
else {
|
|
106
|
+
result = await parser.parse(record, details);
|
|
107
|
+
}
|
|
108
|
+
if (record.fileFinished && record.startByte === record.lastValidByte) {
|
|
109
|
+
record.endByte = record.startByte;
|
|
110
|
+
completeRecord(state, record);
|
|
111
|
+
record.close();
|
|
112
|
+
record = undefined;
|
|
113
|
+
break;
|
|
114
|
+
}
|
|
115
|
+
completeRecord(state, record);
|
|
116
|
+
const current = record;
|
|
117
|
+
record = undefined;
|
|
118
|
+
let decision;
|
|
119
|
+
try {
|
|
120
|
+
decision = visitor(result, current);
|
|
121
|
+
// An async callback would use the borrowed record after it
|
|
122
|
+
// has been released. Catch this mistake even from JS callers.
|
|
123
|
+
if (decision !== null && typeof decision === 'object'
|
|
124
|
+
&& typeof decision.then === 'function') {
|
|
125
|
+
throw new TypeError('Record callback must be synchronous');
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
finally {
|
|
129
|
+
current.close();
|
|
130
|
+
}
|
|
131
|
+
if (decision === false)
|
|
132
|
+
break;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
finally {
|
|
136
|
+
record?.close();
|
|
137
|
+
closeRecordCursorState(state);
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
async function* createRecordCursorFromState(parser, details, state) {
|
|
141
|
+
let record;
|
|
142
|
+
try {
|
|
143
|
+
while (!state.finished) {
|
|
144
|
+
record =
|
|
145
|
+
acquireRecord(state);
|
|
146
|
+
const result = await parser.parse(record, details);
|
|
147
|
+
// A full final physical buffer does not signal EOF until the
|
|
148
|
+
// next readMore(). If that read discovers no additional bytes,
|
|
149
|
+
// there is no third, zero-length logical record to yield.
|
|
150
|
+
// Keep the decision in the cursor: a parser cannot signal EOF
|
|
151
|
+
// through its normal (successful/Errors) result contract.
|
|
152
|
+
if (record.fileFinished && record.startByte === record.lastValidByte) {
|
|
153
|
+
record.endByte = record.startByte;
|
|
154
|
+
completeRecord(state, record);
|
|
155
|
+
record.close();
|
|
156
|
+
record = undefined;
|
|
157
|
+
break;
|
|
158
|
+
}
|
|
159
|
+
completeRecord(state, record);
|
|
160
|
+
const physicalRecord = record;
|
|
161
|
+
const cursorResult = {
|
|
162
|
+
result,
|
|
163
|
+
physicalRecord
|
|
164
|
+
};
|
|
165
|
+
/**
|
|
166
|
+
* Ownership transfers to the consumer before suspension.
|
|
167
|
+
*/
|
|
168
|
+
record =
|
|
169
|
+
undefined;
|
|
170
|
+
yield cursorResult;
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
finally {
|
|
174
|
+
/**
|
|
175
|
+
* Only an unyielded record remains cursor-owned.
|
|
176
|
+
*/
|
|
177
|
+
record?.close();
|
|
178
|
+
closeRecordCursorState(state);
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
function createRecordCursorState(resources) {
|
|
182
|
+
return {
|
|
183
|
+
resources,
|
|
184
|
+
nextBuffer: undefined,
|
|
185
|
+
nextStartByte: 0,
|
|
186
|
+
nextLastValidByte: 0,
|
|
187
|
+
nextFileFinished: false,
|
|
188
|
+
recordNumber: 0,
|
|
189
|
+
finished: false
|
|
190
|
+
};
|
|
191
|
+
}
|
|
192
|
+
function acquireRecord(state) {
|
|
193
|
+
if (state.finished) {
|
|
194
|
+
throw new Error("Cannot acquire a record from a finished record cursor");
|
|
195
|
+
}
|
|
196
|
+
const record = state.resources.acquireRecord();
|
|
197
|
+
if (state.nextBuffer !== undefined) {
|
|
198
|
+
record.buffers.push(state.nextBuffer);
|
|
199
|
+
state.nextBuffer =
|
|
200
|
+
undefined;
|
|
201
|
+
}
|
|
202
|
+
record.startByte =
|
|
203
|
+
state.nextStartByte;
|
|
204
|
+
record.endByte =
|
|
205
|
+
state.nextStartByte;
|
|
206
|
+
record.lastValidByte =
|
|
207
|
+
state.nextLastValidByte;
|
|
208
|
+
record.fileFinished =
|
|
209
|
+
state.nextFileFinished;
|
|
210
|
+
record.recordNumber =
|
|
211
|
+
++state.recordNumber;
|
|
212
|
+
return record;
|
|
213
|
+
}
|
|
214
|
+
function completeRecord(state, record) {
|
|
215
|
+
validateCompletedRecord(record, state.resources.bufferSize);
|
|
216
|
+
if (record.fileFinished
|
|
217
|
+
&& record.endByte === record.lastValidByte) {
|
|
218
|
+
state.finished =
|
|
219
|
+
true;
|
|
220
|
+
return;
|
|
221
|
+
}
|
|
222
|
+
if (record.buffers.length === 0) {
|
|
223
|
+
throw new Error("Parser completed a non-final physical record without a byte buffer");
|
|
224
|
+
}
|
|
225
|
+
const finalBufferStart = (record.buffers.length - 1)
|
|
226
|
+
* state.resources.bufferSize;
|
|
227
|
+
const nextStartByte = record.endByte
|
|
228
|
+
- finalBufferStart;
|
|
229
|
+
const nextLastValidByte = record.lastValidByte
|
|
230
|
+
- finalBufferStart;
|
|
231
|
+
if (nextStartByte < 0
|
|
232
|
+
|| nextStartByte > state.resources.bufferSize
|
|
233
|
+
|| nextLastValidByte < nextStartByte
|
|
234
|
+
|| nextLastValidByte > state.resources.bufferSize) {
|
|
235
|
+
throw new Error("Parser returned a physical record range outside its byte buffers");
|
|
236
|
+
}
|
|
237
|
+
const lastBuffer = record.buffers[record.buffers.length - 1];
|
|
238
|
+
state.resources.retainBuffer(lastBuffer);
|
|
239
|
+
state.nextBuffer =
|
|
240
|
+
lastBuffer;
|
|
241
|
+
state.nextStartByte =
|
|
242
|
+
nextStartByte;
|
|
243
|
+
state.nextLastValidByte =
|
|
244
|
+
nextLastValidByte;
|
|
245
|
+
state.nextFileFinished =
|
|
246
|
+
record.fileFinished;
|
|
247
|
+
}
|
|
248
|
+
function closeRecordCursorState(state) {
|
|
249
|
+
state.finished =
|
|
250
|
+
true;
|
|
251
|
+
if (state.nextBuffer === undefined) {
|
|
252
|
+
return;
|
|
253
|
+
}
|
|
254
|
+
state.resources.releaseBuffer(state.nextBuffer);
|
|
255
|
+
state.nextBuffer =
|
|
256
|
+
undefined;
|
|
257
|
+
}
|
|
258
|
+
function validateCompletedRecord(record, bufferSize) {
|
|
259
|
+
const capacity = record.buffers.length
|
|
260
|
+
* bufferSize;
|
|
261
|
+
if (record.startByte < 0
|
|
262
|
+
|| record.endByte < record.startByte
|
|
263
|
+
|| record.endByte > record.lastValidByte
|
|
264
|
+
|| record.lastValidByte > capacity) {
|
|
265
|
+
throw new Error("Parser returned a physical record range outside its byte buffers");
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
//# sourceMappingURL=cursor.record.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cursor.record.js","sourceRoot":"","sources":["../../src/cursor.record.ts"],"names":[],"mappings":";;AA4EA,gDAcC;AAgBD,4CA2HC;AArOD,6CAA0D;AAyE1D;;GAEG;AACH,SAAgB,kBAAkB,CAK9B,MAAiE,EACjE,OAAuB,EACvB,SAA8C;IAE9C,OAAO,2BAA2B,CAC9B,MAAM,EACN,OAAO,EACP,uBAAuB,CAAC,SAAS,CAAC,CACrC,CAAC;AACN,CAAC;AAGD;;;;;;;;;;;;GAYG;AACI,KAAK,UAAU,gBAAgB,CAOlC,MAMC,EACD,MAAqB,EACrB,SAA8C;IAQ9C,MAAM,KAAK,GACP,uBAAuB,CAAC,SAAS,CAAC,CAAC;IAEvC,IAAI,MAAM,CAAC,OAAO,KAAK,SAAS,EAAE,CAAC;QAC/B,MAAM,OAAO,GACT,MAAmC,CAAC;QAExC,OAAO;YACH,OAAO;YAEP,YAAY,EACR,2BAA2B,CACvB,MAAM,EACN,OAAO,EACP,KAAK,CACR;YAEL,WAAW,EAAE,OAAO,CAAC,EAAE,CACnB,yBAAyB,CAAC,MAAM,EAAC,OAAO,EA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