@maplibre/mlt 0.0.1-alpha.9 → 1.0.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 +263 -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 +1 -1
- package/dist/decoding/stringDecoder.js +142 -0
- package/dist/decoding/stringDecoder.js.map +1 -0
- package/dist/decoding/stringDecoder.spec.d.ts +1 -0
- package/dist/decoding/stringDecoder.spec.js +311 -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 +1 -1
- package/dist/mltDecoder.js +58 -64
- 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 +10 -31
- 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,109 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.DoubleFlatVector = void 0;
|
|
4
|
-
const fixedSizeVector_1 = require("../fixedSizeVector");
|
|
5
|
-
const flatSelectionVector_1 = require("../filter/flatSelectionVector");
|
|
6
|
-
class DoubleFlatVector extends fixedSizeVector_1.FixedSizeVector {
|
|
1
|
+
import { FixedSizeVector } from "../fixedSizeVector";
|
|
2
|
+
export class DoubleFlatVector extends FixedSizeVector {
|
|
7
3
|
getValueFromBuffer(index) {
|
|
8
4
|
return this.dataBuffer[index];
|
|
9
5
|
}
|
|
10
|
-
filter(testValue) {
|
|
11
|
-
const selectionVector = [];
|
|
12
|
-
for (let i = 0; i < this.dataBuffer.length; i++) {
|
|
13
|
-
if ((!this.nullabilityBuffer || this.nullabilityBuffer.get(i)) && this.dataBuffer[i] === testValue) {
|
|
14
|
-
selectionVector.push(i);
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
return new flatSelectionVector_1.FlatSelectionVector(selectionVector);
|
|
18
|
-
}
|
|
19
|
-
match(testValues) {
|
|
20
|
-
const selectionVector = [];
|
|
21
|
-
for (let i = 0; i < this.dataBuffer.length; i++) {
|
|
22
|
-
for (let j = 0; j < testValues.length; j++) {
|
|
23
|
-
if ((!this.nullabilityBuffer || this.nullabilityBuffer.get(i)) &&
|
|
24
|
-
this.dataBuffer[i] === testValues[j]) {
|
|
25
|
-
selectionVector.push(i);
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
return new flatSelectionVector_1.FlatSelectionVector(selectionVector);
|
|
30
|
-
}
|
|
31
|
-
filterSelected(testValue, selectionVector) {
|
|
32
|
-
let limit = 0;
|
|
33
|
-
const vector = selectionVector.selectionValues();
|
|
34
|
-
for (let i = 0; i < selectionVector.limit; i++) {
|
|
35
|
-
const index = vector[i];
|
|
36
|
-
if ((!this.nullabilityBuffer || this.nullabilityBuffer.get(index)) &&
|
|
37
|
-
this.dataBuffer[index] === testValue) {
|
|
38
|
-
vector[limit++] = index;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
selectionVector.setLimit(limit);
|
|
42
|
-
}
|
|
43
|
-
matchSelected(testValues, selectionVector) {
|
|
44
|
-
let limit = 0;
|
|
45
|
-
const vector = selectionVector.selectionValues();
|
|
46
|
-
for (let i = 0; i < selectionVector.limit; i++) {
|
|
47
|
-
const index = vector[i];
|
|
48
|
-
if ((!this.nullabilityBuffer || this.nullabilityBuffer.get(index)) &&
|
|
49
|
-
testValues.includes(this.dataBuffer[index])) {
|
|
50
|
-
vector[limit++] = index;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
selectionVector.setLimit(limit);
|
|
54
|
-
}
|
|
55
|
-
greaterThanOrEqualTo(value) {
|
|
56
|
-
const selectionVector = [];
|
|
57
|
-
for (let i = 0; i < this.dataBuffer.length; i++) {
|
|
58
|
-
if ((!this.nullabilityBuffer || this.nullabilityBuffer.get(i)) && this.dataBuffer[i] >= value) {
|
|
59
|
-
selectionVector.push(i);
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
return new flatSelectionVector_1.FlatSelectionVector(selectionVector);
|
|
63
|
-
}
|
|
64
|
-
greaterThanOrEqualToSelected(testValue, selectionVector) {
|
|
65
|
-
let limit = 0;
|
|
66
|
-
const vector = selectionVector.selectionValues();
|
|
67
|
-
for (let i = 0; i < selectionVector.limit; i++) {
|
|
68
|
-
const index = vector[i];
|
|
69
|
-
if ((!this.nullabilityBuffer || this.nullabilityBuffer.get(index)) && this.dataBuffer[index] >= testValue) {
|
|
70
|
-
vector[limit++] = index;
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
selectionVector.setLimit(limit);
|
|
74
|
-
}
|
|
75
|
-
smallerThanOrEqualTo(value) {
|
|
76
|
-
const selectionVector = [];
|
|
77
|
-
for (let i = 0; i < this.dataBuffer.length; i++) {
|
|
78
|
-
if ((!this.nullabilityBuffer || this.nullabilityBuffer.get(i)) && this.dataBuffer[i] <= value) {
|
|
79
|
-
selectionVector.push(i);
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
return new flatSelectionVector_1.FlatSelectionVector(selectionVector);
|
|
83
|
-
}
|
|
84
|
-
smallerThanOrEqualToSelected(testValue, selectionVector) {
|
|
85
|
-
let limit = 0;
|
|
86
|
-
const vector = selectionVector.selectionValues();
|
|
87
|
-
for (let i = 0; i < selectionVector.limit; i++) {
|
|
88
|
-
const index = vector[i];
|
|
89
|
-
if ((!this.nullabilityBuffer || this.nullabilityBuffer.get(index)) && this.dataBuffer[index] <= testValue) {
|
|
90
|
-
vector[limit++] = index;
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
selectionVector.setLimit(limit);
|
|
94
|
-
}
|
|
95
|
-
noneMatch(values) {
|
|
96
|
-
throw new Error("Not implemented yet.");
|
|
97
|
-
}
|
|
98
|
-
noneMatchSelected(values, selectionVector) {
|
|
99
|
-
throw new Error("Not implemented yet.");
|
|
100
|
-
}
|
|
101
|
-
filterNotEqual(value) {
|
|
102
|
-
throw new Error("Not implemented yet.");
|
|
103
|
-
}
|
|
104
|
-
filterNotEqualSelected(value, selectionVector) {
|
|
105
|
-
throw new Error("Not implemented yet.");
|
|
106
|
-
}
|
|
107
6
|
}
|
|
108
|
-
exports.DoubleFlatVector = DoubleFlatVector;
|
|
109
7
|
//# sourceMappingURL=doubleFlatVector.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"doubleFlatVector.js","sourceRoot":"","sources":["../../../src/vector/flat/doubleFlatVector.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"doubleFlatVector.js","sourceRoot":"","sources":["../../../src/vector/flat/doubleFlatVector.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD,MAAM,OAAO,gBAAiB,SAAQ,eAAqC;IAC7D,kBAAkB,CAAC,KAAa;QACtC,OAAO,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;IAClC,CAAC;CACJ"}
|
|
@@ -1,17 +1,4 @@
|
|
|
1
1
|
import { FixedSizeVector } from "../fixedSizeVector";
|
|
2
|
-
import { type SelectionVector } from "../filter/selectionVector";
|
|
3
2
|
export declare class FloatFlatVector extends FixedSizeVector<Float32Array, 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
|
}
|
|
@@ -1,109 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.FloatFlatVector = void 0;
|
|
4
|
-
const fixedSizeVector_1 = require("../fixedSizeVector");
|
|
5
|
-
const flatSelectionVector_1 = require("../filter/flatSelectionVector");
|
|
6
|
-
class FloatFlatVector extends fixedSizeVector_1.FixedSizeVector {
|
|
1
|
+
import { FixedSizeVector } from "../fixedSizeVector";
|
|
2
|
+
export class FloatFlatVector extends FixedSizeVector {
|
|
7
3
|
getValueFromBuffer(index) {
|
|
8
4
|
return this.dataBuffer[index];
|
|
9
5
|
}
|
|
10
|
-
filter(testValue) {
|
|
11
|
-
const selectionVector = [];
|
|
12
|
-
for (let i = 0; i < this.dataBuffer.length; i++) {
|
|
13
|
-
if ((!this.nullabilityBuffer || this.nullabilityBuffer.get(i)) && this.dataBuffer[i] === testValue) {
|
|
14
|
-
selectionVector.push(i);
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
return new flatSelectionVector_1.FlatSelectionVector(selectionVector);
|
|
18
|
-
}
|
|
19
|
-
match(testValues) {
|
|
20
|
-
const selectionVector = [];
|
|
21
|
-
for (let i = 0; i < this.dataBuffer.length; i++) {
|
|
22
|
-
for (let j = 0; j < testValues.length; j++) {
|
|
23
|
-
if ((!this.nullabilityBuffer || this.nullabilityBuffer.get(i)) &&
|
|
24
|
-
this.dataBuffer[i] === testValues[j]) {
|
|
25
|
-
selectionVector.push(i);
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
return new flatSelectionVector_1.FlatSelectionVector(selectionVector);
|
|
30
|
-
}
|
|
31
|
-
filterSelected(testValue, selectionVector) {
|
|
32
|
-
let limit = 0;
|
|
33
|
-
const vector = selectionVector.selectionValues();
|
|
34
|
-
for (let i = 0; i < selectionVector.limit; i++) {
|
|
35
|
-
const index = vector[i];
|
|
36
|
-
if ((!this.nullabilityBuffer || this.nullabilityBuffer.get(index)) &&
|
|
37
|
-
this.dataBuffer[index] === testValue) {
|
|
38
|
-
vector[limit++] = index;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
selectionVector.setLimit(limit);
|
|
42
|
-
}
|
|
43
|
-
matchSelected(testValues, selectionVector) {
|
|
44
|
-
let limit = 0;
|
|
45
|
-
const vector = selectionVector.selectionValues();
|
|
46
|
-
for (let i = 0; i < selectionVector.limit; i++) {
|
|
47
|
-
const index = vector[i];
|
|
48
|
-
if ((!this.nullabilityBuffer || this.nullabilityBuffer.get(index)) &&
|
|
49
|
-
testValues.includes(this.dataBuffer[index])) {
|
|
50
|
-
vector[limit++] = index;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
selectionVector.setLimit(limit);
|
|
54
|
-
}
|
|
55
|
-
greaterThanOrEqualTo(value) {
|
|
56
|
-
const selectionVector = [];
|
|
57
|
-
for (let i = 0; i < this.dataBuffer.length; i++) {
|
|
58
|
-
if ((!this.nullabilityBuffer || this.nullabilityBuffer.get(i)) && this.dataBuffer[i] >= value) {
|
|
59
|
-
selectionVector.push(i);
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
return new flatSelectionVector_1.FlatSelectionVector(selectionVector);
|
|
63
|
-
}
|
|
64
|
-
greaterThanOrEqualToSelected(testValue, selectionVector) {
|
|
65
|
-
let limit = 0;
|
|
66
|
-
const vector = selectionVector.selectionValues();
|
|
67
|
-
for (let i = 0; i < selectionVector.limit; i++) {
|
|
68
|
-
const index = vector[i];
|
|
69
|
-
if ((!this.nullabilityBuffer || this.nullabilityBuffer.get(index)) && this.dataBuffer[index] >= testValue) {
|
|
70
|
-
vector[limit++] = index;
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
selectionVector.setLimit(limit);
|
|
74
|
-
}
|
|
75
|
-
smallerThanOrEqualTo(value) {
|
|
76
|
-
const selectionVector = [];
|
|
77
|
-
for (let i = 0; i < this.dataBuffer.length; i++) {
|
|
78
|
-
if ((!this.nullabilityBuffer || this.nullabilityBuffer.get(i)) && this.dataBuffer[i] <= value) {
|
|
79
|
-
selectionVector.push(i);
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
return new flatSelectionVector_1.FlatSelectionVector(selectionVector);
|
|
83
|
-
}
|
|
84
|
-
smallerThanOrEqualToSelected(testValue, selectionVector) {
|
|
85
|
-
let limit = 0;
|
|
86
|
-
const vector = selectionVector.selectionValues();
|
|
87
|
-
for (let i = 0; i < selectionVector.limit; i++) {
|
|
88
|
-
const index = vector[i];
|
|
89
|
-
if ((!this.nullabilityBuffer || this.nullabilityBuffer.get(index)) && this.dataBuffer[index] <= testValue) {
|
|
90
|
-
vector[limit++] = index;
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
selectionVector.setLimit(limit);
|
|
94
|
-
}
|
|
95
|
-
noneMatch(values) {
|
|
96
|
-
throw new Error("Not implemented yet.");
|
|
97
|
-
}
|
|
98
|
-
noneMatchSelected(values, selectionVector) {
|
|
99
|
-
throw new Error("Not implemented yet.");
|
|
100
|
-
}
|
|
101
|
-
filterNotEqual(value) {
|
|
102
|
-
throw new Error("Not implemented yet.");
|
|
103
|
-
}
|
|
104
|
-
filterNotEqualSelected(value, selectionVector) {
|
|
105
|
-
throw new Error("Not implemented yet.");
|
|
106
|
-
}
|
|
107
6
|
}
|
|
108
|
-
exports.FloatFlatVector = FloatFlatVector;
|
|
109
7
|
//# sourceMappingURL=floatFlatVector.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"floatFlatVector.js","sourceRoot":"","sources":["../../../src/vector/flat/floatFlatVector.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"floatFlatVector.js","sourceRoot":"","sources":["../../../src/vector/flat/floatFlatVector.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD,MAAM,OAAO,eAAgB,SAAQ,eAAqC;IAC5D,kBAAkB,CAAC,KAAa;QACtC,OAAO,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;IAClC,CAAC;CACJ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { describe, it, expect } from "vitest";
|
|
2
|
+
import { FloatFlatVector } from "./floatFlatVector";
|
|
3
|
+
describe("FloatFlatVector", () => {
|
|
4
|
+
it("should construct and return values correctly", () => {
|
|
5
|
+
const data = new Float32Array([1.5, 2.5, 3.5, 4.5, 5.5]);
|
|
6
|
+
const vec = new FloatFlatVector("test", data, data.length);
|
|
7
|
+
expect(vec.name).toBe("test");
|
|
8
|
+
expect(vec.size).toBe(5);
|
|
9
|
+
expect(vec.getValue(0)).toBe(1.5);
|
|
10
|
+
expect(vec.getValue(2)).toBe(3.5);
|
|
11
|
+
expect(vec.getValue(4)).toBe(5.5);
|
|
12
|
+
});
|
|
13
|
+
});
|
|
14
|
+
//# sourceMappingURL=floatFlatVector.spec.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"floatFlatVector.spec.js","sourceRoot":"","sources":["../../../src/vector/flat/floatFlatVector.spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD,QAAQ,CAAC,iBAAiB,EAAE,GAAG,EAAE;IAC7B,EAAE,CAAC,8CAA8C,EAAE,GAAG,EAAE;QACpD,MAAM,IAAI,GAAG,IAAI,YAAY,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC;QACzD,MAAM,GAAG,GAAG,IAAI,eAAe,CAAC,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;QAE3D,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAC9B,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QACzB,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAClC,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAClC,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACtC,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
|
|
@@ -1,17 +1,4 @@
|
|
|
1
1
|
import { FixedSizeVector } from "../fixedSizeVector";
|
|
2
|
-
import { type SelectionVector } from "../filter/selectionVector";
|
|
3
2
|
export declare class IntFlatVector extends FixedSizeVector<Int32Array, number> {
|
|
4
3
|
protected getValueFromBuffer(index: number): number;
|
|
5
|
-
filter(value: number): SelectionVector;
|
|
6
|
-
match(values: 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
|
-
filterNotEqual(value: number): SelectionVector;
|
|
14
|
-
filterNotEqualSelected(testValue: number, selectionVector: SelectionVector): void;
|
|
15
|
-
noneMatch(values: number[]): SelectionVector;
|
|
16
|
-
noneMatchSelected(values: number[], selectionVector: SelectionVector): void;
|
|
17
4
|
}
|
|
@@ -1,122 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.IntFlatVector = void 0;
|
|
4
|
-
const fixedSizeVector_1 = require("../fixedSizeVector");
|
|
5
|
-
const flatSelectionVector_1 = require("../filter/flatSelectionVector");
|
|
6
|
-
class IntFlatVector extends fixedSizeVector_1.FixedSizeVector {
|
|
1
|
+
import { FixedSizeVector } from "../fixedSizeVector";
|
|
2
|
+
export class IntFlatVector extends FixedSizeVector {
|
|
7
3
|
getValueFromBuffer(index) {
|
|
8
4
|
return this.dataBuffer[index];
|
|
9
5
|
}
|
|
10
|
-
filter(value) {
|
|
11
|
-
const selectionVector = [];
|
|
12
|
-
for (let i = 0; i < this.dataBuffer.length; i++) {
|
|
13
|
-
if ((!this.nullabilityBuffer || this.nullabilityBuffer.get(i)) && this.getValue(i) === value) {
|
|
14
|
-
selectionVector.push(i);
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
return new flatSelectionVector_1.FlatSelectionVector(selectionVector);
|
|
18
|
-
}
|
|
19
|
-
match(values) {
|
|
20
|
-
const selectionVector = [];
|
|
21
|
-
for (let i = 0; i < this.dataBuffer.length; i++) {
|
|
22
|
-
for (let j = 0; j < values.length; j++) {
|
|
23
|
-
if ((!this.nullabilityBuffer || this.nullabilityBuffer.get(i)) && this.getValue(i) === values[j]) {
|
|
24
|
-
selectionVector.push(i);
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
return new flatSelectionVector_1.FlatSelectionVector(selectionVector);
|
|
29
|
-
}
|
|
30
|
-
filterSelected(testValue, selectionVector) {
|
|
31
|
-
let limit = 0;
|
|
32
|
-
const vector = selectionVector.selectionValues();
|
|
33
|
-
for (let i = 0; i < selectionVector.limit; i++) {
|
|
34
|
-
const index = vector[i];
|
|
35
|
-
if ((!this.nullabilityBuffer || this.nullabilityBuffer.get(index)) &&
|
|
36
|
-
this.dataBuffer[index] === testValue) {
|
|
37
|
-
vector[limit++] = index;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
selectionVector.setLimit(limit);
|
|
41
|
-
}
|
|
42
|
-
matchSelected(testValues, selectionVector) {
|
|
43
|
-
let limit = 0;
|
|
44
|
-
const vector = selectionVector.selectionValues();
|
|
45
|
-
for (let i = 0; i < selectionVector.limit; i++) {
|
|
46
|
-
const index = vector[i];
|
|
47
|
-
if ((!this.nullabilityBuffer || this.nullabilityBuffer.get(index)) &&
|
|
48
|
-
testValues.includes(this.dataBuffer[index])) {
|
|
49
|
-
vector[limit++] = index;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
selectionVector.setLimit(limit);
|
|
53
|
-
}
|
|
54
|
-
greaterThanOrEqualTo(value) {
|
|
55
|
-
const selectionVector = [];
|
|
56
|
-
for (let i = 0; i < this.dataBuffer.length; i++) {
|
|
57
|
-
if ((!this.nullabilityBuffer || this.nullabilityBuffer.get(i)) && this.dataBuffer[i] >= value) {
|
|
58
|
-
selectionVector.push(i);
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
return new flatSelectionVector_1.FlatSelectionVector(selectionVector);
|
|
62
|
-
}
|
|
63
|
-
greaterThanOrEqualToSelected(testValue, selectionVector) {
|
|
64
|
-
let limit = 0;
|
|
65
|
-
const vector = selectionVector.selectionValues();
|
|
66
|
-
for (let i = 0; i < selectionVector.limit; i++) {
|
|
67
|
-
const index = vector[i];
|
|
68
|
-
if ((!this.nullabilityBuffer || this.nullabilityBuffer.get(index)) && this.dataBuffer[index] >= testValue) {
|
|
69
|
-
vector[limit++] = index;
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
selectionVector.setLimit(limit);
|
|
73
|
-
}
|
|
74
|
-
smallerThanOrEqualTo(value) {
|
|
75
|
-
const selectionVector = [];
|
|
76
|
-
for (let i = 0; i < this.dataBuffer.length; i++) {
|
|
77
|
-
if ((!this.nullabilityBuffer || this.nullabilityBuffer.get(i)) && this.dataBuffer[i] <= value) {
|
|
78
|
-
selectionVector.push(i);
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
return new flatSelectionVector_1.FlatSelectionVector(selectionVector);
|
|
82
|
-
}
|
|
83
|
-
smallerThanOrEqualToSelected(testValue, selectionVector) {
|
|
84
|
-
let limit = 0;
|
|
85
|
-
const vector = selectionVector.selectionValues();
|
|
86
|
-
for (let i = 0; i < selectionVector.limit; i++) {
|
|
87
|
-
const index = vector[i];
|
|
88
|
-
if ((!this.nullabilityBuffer || this.nullabilityBuffer.get(index)) && this.dataBuffer[index] <= testValue) {
|
|
89
|
-
vector[limit++] = index;
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
selectionVector.setLimit(limit);
|
|
93
|
-
}
|
|
94
|
-
filterNotEqual(value) {
|
|
95
|
-
const selectionVector = [];
|
|
96
|
-
for (let i = 0; i < this.dataBuffer.length; i++) {
|
|
97
|
-
if ((this.nullabilityBuffer && !this.nullabilityBuffer.get(i)) || this.dataBuffer[i] !== value) {
|
|
98
|
-
selectionVector.push(i);
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
return new flatSelectionVector_1.FlatSelectionVector(selectionVector);
|
|
102
|
-
}
|
|
103
|
-
filterNotEqualSelected(testValue, selectionVector) {
|
|
104
|
-
let limit = 0;
|
|
105
|
-
const vector = selectionVector.selectionValues();
|
|
106
|
-
for (let i = 0; i < selectionVector.limit; i++) {
|
|
107
|
-
const index = vector[i];
|
|
108
|
-
if ((this.nullabilityBuffer && !this.nullabilityBuffer.get(i)) || this.dataBuffer[index] !== testValue) {
|
|
109
|
-
vector[limit++] = index;
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
selectionVector.setLimit(limit);
|
|
113
|
-
}
|
|
114
|
-
noneMatch(values) {
|
|
115
|
-
throw new Error("Not implemented yet.");
|
|
116
|
-
}
|
|
117
|
-
noneMatchSelected(values, selectionVector) {
|
|
118
|
-
throw new Error("Not implemented yet.");
|
|
119
|
-
}
|
|
120
6
|
}
|
|
121
|
-
exports.IntFlatVector = IntFlatVector;
|
|
122
7
|
//# sourceMappingURL=intFlatVector.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"intFlatVector.js","sourceRoot":"","sources":["../../../src/vector/flat/intFlatVector.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"intFlatVector.js","sourceRoot":"","sources":["../../../src/vector/flat/intFlatVector.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD,MAAM,OAAO,aAAc,SAAQ,eAAmC;IACxD,kBAAkB,CAAC,KAAa;QACtC,OAAO,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;IAClC,CAAC;CACJ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { describe, it, expect } from "vitest";
|
|
2
|
+
import { IntFlatVector } from "./intFlatVector";
|
|
3
|
+
describe("IntFlatVector", () => {
|
|
4
|
+
it("should construct and return values correctly", () => {
|
|
5
|
+
const data = new Int32Array([10, 20, 30, 40, 50]);
|
|
6
|
+
const vec = new IntFlatVector("test", data, data.length);
|
|
7
|
+
expect(vec.name).toBe("test");
|
|
8
|
+
expect(vec.size).toBe(5);
|
|
9
|
+
expect(vec.has(0)).toBe(true);
|
|
10
|
+
expect(vec.getValue(0)).toBe(10);
|
|
11
|
+
expect(vec.getValue(2)).toBe(30);
|
|
12
|
+
expect(vec.getValue(4)).toBe(50);
|
|
13
|
+
});
|
|
14
|
+
});
|
|
15
|
+
//# sourceMappingURL=intFlatVector.spec.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"intFlatVector.spec.js","sourceRoot":"","sources":["../../../src/vector/flat/intFlatVector.spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,QAAQ,CAAC,eAAe,EAAE,GAAG,EAAE;IAC3B,EAAE,CAAC,8CAA8C,EAAE,GAAG,EAAE;QACpD,MAAM,IAAI,GAAG,IAAI,UAAU,CAAC,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC;QAClD,MAAM,GAAG,GAAG,IAAI,aAAa,CAAC,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;QAEzD,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAC9B,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QACzB,MAAM,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;QAC7B,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACjC,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACjC,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACrC,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
|
|
@@ -1,17 +1,4 @@
|
|
|
1
1
|
import { FixedSizeVector } from "../fixedSizeVector";
|
|
2
|
-
import { type SelectionVector } from "../filter/selectionVector";
|
|
3
2
|
export declare class LongFlatVector extends FixedSizeVector<BigInt64Array, bigint> {
|
|
4
3
|
protected getValueFromBuffer(index: number): bigint;
|
|
5
|
-
filter(value: bigint): SelectionVector;
|
|
6
|
-
match(values: bigint[]): SelectionVector;
|
|
7
|
-
filterSelected(testValue: bigint, selectionVector: SelectionVector): void;
|
|
8
|
-
matchSelected(testValues: bigint[], selectionVector: SelectionVector): void;
|
|
9
|
-
greaterThanOrEqualTo(value: bigint): SelectionVector;
|
|
10
|
-
greaterThanOrEqualToSelected(testValue: bigint, selectionVector: SelectionVector): void;
|
|
11
|
-
smallerThanOrEqualTo(value: bigint): SelectionVector;
|
|
12
|
-
smallerThanOrEqualToSelected(testValue: bigint, selectionVector: SelectionVector): void;
|
|
13
|
-
filterNotEqual(value: bigint): SelectionVector;
|
|
14
|
-
filterNotEqualSelected(testValue: bigint, selectionVector: SelectionVector): void;
|
|
15
|
-
noneMatch(values: bigint[]): SelectionVector;
|
|
16
|
-
noneMatchSelected(values: bigint[], selectionVector: SelectionVector): void;
|
|
17
4
|
}
|
|
@@ -1,123 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.LongFlatVector = void 0;
|
|
4
|
-
const fixedSizeVector_1 = require("../fixedSizeVector");
|
|
5
|
-
const flatSelectionVector_1 = require("../filter/flatSelectionVector");
|
|
6
|
-
class LongFlatVector extends fixedSizeVector_1.FixedSizeVector {
|
|
1
|
+
import { FixedSizeVector } from "../fixedSizeVector";
|
|
2
|
+
export class LongFlatVector extends FixedSizeVector {
|
|
7
3
|
getValueFromBuffer(index) {
|
|
8
4
|
return this.dataBuffer[index];
|
|
9
5
|
}
|
|
10
|
-
filter(value) {
|
|
11
|
-
const selectionVector = [];
|
|
12
|
-
for (let i = 0; i < this.dataBuffer.length; i++) {
|
|
13
|
-
if ((!this.nullabilityBuffer || this.nullabilityBuffer.get(i)) && this.dataBuffer[i] === value) {
|
|
14
|
-
selectionVector.push(i);
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
return new flatSelectionVector_1.FlatSelectionVector(selectionVector);
|
|
18
|
-
}
|
|
19
|
-
match(values) {
|
|
20
|
-
const selectionVector = [];
|
|
21
|
-
for (let i = 0; i < this.dataBuffer.length; i++) {
|
|
22
|
-
for (let j = 0; j < values.length; j++) {
|
|
23
|
-
if ((!this.nullabilityBuffer || this.nullabilityBuffer.get(i)) && this.dataBuffer[i] === values[j]) {
|
|
24
|
-
selectionVector.push(i);
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
return new flatSelectionVector_1.FlatSelectionVector(selectionVector);
|
|
29
|
-
}
|
|
30
|
-
//TODO: fix -> values in style are number not bigint
|
|
31
|
-
filterSelected(testValue, selectionVector) {
|
|
32
|
-
let limit = 0;
|
|
33
|
-
const vector = selectionVector.selectionValues();
|
|
34
|
-
for (let i = 0; i < selectionVector.limit; i++) {
|
|
35
|
-
const index = vector[i];
|
|
36
|
-
if ((!this.nullabilityBuffer || this.nullabilityBuffer.get(index)) &&
|
|
37
|
-
this.dataBuffer[index] === testValue) {
|
|
38
|
-
vector[limit++] = index;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
selectionVector.setLimit(limit);
|
|
42
|
-
}
|
|
43
|
-
matchSelected(testValues, selectionVector) {
|
|
44
|
-
let limit = 0;
|
|
45
|
-
const vector = selectionVector.selectionValues();
|
|
46
|
-
for (let i = 0; i < selectionVector.limit; i++) {
|
|
47
|
-
const index = vector[i];
|
|
48
|
-
if ((!this.nullabilityBuffer || this.nullabilityBuffer.get(index)) &&
|
|
49
|
-
testValues.includes(this.dataBuffer[index])) {
|
|
50
|
-
vector[limit++] = index;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
selectionVector.setLimit(limit);
|
|
54
|
-
}
|
|
55
|
-
greaterThanOrEqualTo(value) {
|
|
56
|
-
const selectionVector = [];
|
|
57
|
-
for (let i = 0; i < this.dataBuffer.length; i++) {
|
|
58
|
-
if ((!this.nullabilityBuffer || this.nullabilityBuffer.get(i)) && this.dataBuffer[i] >= value) {
|
|
59
|
-
selectionVector.push(i);
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
return new flatSelectionVector_1.FlatSelectionVector(selectionVector);
|
|
63
|
-
}
|
|
64
|
-
greaterThanOrEqualToSelected(testValue, selectionVector) {
|
|
65
|
-
let limit = 0;
|
|
66
|
-
const vector = selectionVector.selectionValues();
|
|
67
|
-
for (let i = 0; i < selectionVector.limit; i++) {
|
|
68
|
-
const index = vector[i];
|
|
69
|
-
if ((!this.nullabilityBuffer || this.nullabilityBuffer.get(index)) && this.dataBuffer[index] >= testValue) {
|
|
70
|
-
vector[limit++] = index;
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
selectionVector.setLimit(limit);
|
|
74
|
-
}
|
|
75
|
-
smallerThanOrEqualTo(value) {
|
|
76
|
-
const selectionVector = [];
|
|
77
|
-
for (let i = 0; i < this.dataBuffer.length; i++) {
|
|
78
|
-
if ((!this.nullabilityBuffer || this.nullabilityBuffer.get(i)) && this.dataBuffer[i] <= value) {
|
|
79
|
-
selectionVector.push(i);
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
return new flatSelectionVector_1.FlatSelectionVector(selectionVector);
|
|
83
|
-
}
|
|
84
|
-
smallerThanOrEqualToSelected(testValue, selectionVector) {
|
|
85
|
-
let limit = 0;
|
|
86
|
-
const vector = selectionVector.selectionValues();
|
|
87
|
-
for (let i = 0; i < selectionVector.limit; i++) {
|
|
88
|
-
const index = vector[i];
|
|
89
|
-
if ((!this.nullabilityBuffer || this.nullabilityBuffer.get(index)) && this.dataBuffer[index] <= testValue) {
|
|
90
|
-
vector[limit++] = index;
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
selectionVector.setLimit(limit);
|
|
94
|
-
}
|
|
95
|
-
filterNotEqual(value) {
|
|
96
|
-
const selectionVector = [];
|
|
97
|
-
for (let i = 0; i < this.dataBuffer.length; i++) {
|
|
98
|
-
if ((this.nullabilityBuffer && !this.nullabilityBuffer.get(i)) || this.dataBuffer[i] !== value) {
|
|
99
|
-
selectionVector.push(i);
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
return new flatSelectionVector_1.FlatSelectionVector(selectionVector);
|
|
103
|
-
}
|
|
104
|
-
filterNotEqualSelected(testValue, selectionVector) {
|
|
105
|
-
let limit = 0;
|
|
106
|
-
const vector = selectionVector.selectionValues();
|
|
107
|
-
for (let i = 0; i < selectionVector.limit; i++) {
|
|
108
|
-
const index = vector[i];
|
|
109
|
-
if ((this.nullabilityBuffer && !this.nullabilityBuffer.get(i)) || this.dataBuffer[index] !== testValue) {
|
|
110
|
-
vector[limit++] = index;
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
selectionVector.setLimit(limit);
|
|
114
|
-
}
|
|
115
|
-
noneMatch(values) {
|
|
116
|
-
throw new Error("Not implemented yet.");
|
|
117
|
-
}
|
|
118
|
-
noneMatchSelected(values, selectionVector) {
|
|
119
|
-
throw new Error("Not implemented yet.");
|
|
120
|
-
}
|
|
121
6
|
}
|
|
122
|
-
exports.LongFlatVector = LongFlatVector;
|
|
123
7
|
//# sourceMappingURL=longFlatVector.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"longFlatVector.js","sourceRoot":"","sources":["../../../src/vector/flat/longFlatVector.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"longFlatVector.js","sourceRoot":"","sources":["../../../src/vector/flat/longFlatVector.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD,MAAM,OAAO,cAAe,SAAQ,eAAsC;IAC5D,kBAAkB,CAAC,KAAa;QACtC,OAAO,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;IAClC,CAAC;CACJ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|