@maplibre/mlt 0.0.1-alpha.9 → 1.1.0
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/{encodings → decoding}/decodingUtils.js +18 -33
- package/dist/decoding/decodingUtils.js.map +1 -0
- package/dist/decoding/decodingUtils.spec.d.ts +1 -0
- package/dist/decoding/decodingUtils.spec.js +125 -0
- package/dist/decoding/decodingUtils.spec.js.map +1 -0
- package/dist/{encodings → decoding}/fsstDecoder.js +1 -4
- package/dist/decoding/fsstDecoder.js.map +1 -0
- package/dist/decoding/fsstDecoder.spec.d.ts +1 -0
- package/dist/decoding/fsstDecoder.spec.js +36 -0
- package/dist/decoding/fsstDecoder.spec.js.map +1 -0
- package/dist/{encodings → decoding}/geometryDecoder.js +65 -71
- package/dist/decoding/geometryDecoder.js.map +1 -0
- package/dist/decoding/geometryDecoder.spec.d.ts +1 -0
- package/dist/decoding/geometryDecoder.spec.js +5 -0
- package/dist/decoding/geometryDecoder.spec.js.map +1 -0
- package/dist/decoding/geometryScaling.js +2 -0
- package/dist/decoding/geometryScaling.js.map +1 -0
- package/dist/{encodings → decoding}/intWrapper.js +2 -4
- package/dist/decoding/intWrapper.js.map +1 -0
- package/dist/{encodings → decoding}/integerDecodingUtils.d.ts +13 -0
- package/dist/{encodings → decoding}/integerDecodingUtils.js +89 -88
- package/dist/decoding/integerDecodingUtils.js.map +1 -0
- package/dist/decoding/integerDecodingUtils.spec.d.ts +1 -0
- package/dist/decoding/integerDecodingUtils.spec.js +194 -0
- package/dist/decoding/integerDecodingUtils.spec.js.map +1 -0
- package/dist/{encodings → decoding}/integerStreamDecoder.d.ts +1 -1
- package/dist/decoding/integerStreamDecoder.js +266 -0
- package/dist/decoding/integerStreamDecoder.js.map +1 -0
- package/dist/decoding/integerStreamDecoder.spec.d.ts +1 -0
- package/dist/decoding/integerStreamDecoder.spec.js +125 -0
- package/dist/decoding/integerStreamDecoder.spec.js.map +1 -0
- package/dist/{encodings → decoding}/propertyDecoder.d.ts +1 -1
- package/dist/decoding/propertyDecoder.js +140 -0
- package/dist/decoding/propertyDecoder.js.map +1 -0
- package/dist/decoding/propertyDecoder.spec.d.ts +1 -0
- package/dist/decoding/propertyDecoder.spec.js +682 -0
- package/dist/decoding/propertyDecoder.spec.js.map +1 -0
- package/dist/{encodings → decoding}/stringDecoder.d.ts +4 -1
- package/dist/decoding/stringDecoder.js +191 -0
- package/dist/decoding/stringDecoder.js.map +1 -0
- package/dist/decoding/stringDecoder.spec.d.ts +1 -0
- package/dist/decoding/stringDecoder.spec.js +356 -0
- package/dist/decoding/stringDecoder.spec.js.map +1 -0
- package/dist/index.d.ts +2 -4
- package/dist/index.js +5 -20
- package/dist/index.js.map +1 -1
- package/dist/metadata/tile/dictionaryType.js +2 -5
- package/dist/metadata/tile/dictionaryType.js.map +1 -1
- package/dist/metadata/tile/lengthType.js +2 -5
- package/dist/metadata/tile/lengthType.js.map +1 -1
- package/dist/metadata/tile/logicalLevelTechnique.js +2 -5
- package/dist/metadata/tile/logicalLevelTechnique.js.map +1 -1
- package/dist/metadata/tile/logicalStreamType.js +4 -5
- package/dist/metadata/tile/logicalStreamType.js.map +1 -1
- package/dist/metadata/tile/mortonEncodedStreamMetadata.d.ts +1 -1
- package/dist/metadata/tile/mortonEncodedStreamMetadata.js +8 -10
- package/dist/metadata/tile/mortonEncodedStreamMetadata.js.map +1 -1
- package/dist/metadata/tile/offsetType.js +2 -5
- package/dist/metadata/tile/offsetType.js.map +1 -1
- package/dist/metadata/tile/physicalLevelTechnique.js +2 -5
- package/dist/metadata/tile/physicalLevelTechnique.js.map +1 -1
- package/dist/metadata/tile/physicalStreamType.js +2 -5
- package/dist/metadata/tile/physicalStreamType.js.map +1 -1
- package/dist/metadata/tile/rleEncodedStreamMetadata.d.ts +5 -1
- package/dist/metadata/tile/rleEncodedStreamMetadata.js +14 -10
- package/dist/metadata/tile/rleEncodedStreamMetadata.js.map +1 -1
- package/dist/metadata/tile/scalarType.js +2 -5
- package/dist/metadata/tile/scalarType.js.map +1 -1
- package/dist/metadata/tile/streamMetadata.d.ts +7 -1
- package/dist/metadata/tile/streamMetadata.js +35 -24
- package/dist/metadata/tile/streamMetadata.js.map +1 -1
- package/dist/metadata/tile/streamMetadataDecoder.d.ts +1 -1
- package/dist/metadata/tile/streamMetadataDecoder.js +13 -17
- package/dist/metadata/tile/streamMetadataDecoder.js.map +1 -1
- package/dist/metadata/tileset/embeddedTilesetMetadataDecoder.d.ts +2 -2
- package/dist/metadata/tileset/embeddedTilesetMetadataDecoder.js +40 -32
- package/dist/metadata/tileset/embeddedTilesetMetadataDecoder.js.map +1 -1
- package/dist/metadata/tileset/tilesetMetadata.d.ts +80 -0
- package/dist/metadata/tileset/tilesetMetadata.js +29 -0
- package/dist/metadata/tileset/tilesetMetadata.js.map +1 -0
- package/dist/metadata/tileset/typeMap.d.ts +1 -1
- package/dist/metadata/tileset/typeMap.js +63 -59
- package/dist/metadata/tileset/typeMap.js.map +1 -1
- package/dist/mltDecoder.d.ts +2 -2
- package/dist/mltDecoder.js +69 -65
- package/dist/mltDecoder.js.map +1 -1
- package/dist/mltDecoder.spec.d.ts +1 -0
- package/dist/mltDecoder.spec.js +152 -0
- package/dist/mltDecoder.spec.js.map +1 -0
- package/dist/mltMetadata.js +4 -7
- package/dist/mltMetadata.js.map +1 -1
- package/dist/vector/constant/intConstVector.d.ts +0 -13
- package/dist/vector/constant/intConstVector.js +2 -82
- package/dist/vector/constant/intConstVector.js.map +1 -1
- package/dist/vector/constant/longConstVector.d.ts +0 -13
- package/dist/vector/constant/longConstVector.js +2 -80
- package/dist/vector/constant/longConstVector.js.map +1 -1
- package/dist/vector/dictionary/stringDictionaryVector.d.ts +0 -14
- package/dist/vector/dictionary/stringDictionaryVector.js +6 -178
- package/dist/vector/dictionary/stringDictionaryVector.js.map +1 -1
- package/dist/vector/featureTable.d.ts +7 -2
- package/dist/vector/featureTable.js +45 -11
- package/dist/vector/featureTable.js.map +1 -1
- package/dist/vector/fixedSizeVector.js +2 -9
- package/dist/vector/fixedSizeVector.js.map +1 -1
- package/dist/vector/flat/bitVector.js +3 -4
- package/dist/vector/flat/bitVector.js.map +1 -1
- package/dist/vector/flat/booleanFlatVector.d.ts +0 -13
- package/dist/vector/flat/booleanFlatVector.js +3 -45
- package/dist/vector/flat/booleanFlatVector.js.map +1 -1
- package/dist/vector/flat/doubleFlatVector.d.ts +0 -13
- package/dist/vector/flat/doubleFlatVector.js +2 -104
- package/dist/vector/flat/doubleFlatVector.js.map +1 -1
- package/dist/vector/flat/floatFlatVector.d.ts +0 -13
- package/dist/vector/flat/floatFlatVector.js +2 -104
- package/dist/vector/flat/floatFlatVector.js.map +1 -1
- package/dist/vector/flat/floatFlatVector.spec.d.ts +1 -0
- package/dist/vector/flat/floatFlatVector.spec.js +14 -0
- package/dist/vector/flat/floatFlatVector.spec.js.map +1 -0
- package/dist/vector/flat/intFlatVector.d.ts +0 -13
- package/dist/vector/flat/intFlatVector.js +2 -117
- package/dist/vector/flat/intFlatVector.js.map +1 -1
- package/dist/vector/flat/intFlatVector.spec.d.ts +1 -0
- package/dist/vector/flat/intFlatVector.spec.js +15 -0
- package/dist/vector/flat/intFlatVector.spec.js.map +1 -0
- package/dist/vector/flat/longFlatVector.d.ts +0 -13
- package/dist/vector/flat/longFlatVector.js +2 -118
- package/dist/vector/flat/longFlatVector.js.map +1 -1
- package/dist/vector/flat/longFlatVector.spec.d.ts +1 -0
- package/dist/vector/flat/longFlatVector.spec.js +14 -0
- package/dist/vector/flat/longFlatVector.spec.js.map +1 -0
- package/dist/vector/flat/stringFlatVector.d.ts +0 -13
- package/dist/vector/flat/stringFlatVector.js +5 -166
- package/dist/vector/flat/stringFlatVector.js.map +1 -1
- package/dist/vector/fsst-dictionary/stringFsstDictionaryVector.d.ts +0 -13
- package/dist/vector/fsst-dictionary/stringFsstDictionaryVector.js +14 -51
- package/dist/vector/fsst-dictionary/stringFsstDictionaryVector.js.map +1 -1
- package/dist/vector/fsst-dictionary/stringFsstDictionaryVector.spec.d.ts +1 -0
- package/dist/vector/fsst-dictionary/stringFsstDictionaryVector.spec.js +28 -0
- package/dist/vector/fsst-dictionary/stringFsstDictionaryVector.spec.js.map +1 -0
- package/dist/vector/geometry/constGeometryVector.d.ts +0 -4
- package/dist/vector/geometry/constGeometryVector.js +9 -30
- package/dist/vector/geometry/constGeometryVector.js.map +1 -1
- package/dist/vector/geometry/constGpuVector.d.ts +0 -4
- package/dist/vector/geometry/constGpuVector.js +4 -25
- package/dist/vector/geometry/constGpuVector.js.map +1 -1
- package/dist/vector/geometry/flatGeometryVector.d.ts +0 -4
- package/dist/vector/geometry/flatGeometryVector.js +8 -35
- package/dist/vector/geometry/flatGeometryVector.js.map +1 -1
- package/dist/vector/geometry/flatGpuVector.d.ts +0 -4
- package/dist/vector/geometry/flatGpuVector.js +3 -29
- package/dist/vector/geometry/flatGpuVector.js.map +1 -1
- package/dist/vector/geometry/geometryType.js +4 -7
- package/dist/vector/geometry/geometryType.js.map +1 -1
- package/dist/vector/geometry/geometryVector.d.ts +2 -5
- package/dist/vector/geometry/geometryVector.js +11 -13
- package/dist/vector/geometry/geometryVector.js.map +1 -1
- package/dist/vector/geometry/geometryVectorConverter.js +28 -34
- package/dist/vector/geometry/geometryVectorConverter.js.map +1 -1
- package/dist/vector/geometry/gpuVector.d.ts +5 -4
- package/dist/vector/geometry/gpuVector.js +89 -5
- package/dist/vector/geometry/gpuVector.js.map +1 -1
- package/dist/vector/geometry/spaceFillingCurve.js +6 -4
- package/dist/vector/geometry/spaceFillingCurve.js.map +1 -1
- package/dist/vector/geometry/topologyVector.js +4 -4
- package/dist/vector/geometry/topologyVector.js.map +1 -1
- package/dist/vector/geometry/vertexBufferType.js +2 -5
- package/dist/vector/geometry/vertexBufferType.js.map +1 -1
- package/dist/vector/geometry/zOrderCurve.js +2 -8
- package/dist/vector/geometry/zOrderCurve.js.map +1 -1
- package/dist/vector/geometry/zOrderCurve.spec.d.ts +1 -0
- package/dist/vector/geometry/zOrderCurve.spec.js +14 -0
- package/dist/vector/geometry/zOrderCurve.spec.js.map +1 -0
- package/dist/vector/intVector.js +1 -2
- package/dist/vector/sequence/intSequenceVector.d.ts +0 -13
- package/dist/vector/sequence/intSequenceVector.js +2 -64
- package/dist/vector/sequence/intSequenceVector.js.map +1 -1
- package/dist/vector/sequence/longSequenceVector.d.ts +0 -13
- package/dist/vector/sequence/longSequenceVector.js +2 -49
- package/dist/vector/sequence/longSequenceVector.js.map +1 -1
- package/dist/vector/sequence/longSequenceVektor.spec.d.ts +1 -0
- package/dist/vector/sequence/longSequenceVektor.spec.js +11 -0
- package/dist/vector/sequence/longSequenceVektor.spec.js.map +1 -0
- package/dist/vector/sequence/sequenceVector.js +3 -9
- package/dist/vector/sequence/sequenceVector.js.map +1 -1
- package/dist/vector/variableSizeVector.js +3 -9
- package/dist/vector/variableSizeVector.js.map +1 -1
- package/dist/vector/vector.d.ts +0 -17
- package/dist/vector/vector.js +5 -47
- package/dist/vector/vector.js.map +1 -1
- package/dist/vector/vectorType.js +2 -5
- package/dist/vector/vectorType.js.map +1 -1
- package/package.json +12 -33
- package/dist/encodings/decodingUtils.js.map +0 -1
- package/dist/encodings/doubleDecoder.d.ts +0 -4
- package/dist/encodings/doubleDecoder.js +0 -22
- package/dist/encodings/doubleDecoder.js.map +0 -1
- package/dist/encodings/fastpfor/bitpacking.d.ts +0 -51
- package/dist/encodings/fastpfor/bitpacking.js +0 -3930
- package/dist/encodings/fastpfor/bitpacking.js.map +0 -1
- package/dist/encodings/fastpfor/codec.d.ts +0 -19
- package/dist/encodings/fastpfor/codec.js +0 -3
- package/dist/encodings/fastpfor/codec.js.map +0 -1
- package/dist/encodings/fastpfor/fastpfor.d.ts +0 -38
- package/dist/encodings/fastpfor/fastpfor.js +0 -146
- package/dist/encodings/fastpfor/fastpfor.js.map +0 -1
- package/dist/encodings/fastpfor/index.d.ts +0 -20
- package/dist/encodings/fastpfor/index.js +0 -47
- package/dist/encodings/fastpfor/index.js.map +0 -1
- package/dist/encodings/fastpfor/util.d.ts +0 -2
- package/dist/encodings/fastpfor/util.js +0 -16
- package/dist/encodings/fastpfor/util.js.map +0 -1
- package/dist/encodings/fastpfor/varint.d.ts +0 -18
- package/dist/encodings/fastpfor/varint.js +0 -125
- package/dist/encodings/fastpfor/varint.js.map +0 -1
- package/dist/encodings/fsstDecoder.js.map +0 -1
- package/dist/encodings/geometryDecoder.js.map +0 -1
- package/dist/encodings/geometryScaling.js +0 -3
- package/dist/encodings/geometryScaling.js.map +0 -1
- package/dist/encodings/intWrapper.js.map +0 -1
- package/dist/encodings/integerDecodingUtils.js.map +0 -1
- package/dist/encodings/integerStreamDecoder.js +0 -249
- package/dist/encodings/integerStreamDecoder.js.map +0 -1
- package/dist/encodings/propertyDecoder.js +0 -146
- package/dist/encodings/propertyDecoder.js.map +0 -1
- package/dist/encodings/stringDecoder.js +0 -149
- package/dist/encodings/stringDecoder.js.map +0 -1
- package/dist/metadata/tileset/tilesetMetadata.g.d.ts +0 -418
- package/dist/metadata/tileset/tilesetMetadata.g.js +0 -476
- package/dist/metadata/tileset/tilesetMetadata.g.js.map +0 -1
- package/dist/vector/filter/constSelectionVector.d.ts +0 -0
- package/dist/vector/filter/constSelectionVector.js +0 -1
- package/dist/vector/filter/constSelectionVector.js.map +0 -1
- package/dist/vector/filter/flatSelectionVector.d.ts +0 -16
- package/dist/vector/filter/flatSelectionVector.js +0 -42
- package/dist/vector/filter/flatSelectionVector.js.map +0 -1
- package/dist/vector/filter/selectionVector.d.ts +0 -8
- package/dist/vector/filter/selectionVector.js +0 -3
- package/dist/vector/filter/selectionVector.js.map +0 -1
- package/dist/vector/filter/selectionVectorUtils.d.ts +0 -7
- package/dist/vector/filter/selectionVectorUtils.js +0 -44
- package/dist/vector/filter/selectionVectorUtils.js.map +0 -1
- package/dist/vector/filter/sequenceSelectionVector.d.ts +0 -0
- package/dist/vector/filter/sequenceSelectionVector.js +0 -1
- package/dist/vector/filter/sequenceSelectionVector.js.map +0 -1
- package/dist/vector/geometry/point.d.ts +0 -195
- package/dist/vector/geometry/point.js +0 -308
- package/dist/vector/geometry/point.js.map +0 -1
- /package/dist/{encodings → decoding}/decodingUtils.d.ts +0 -0
- /package/dist/{encodings → decoding}/fsstDecoder.d.ts +0 -0
- /package/dist/{encodings → decoding}/geometryDecoder.d.ts +0 -0
- /package/dist/{encodings → decoding}/geometryScaling.d.ts +0 -0
- /package/dist/{encodings → decoding}/intWrapper.d.ts +0 -0
|
@@ -1,88 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.LongConstVector = void 0;
|
|
7
|
-
const flatSelectionVector_1 = require("../filter/flatSelectionVector");
|
|
8
|
-
const vector_1 = __importDefault(require("../vector"));
|
|
9
|
-
const selectionVectorUtils_1 = require("../filter/selectionVectorUtils");
|
|
10
|
-
class LongConstVector extends vector_1.default {
|
|
1
|
+
import Vector from "../vector";
|
|
2
|
+
export class LongConstVector extends Vector {
|
|
11
3
|
constructor(name, value, sizeOrNullabilityBuffer) {
|
|
12
4
|
super(name, BigInt64Array.of(value), sizeOrNullabilityBuffer);
|
|
13
5
|
}
|
|
14
|
-
filter(value) {
|
|
15
|
-
const vectorValue = this.dataBuffer[0];
|
|
16
|
-
if (vectorValue !== value) {
|
|
17
|
-
return new flatSelectionVector_1.FlatSelectionVector([]);
|
|
18
|
-
}
|
|
19
|
-
return (0, selectionVectorUtils_1.createNullableSelectionVector)(this.size, this.nullabilityBuffer);
|
|
20
|
-
}
|
|
21
|
-
match(values) {
|
|
22
|
-
const vectorValue = this.dataBuffer[0];
|
|
23
|
-
if (!values.includes(vectorValue)) {
|
|
24
|
-
return new flatSelectionVector_1.FlatSelectionVector([]);
|
|
25
|
-
}
|
|
26
|
-
return (0, selectionVectorUtils_1.createNullableSelectionVector)(this.size, this.nullabilityBuffer);
|
|
27
|
-
}
|
|
28
|
-
filterSelected(value, selectionVector) {
|
|
29
|
-
const vectorValue = this.dataBuffer[0];
|
|
30
|
-
if (vectorValue !== value) {
|
|
31
|
-
selectionVector.setLimit(0);
|
|
32
|
-
return;
|
|
33
|
-
}
|
|
34
|
-
(0, selectionVectorUtils_1.updateNullableSelectionVector)(selectionVector, this.nullabilityBuffer);
|
|
35
|
-
}
|
|
36
|
-
matchSelected(values, selectionVector) {
|
|
37
|
-
const vectorValue = this.dataBuffer[0];
|
|
38
|
-
if (!values.includes(vectorValue)) {
|
|
39
|
-
selectionVector.setLimit(0);
|
|
40
|
-
return;
|
|
41
|
-
}
|
|
42
|
-
(0, selectionVectorUtils_1.updateNullableSelectionVector)(selectionVector, this.nullabilityBuffer);
|
|
43
|
-
}
|
|
44
6
|
getValueFromBuffer(index) {
|
|
45
7
|
return this.dataBuffer[0];
|
|
46
8
|
}
|
|
47
|
-
greaterThanOrEqualTo(value) {
|
|
48
|
-
return this.dataBuffer[0] >= value
|
|
49
|
-
? (0, selectionVectorUtils_1.createNullableSelectionVector)(this.size, this.nullabilityBuffer)
|
|
50
|
-
: new flatSelectionVector_1.FlatSelectionVector([]);
|
|
51
|
-
}
|
|
52
|
-
greaterThanOrEqualToSelected(value, selectionVector) {
|
|
53
|
-
if (this.dataBuffer[0] >= value) {
|
|
54
|
-
(0, selectionVectorUtils_1.updateNullableSelectionVector)(selectionVector, this.nullabilityBuffer);
|
|
55
|
-
return;
|
|
56
|
-
}
|
|
57
|
-
selectionVector.setLimit(0);
|
|
58
|
-
}
|
|
59
|
-
smallerThanOrEqualTo(value) {
|
|
60
|
-
return this.dataBuffer[0] <= value
|
|
61
|
-
? (0, selectionVectorUtils_1.createNullableSelectionVector)(this.size, this.nullabilityBuffer)
|
|
62
|
-
: new flatSelectionVector_1.FlatSelectionVector([]);
|
|
63
|
-
}
|
|
64
|
-
smallerThanOrEqualToSelected(value, selectionVector) {
|
|
65
|
-
if (this.dataBuffer[0] <= value) {
|
|
66
|
-
(0, selectionVectorUtils_1.updateNullableSelectionVector)(selectionVector, this.nullabilityBuffer);
|
|
67
|
-
return;
|
|
68
|
-
}
|
|
69
|
-
selectionVector.setLimit(0);
|
|
70
|
-
}
|
|
71
|
-
filterNotEqual(value) {
|
|
72
|
-
return this.dataBuffer[0] !== value ? (0, selectionVectorUtils_1.createSelectionVector)(this.size) : new flatSelectionVector_1.FlatSelectionVector([]);
|
|
73
|
-
}
|
|
74
|
-
filterNotEqualSelected(value, selectionVector) {
|
|
75
|
-
if (this.dataBuffer[0] !== value) {
|
|
76
|
-
return;
|
|
77
|
-
}
|
|
78
|
-
selectionVector.setLimit(0);
|
|
79
|
-
}
|
|
80
|
-
noneMatch(values) {
|
|
81
|
-
throw new Error("Not implemented yet.");
|
|
82
|
-
}
|
|
83
|
-
noneMatchSelected(values, selectionVector) {
|
|
84
|
-
throw new Error("Not implemented yet.");
|
|
85
|
-
}
|
|
86
9
|
}
|
|
87
|
-
exports.LongConstVector = LongConstVector;
|
|
88
10
|
//# sourceMappingURL=longConstVector.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"longConstVector.js","sourceRoot":"","sources":["../../../src/vector/constant/longConstVector.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"longConstVector.js","sourceRoot":"","sources":["../../../src/vector/constant/longConstVector.ts"],"names":[],"mappings":"AACA,OAAO,MAAM,MAAM,WAAW,CAAC;AAE/B,MAAM,OAAO,eAAgB,SAAQ,MAA6B;IAC9D,YAAmB,IAAY,EAAE,KAAa,EAAE,uBAA2C;QACvF,KAAK,CAAC,IAAI,EAAE,aAAa,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,uBAAuB,CAAC,CAAC;IAClE,CAAC;IAES,kBAAkB,CAAC,KAAa;QACtC,OAAO,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;IAC9B,CAAC;CACJ"}
|
|
@@ -1,22 +1,8 @@
|
|
|
1
1
|
import { VariableSizeVector } from "../variableSizeVector";
|
|
2
2
|
import type BitVector from "../flat/bitVector";
|
|
3
|
-
import { type SelectionVector } from "../filter/selectionVector";
|
|
4
3
|
export declare class StringDictionaryVector extends VariableSizeVector<Uint8Array, string> {
|
|
5
4
|
private readonly indexBuffer;
|
|
6
5
|
private readonly textEncoder;
|
|
7
6
|
constructor(name: string, indexBuffer: Int32Array, offsetBuffer: Int32Array, dictionaryBuffer: Uint8Array, nullabilityBuffer?: BitVector);
|
|
8
7
|
protected getValueFromBuffer(index: number): string;
|
|
9
|
-
filter(testValue: string): SelectionVector;
|
|
10
|
-
match(testValues: string[]): SelectionVector;
|
|
11
|
-
filterSelected(testValue: string, selectionVector: SelectionVector): void;
|
|
12
|
-
matchSelected(testValues: string[], selectionVector: SelectionVector): void;
|
|
13
|
-
filterNotEqual(testValue: string): SelectionVector;
|
|
14
|
-
filterNotEqualSelected(testValue: string, selectionVector: SelectionVector): void;
|
|
15
|
-
noneMatch(testValues: string[]): SelectionVector;
|
|
16
|
-
noneMatchSelected(testValues: string[], selectionVector: SelectionVector): void;
|
|
17
|
-
greaterThanOrEqualTo(value: string): SelectionVector;
|
|
18
|
-
greaterThanOrEqualToSelected(value: string, selectionVector: SelectionVector): void;
|
|
19
|
-
smallerThanOrEqualTo(value: string): SelectionVector;
|
|
20
|
-
smallerThanOrEqualToSelected(value: string, selectionVector: SelectionVector): void;
|
|
21
|
-
private findDictionaryIndex;
|
|
22
8
|
}
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const flatSelectionVector_1 = require("../filter/flatSelectionVector");
|
|
7
|
-
const selectionVectorUtils_1 = require("../filter/selectionVectorUtils");
|
|
8
|
-
class StringDictionaryVector extends variableSizeVector_1.VariableSizeVector {
|
|
1
|
+
import { VariableSizeVector } from "../variableSizeVector";
|
|
2
|
+
import { decodeString } from "../../decoding/decodingUtils";
|
|
3
|
+
export class StringDictionaryVector extends VariableSizeVector {
|
|
4
|
+
indexBuffer;
|
|
5
|
+
textEncoder;
|
|
9
6
|
constructor(name, indexBuffer, offsetBuffer, dictionaryBuffer, nullabilityBuffer) {
|
|
10
7
|
super(name, offsetBuffer, dictionaryBuffer, nullabilityBuffer ?? indexBuffer.length);
|
|
11
8
|
this.indexBuffer = indexBuffer;
|
|
@@ -16,176 +13,7 @@ class StringDictionaryVector extends variableSizeVector_1.VariableSizeVector {
|
|
|
16
13
|
const offset = this.indexBuffer[index];
|
|
17
14
|
const start = this.offsetBuffer[offset];
|
|
18
15
|
const end = this.offsetBuffer[offset + 1];
|
|
19
|
-
return
|
|
20
|
-
}
|
|
21
|
-
filter(testValue) {
|
|
22
|
-
const selectionVector = [];
|
|
23
|
-
const testValueUtf8 = this.textEncoder.encode(testValue);
|
|
24
|
-
const testValueDictionaryIndex = this.findDictionaryIndex(testValueUtf8);
|
|
25
|
-
if (testValueDictionaryIndex === -1) {
|
|
26
|
-
return new flatSelectionVector_1.FlatSelectionVector([]);
|
|
27
|
-
}
|
|
28
|
-
for (let i = 0; i < this.indexBuffer.length; i++) {
|
|
29
|
-
if ((!this.nullabilityBuffer || this.nullabilityBuffer.get(i)) &&
|
|
30
|
-
this.indexBuffer[i] === testValueDictionaryIndex) {
|
|
31
|
-
selectionVector.push(i);
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
return new flatSelectionVector_1.FlatSelectionVector(selectionVector);
|
|
35
|
-
}
|
|
36
|
-
match(testValues) {
|
|
37
|
-
const selectionVector = [];
|
|
38
|
-
const testValuesDictionaryIndices = testValues
|
|
39
|
-
.map((v) => this.findDictionaryIndex(this.textEncoder.encode(v)))
|
|
40
|
-
.filter((i) => i !== -1);
|
|
41
|
-
if (testValuesDictionaryIndices.length === 0) {
|
|
42
|
-
return new flatSelectionVector_1.FlatSelectionVector([]);
|
|
43
|
-
}
|
|
44
|
-
//TODO: sort and use binary search?
|
|
45
|
-
for (let i = 0; i < this.size; i++) {
|
|
46
|
-
const valueDictionaryIndex = this.indexBuffer[i];
|
|
47
|
-
if ((!this.nullabilityBuffer || this.nullabilityBuffer.get(i)) &&
|
|
48
|
-
testValuesDictionaryIndices.includes(valueDictionaryIndex)) {
|
|
49
|
-
selectionVector.push(i);
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
return new flatSelectionVector_1.FlatSelectionVector(selectionVector);
|
|
53
|
-
}
|
|
54
|
-
filterSelected(testValue, selectionVector) {
|
|
55
|
-
const testValueUtf8 = this.textEncoder.encode(testValue);
|
|
56
|
-
const testValueDictionaryIndex = this.findDictionaryIndex(testValueUtf8);
|
|
57
|
-
if (testValueDictionaryIndex === -1) {
|
|
58
|
-
selectionVector.setLimit(0);
|
|
59
|
-
return;
|
|
60
|
-
}
|
|
61
|
-
const vector = selectionVector.selectionValues();
|
|
62
|
-
let limit = 0;
|
|
63
|
-
for (let i = 0; i < selectionVector.limit; i++) {
|
|
64
|
-
const featureIndex = vector[i];
|
|
65
|
-
if ((!this.nullabilityBuffer || this.nullabilityBuffer.get(featureIndex)) &&
|
|
66
|
-
this.indexBuffer[featureIndex] === testValueDictionaryIndex) {
|
|
67
|
-
vector[limit++] = featureIndex;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
selectionVector.setLimit(limit);
|
|
71
|
-
}
|
|
72
|
-
matchSelected(testValues, selectionVector) {
|
|
73
|
-
const testValuesDictionaryIndices = testValues
|
|
74
|
-
.map((v) => this.findDictionaryIndex(this.textEncoder.encode(v)))
|
|
75
|
-
.filter((i) => i !== -1);
|
|
76
|
-
if (testValuesDictionaryIndices.length === 0) {
|
|
77
|
-
selectionVector.setLimit(0);
|
|
78
|
-
return;
|
|
79
|
-
}
|
|
80
|
-
//TODO: sort and use binary search?
|
|
81
|
-
const vector = selectionVector.selectionValues();
|
|
82
|
-
let limit = 0;
|
|
83
|
-
for (let i = 0; i < selectionVector.limit; i++) {
|
|
84
|
-
const featureIndex = vector[i];
|
|
85
|
-
if ((!this.nullabilityBuffer || this.nullabilityBuffer.get(featureIndex)) &&
|
|
86
|
-
testValuesDictionaryIndices.includes(this.indexBuffer[featureIndex])) {
|
|
87
|
-
vector[limit++] = featureIndex;
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
selectionVector.setLimit(limit);
|
|
91
|
-
}
|
|
92
|
-
filterNotEqual(testValue) {
|
|
93
|
-
const selectionVector = [];
|
|
94
|
-
const testValueUtf8 = this.textEncoder.encode(testValue);
|
|
95
|
-
const testValueDictionaryIndex = this.findDictionaryIndex(testValueUtf8);
|
|
96
|
-
if (testValueDictionaryIndex === -1) {
|
|
97
|
-
return (0, selectionVectorUtils_1.createSelectionVector)(this.size);
|
|
98
|
-
}
|
|
99
|
-
for (let i = 0; i < this.indexBuffer.length; i++) {
|
|
100
|
-
if ((this.nullabilityBuffer && !this.nullabilityBuffer.get(i)) ||
|
|
101
|
-
this.indexBuffer[i] !== testValueDictionaryIndex) {
|
|
102
|
-
selectionVector.push(i);
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
return new flatSelectionVector_1.FlatSelectionVector(selectionVector);
|
|
106
|
-
}
|
|
107
|
-
filterNotEqualSelected(testValue, selectionVector) {
|
|
108
|
-
const testValueUtf8 = this.textEncoder.encode(testValue);
|
|
109
|
-
const testValueDictionaryIndex = this.findDictionaryIndex(testValueUtf8);
|
|
110
|
-
if (testValueDictionaryIndex === -1) {
|
|
111
|
-
return;
|
|
112
|
-
}
|
|
113
|
-
const vector = selectionVector.selectionValues();
|
|
114
|
-
let limit = 0;
|
|
115
|
-
for (let i = 0; i < selectionVector.limit; i++) {
|
|
116
|
-
const featureIndex = vector[i];
|
|
117
|
-
if ((this.nullabilityBuffer && !this.nullabilityBuffer.get(featureIndex)) ||
|
|
118
|
-
this.indexBuffer[featureIndex] !== testValueDictionaryIndex) {
|
|
119
|
-
vector[limit++] = featureIndex;
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
selectionVector.setLimit(limit);
|
|
123
|
-
}
|
|
124
|
-
noneMatch(testValues) {
|
|
125
|
-
const testValuesDictionaryIndices = testValues
|
|
126
|
-
.map((v) => this.findDictionaryIndex(this.textEncoder.encode(v)))
|
|
127
|
-
.filter((i) => i !== -1);
|
|
128
|
-
if (testValuesDictionaryIndices.length === 0) {
|
|
129
|
-
return (0, selectionVectorUtils_1.createSelectionVector)(this.size);
|
|
130
|
-
}
|
|
131
|
-
//TODO: sort and use binary search?
|
|
132
|
-
for (let i = 0; i < this.size; i++) {
|
|
133
|
-
const valueDictionaryIndex = this.indexBuffer[i];
|
|
134
|
-
const selectionVector = [];
|
|
135
|
-
if ((this.nullabilityBuffer && !this.nullabilityBuffer.get(i)) ||
|
|
136
|
-
!testValuesDictionaryIndices.includes(valueDictionaryIndex)) {
|
|
137
|
-
selectionVector.push(i);
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
return new flatSelectionVector_1.FlatSelectionVector([]);
|
|
141
|
-
}
|
|
142
|
-
noneMatchSelected(testValues, selectionVector) {
|
|
143
|
-
const testValuesDictionaryIndices = testValues
|
|
144
|
-
.map((v) => this.findDictionaryIndex(this.textEncoder.encode(v)))
|
|
145
|
-
.filter((i) => i !== -1);
|
|
146
|
-
if (testValuesDictionaryIndices.length === 0) {
|
|
147
|
-
return;
|
|
148
|
-
}
|
|
149
|
-
//TODO: sort and use binary search?
|
|
150
|
-
const vector = selectionVector.selectionValues();
|
|
151
|
-
let limit = 0;
|
|
152
|
-
for (let i = 0; i < selectionVector.limit; i++) {
|
|
153
|
-
const featureIndex = vector[i];
|
|
154
|
-
if ((this.nullabilityBuffer && !this.nullabilityBuffer.get(featureIndex)) ||
|
|
155
|
-
!testValuesDictionaryIndices.includes(this.indexBuffer[featureIndex])) {
|
|
156
|
-
vector[limit++] = featureIndex;
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
selectionVector.setLimit(limit);
|
|
160
|
-
}
|
|
161
|
-
greaterThanOrEqualTo(value) {
|
|
162
|
-
throw new Error("Not implemented yet.");
|
|
163
|
-
}
|
|
164
|
-
greaterThanOrEqualToSelected(value, selectionVector) {
|
|
165
|
-
throw new Error("Not implemented yet.");
|
|
166
|
-
}
|
|
167
|
-
smallerThanOrEqualTo(value) {
|
|
168
|
-
throw new Error("Not implemented yet.");
|
|
169
|
-
}
|
|
170
|
-
smallerThanOrEqualToSelected(value, selectionVector) {
|
|
171
|
-
throw new Error("Not implemented yet.");
|
|
172
|
-
}
|
|
173
|
-
findDictionaryIndex(testValue) {
|
|
174
|
-
const testValueLength = testValue.length;
|
|
175
|
-
//TODO: use binary search if sorted
|
|
176
|
-
for (let i = 1; i <= this.size; i++) {
|
|
177
|
-
const valueLength = this.offsetBuffer[i] - this.offsetBuffer[i - 1];
|
|
178
|
-
if (valueLength !== testValueLength) {
|
|
179
|
-
continue;
|
|
180
|
-
}
|
|
181
|
-
const value = this.dataBuffer.subarray(this.offsetBuffer[i - 1], this.offsetBuffer[i]);
|
|
182
|
-
//TODO: get rid of every
|
|
183
|
-
if (value.every((val, idx) => val === testValue[idx])) {
|
|
184
|
-
return i - 1;
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
return -1;
|
|
16
|
+
return decodeString(this.dataBuffer, start, end);
|
|
188
17
|
}
|
|
189
18
|
}
|
|
190
|
-
exports.StringDictionaryVector = StringDictionaryVector;
|
|
191
19
|
//# sourceMappingURL=stringDictionaryVector.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stringDictionaryVector.js","sourceRoot":"","sources":["../../../src/vector/dictionary/stringDictionaryVector.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"stringDictionaryVector.js","sourceRoot":"","sources":["../../../src/vector/dictionary/stringDictionaryVector.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAE3D,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAE5D,MAAM,OAAO,sBAAuB,SAAQ,kBAAsC;IAKzD;IAJJ,WAAW,CAAc;IAE1C,YACI,IAAY,EACK,WAAuB,EACxC,YAAwB,EACxB,gBAA4B,EAC5B,iBAA6B;QAE7B,KAAK,CAAC,IAAI,EAAE,YAAY,EAAE,gBAAgB,EAAE,iBAAiB,IAAI,WAAW,CAAC,MAAM,CAAC,CAAC;QALpE,gBAAW,GAAX,WAAW,CAAY;QAMxC,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,WAAW,GAAG,IAAI,WAAW,EAAE,CAAC;IACzC,CAAC;IAES,kBAAkB,CAAC,KAAa;QACtC,MAAM,MAAM,GAAG,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;QACvC,MAAM,KAAK,GAAG,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC;QACxC,MAAM,GAAG,GAAG,IAAI,CAAC,YAAY,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;QAC1C,OAAO,YAAY,CAAC,IAAI,CAAC,UAAU,EAAE,KAAK,EAAE,GAAG,CAAC,CAAC;IACrD,CAAC;CACJ"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type Geometry, type GeometryVector } from "./geometry/geometryVector";
|
|
2
2
|
import type Vector from "./vector";
|
|
3
3
|
import { type IntVector } from "./intVector";
|
|
4
|
+
import { type GpuVector } from "./geometry/gpuVector";
|
|
4
5
|
export interface Feature {
|
|
5
6
|
id: number | bigint;
|
|
6
7
|
geometry: Geometry;
|
|
@@ -15,14 +16,18 @@ export default class FeatureTable implements Iterable<Feature> {
|
|
|
15
16
|
private readonly _propertyVectors?;
|
|
16
17
|
private readonly _extent;
|
|
17
18
|
private propertyVectorsMap;
|
|
18
|
-
constructor(_name: string, _geometryVector: GeometryVector, _idVector?: IntVector, _propertyVectors?: Vector[], _extent?: number);
|
|
19
|
+
constructor(_name: string, _geometryVector: GeometryVector | GpuVector, _idVector?: IntVector, _propertyVectors?: Vector[], _extent?: number);
|
|
19
20
|
get name(): string;
|
|
20
21
|
get idVector(): IntVector;
|
|
21
|
-
get geometryVector(): GeometryVector;
|
|
22
|
+
get geometryVector(): GeometryVector | GpuVector;
|
|
22
23
|
get propertyVectors(): Vector[];
|
|
23
24
|
getPropertyVector(name: string): Vector;
|
|
24
25
|
[Symbol.iterator](): Iterator<Feature>;
|
|
25
26
|
get numFeatures(): number;
|
|
26
27
|
get extent(): number;
|
|
28
|
+
/**
|
|
29
|
+
* Returns all features as an array
|
|
30
|
+
*/
|
|
31
|
+
getFeatures(): Feature[];
|
|
27
32
|
private containsMaxSaveIntegerValues;
|
|
28
33
|
}
|
|
@@ -1,10 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { IntFlatVector } from "./flat/intFlatVector";
|
|
2
|
+
import { DoubleFlatVector } from "./flat/doubleFlatVector";
|
|
3
|
+
import { IntSequenceVector } from "./sequence/intSequenceVector";
|
|
4
|
+
import { IntConstVector } from "./constant/intConstVector";
|
|
5
|
+
export default class FeatureTable {
|
|
6
|
+
_name;
|
|
7
|
+
_geometryVector;
|
|
8
|
+
_idVector;
|
|
9
|
+
_propertyVectors;
|
|
10
|
+
_extent;
|
|
11
|
+
propertyVectorsMap;
|
|
8
12
|
constructor(_name, _geometryVector, _idVector, _propertyVectors, _extent = 4096) {
|
|
9
13
|
this._name = _name;
|
|
10
14
|
this._geometryVector = _geometryVector;
|
|
@@ -62,11 +66,41 @@ class FeatureTable {
|
|
|
62
66
|
get extent() {
|
|
63
67
|
return this._extent;
|
|
64
68
|
}
|
|
69
|
+
/**
|
|
70
|
+
* Returns all features as an array
|
|
71
|
+
*/
|
|
72
|
+
getFeatures() {
|
|
73
|
+
const features = [];
|
|
74
|
+
const geometries = this.geometryVector.getGeometries();
|
|
75
|
+
for (let i = 0; i < this.numFeatures; i++) {
|
|
76
|
+
let id;
|
|
77
|
+
if (this.idVector) {
|
|
78
|
+
id = this.containsMaxSaveIntegerValues(this.idVector)
|
|
79
|
+
? Number(this.idVector.getValue(i))
|
|
80
|
+
: this.idVector.getValue(i);
|
|
81
|
+
}
|
|
82
|
+
const geometry = {
|
|
83
|
+
coordinates: geometries[i],
|
|
84
|
+
type: this.geometryVector.geometryType(i),
|
|
85
|
+
};
|
|
86
|
+
const properties = {};
|
|
87
|
+
for (const propertyColumn of this.propertyVectors) {
|
|
88
|
+
if (!propertyColumn)
|
|
89
|
+
continue;
|
|
90
|
+
const columnName = propertyColumn.name;
|
|
91
|
+
const propertyValue = propertyColumn.getValue(i);
|
|
92
|
+
if (propertyValue !== null) {
|
|
93
|
+
properties[columnName] = propertyValue;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
features.push({ id, geometry, properties });
|
|
97
|
+
}
|
|
98
|
+
return features;
|
|
99
|
+
}
|
|
65
100
|
containsMaxSaveIntegerValues(intVector) {
|
|
66
|
-
return (intVector instanceof
|
|
67
|
-
(intVector instanceof
|
|
68
|
-
intVector instanceof
|
|
101
|
+
return (intVector instanceof IntFlatVector ||
|
|
102
|
+
(intVector instanceof IntConstVector && intVector instanceof IntSequenceVector) ||
|
|
103
|
+
intVector instanceof DoubleFlatVector);
|
|
69
104
|
}
|
|
70
105
|
}
|
|
71
|
-
exports.default = FeatureTable;
|
|
72
106
|
//# sourceMappingURL=featureTable.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"featureTable.js","sourceRoot":"","sources":["../../src/vector/featureTable.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"featureTable.js","sourceRoot":"","sources":["../../src/vector/featureTable.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC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mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.FixedSizeVector = void 0;
|
|
7
|
-
const vector_1 = __importDefault(require("./vector"));
|
|
8
|
-
class FixedSizeVector extends vector_1.default {
|
|
1
|
+
import Vector from "./vector";
|
|
2
|
+
export class FixedSizeVector extends Vector {
|
|
9
3
|
}
|
|
10
|
-
exports.FixedSizeVector = FixedSizeVector;
|
|
11
4
|
//# sourceMappingURL=fixedSizeVector.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fixedSizeVector.js","sourceRoot":"","sources":["../../src/vector/fixedSizeVector.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"fixedSizeVector.js","sourceRoot":"","sources":["../../src/vector/fixedSizeVector.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,UAAU,CAAC;AAE9B,MAAM,OAAgB,eAA8C,SAAQ,MAAY;CAAG"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
export default class BitVector {
|
|
2
|
+
values;
|
|
3
|
+
_size;
|
|
4
4
|
/**
|
|
5
5
|
* @param values The byte buffer containing the bit values in least-significant bit (LSB)
|
|
6
6
|
* numbering
|
|
@@ -34,5 +34,4 @@ class BitVector {
|
|
|
34
34
|
return this.values;
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
|
-
exports.default = BitVector;
|
|
38
37
|
//# sourceMappingURL=bitVector.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bitVector.js","sourceRoot":"","sources":["../../../src/vector/flat/bitVector.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"bitVector.js","sourceRoot":"","sources":["../../../src/vector/flat/bitVector.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,OAAO,SAAS;IACT,MAAM,CAAa;IACnB,KAAK,CAAS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IACvB,CAAC;CACJ"}
|
|
@@ -1,20 +1,7 @@
|
|
|
1
1
|
import type BitVector from "./bitVector";
|
|
2
2
|
import Vector from "../vector";
|
|
3
|
-
import { type SelectionVector } from "../filter/selectionVector";
|
|
4
3
|
export declare class BooleanFlatVector extends Vector<Uint8Array, boolean> {
|
|
5
4
|
private readonly dataVector;
|
|
6
5
|
constructor(name: string, dataVector: BitVector, sizeOrNullabilityBuffer: number | BitVector);
|
|
7
6
|
protected getValueFromBuffer(index: number): boolean;
|
|
8
|
-
filter(value: boolean): SelectionVector;
|
|
9
|
-
match(values: boolean[]): SelectionVector;
|
|
10
|
-
filterSelected(value: boolean, selectionVector: SelectionVector): void;
|
|
11
|
-
matchSelected(values: boolean[], selectionVector: SelectionVector): void;
|
|
12
|
-
filterNotEqual(value: boolean): SelectionVector;
|
|
13
|
-
filterNotEqualSelected(value: boolean, selectionVector: SelectionVector): void;
|
|
14
|
-
greaterThanOrEqualTo(value: boolean): SelectionVector;
|
|
15
|
-
greaterThanOrEqualToSelected(value: boolean, selectionVector: SelectionVector): void;
|
|
16
|
-
noneMatch(values: boolean[]): SelectionVector;
|
|
17
|
-
noneMatchSelected(values: boolean[], selectionVector: SelectionVector): void;
|
|
18
|
-
smallerThanOrEqualTo(value: boolean): SelectionVector;
|
|
19
|
-
smallerThanOrEqualToSelected(value: boolean, selectionVector: SelectionVector): void;
|
|
20
7
|
}
|
|
@@ -1,11 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.BooleanFlatVector = void 0;
|
|
7
|
-
const vector_1 = __importDefault(require("../vector"));
|
|
8
|
-
class BooleanFlatVector extends vector_1.default {
|
|
1
|
+
import Vector from "../vector";
|
|
2
|
+
export class BooleanFlatVector extends Vector {
|
|
3
|
+
dataVector;
|
|
9
4
|
constructor(name, dataVector, sizeOrNullabilityBuffer) {
|
|
10
5
|
super(name, dataVector.getBuffer(), sizeOrNullabilityBuffer);
|
|
11
6
|
this.dataVector = dataVector;
|
|
@@ -13,42 +8,5 @@ class BooleanFlatVector extends vector_1.default {
|
|
|
13
8
|
getValueFromBuffer(index) {
|
|
14
9
|
return this.dataVector.get(index);
|
|
15
10
|
}
|
|
16
|
-
filter(value) {
|
|
17
|
-
throw new Error("Not implemented yet.");
|
|
18
|
-
}
|
|
19
|
-
match(values) {
|
|
20
|
-
throw new Error("Not implemented yet.");
|
|
21
|
-
}
|
|
22
|
-
filterSelected(value, selectionVector) {
|
|
23
|
-
throw new Error("Not implemented yet.");
|
|
24
|
-
}
|
|
25
|
-
matchSelected(values, selectionVector) {
|
|
26
|
-
throw new Error("Not implemented yet.");
|
|
27
|
-
}
|
|
28
|
-
filterNotEqual(value) {
|
|
29
|
-
throw new Error("Not implemented yet.");
|
|
30
|
-
}
|
|
31
|
-
filterNotEqualSelected(value, selectionVector) {
|
|
32
|
-
throw new Error("Not implemented yet.");
|
|
33
|
-
}
|
|
34
|
-
greaterThanOrEqualTo(value) {
|
|
35
|
-
throw new Error("Not implemented yet.");
|
|
36
|
-
}
|
|
37
|
-
greaterThanOrEqualToSelected(value, selectionVector) {
|
|
38
|
-
throw new Error("Not implemented yet.");
|
|
39
|
-
}
|
|
40
|
-
noneMatch(values) {
|
|
41
|
-
throw new Error("Not implemented yet.");
|
|
42
|
-
}
|
|
43
|
-
noneMatchSelected(values, selectionVector) {
|
|
44
|
-
throw new Error("Not implemented yet.");
|
|
45
|
-
}
|
|
46
|
-
smallerThanOrEqualTo(value) {
|
|
47
|
-
throw new Error("Not implemented yet.");
|
|
48
|
-
}
|
|
49
|
-
smallerThanOrEqualToSelected(value, selectionVector) {
|
|
50
|
-
throw new Error("Not implemented yet.");
|
|
51
|
-
}
|
|
52
11
|
}
|
|
53
|
-
exports.BooleanFlatVector = BooleanFlatVector;
|
|
54
12
|
//# sourceMappingURL=booleanFlatVector.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"booleanFlatVector.js","sourceRoot":"","sources":["../../../src/vector/flat/booleanFlatVector.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"booleanFlatVector.js","sourceRoot":"","sources":["../../../src/vector/flat/booleanFlatVector.ts"],"names":[],"mappings":"AACA,OAAO,MAAM,MAAM,WAAW,CAAC;AAE/B,MAAM,OAAO,iBAAkB,SAAQ,MAA2B;IAC7C,UAAU,CAAY;IAEvC,YAAY,IAAY,EAAE,UAAqB,EAAE,uBAA2C;QACxF,KAAK,CAAC,IAAI,EAAE,UAAU,CAAC,SAAS,EAAE,EAAE,uBAAuB,CAAC,CAAC;QAC7D,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;IACjC,CAAC;IAES,kBAAkB,CAAC,KAAa;QACtC,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;IACtC,CAAC;CACJ"}
|
|
@@ -1,17 +1,4 @@
|
|
|
1
1
|
import { FixedSizeVector } from "../fixedSizeVector";
|
|
2
|
-
import { type SelectionVector } from "../filter/selectionVector";
|
|
3
2
|
export declare class DoubleFlatVector extends FixedSizeVector<Float64Array, number> {
|
|
4
3
|
protected getValueFromBuffer(index: number): number;
|
|
5
|
-
filter(testValue: number): SelectionVector;
|
|
6
|
-
match(testValues: number[]): SelectionVector;
|
|
7
|
-
filterSelected(testValue: number, selectionVector: SelectionVector): void;
|
|
8
|
-
matchSelected(testValues: number[], selectionVector: SelectionVector): void;
|
|
9
|
-
greaterThanOrEqualTo(value: number): SelectionVector;
|
|
10
|
-
greaterThanOrEqualToSelected(testValue: number, selectionVector: SelectionVector): void;
|
|
11
|
-
smallerThanOrEqualTo(value: number): SelectionVector;
|
|
12
|
-
smallerThanOrEqualToSelected(testValue: number, selectionVector: SelectionVector): void;
|
|
13
|
-
noneMatch(values: number[]): SelectionVector;
|
|
14
|
-
noneMatchSelected(values: number[], selectionVector: SelectionVector): void;
|
|
15
|
-
filterNotEqual(value: number): SelectionVector;
|
|
16
|
-
filterNotEqualSelected(value: number, selectionVector: SelectionVector): void;
|
|
17
4
|
}
|