Initial commit
This commit is contained in:
7
node_modules/@maplibre/mlt/dist/vector/dictionary/stringDictionaryVector.d.ts
generated
vendored
Normal file
7
node_modules/@maplibre/mlt/dist/vector/dictionary/stringDictionaryVector.d.ts
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
import { VariableSizeVector } from "../variableSizeVector";
|
||||
import type BitVector from "../flat/bitVector";
|
||||
export declare class StringDictionaryVector extends VariableSizeVector<Uint8Array, string> {
|
||||
private readonly indexBuffer;
|
||||
constructor(name: string, indexBuffer: Uint32Array, offsetBuffer: Uint32Array, dictionaryBuffer: Uint8Array, nullabilityBuffer?: BitVector);
|
||||
protected getValueFromBuffer(index: number): string;
|
||||
}
|
||||
16
node_modules/@maplibre/mlt/dist/vector/dictionary/stringDictionaryVector.js
generated
vendored
Normal file
16
node_modules/@maplibre/mlt/dist/vector/dictionary/stringDictionaryVector.js
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
import { VariableSizeVector } from "../variableSizeVector";
|
||||
import { decodeString } from "../../decoding/decodingUtils";
|
||||
export class StringDictionaryVector extends VariableSizeVector {
|
||||
constructor(name, indexBuffer, offsetBuffer, dictionaryBuffer, nullabilityBuffer) {
|
||||
super(name, offsetBuffer, dictionaryBuffer, nullabilityBuffer ?? indexBuffer.length);
|
||||
this.indexBuffer = indexBuffer;
|
||||
this.indexBuffer = indexBuffer;
|
||||
}
|
||||
getValueFromBuffer(index) {
|
||||
const offset = this.indexBuffer[index];
|
||||
const start = this.offsetBuffer[offset];
|
||||
const end = this.offsetBuffer[offset + 1];
|
||||
return decodeString(this.dataBuffer, start, end);
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=stringDictionaryVector.js.map
|
||||
1
node_modules/@maplibre/mlt/dist/vector/dictionary/stringDictionaryVector.js.map
generated
vendored
Normal file
1
node_modules/@maplibre/mlt/dist/vector/dictionary/stringDictionaryVector.js.map
generated
vendored
Normal file
@@ -0,0 +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;IAC9E,YACI,IAAY,EACK,WAAwB,EACzC,YAAyB,EACzB,gBAA4B,EAC5B,iBAA6B;QAE7B,KAAK,CAAC,IAAI,EAAE,YAAY,EAAE,gBAAgB,EAAE,iBAAiB,IAAI,WAAW,CAAC,MAAM,CAAC,CAAC;QALpE,gBAAW,GAAX,WAAW,CAAa;QAMzC,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;IACnC,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","sourcesContent":["import { VariableSizeVector } from \"../variableSizeVector\";\nimport type BitVector from \"../flat/bitVector\";\nimport { decodeString } from \"../../decoding/decodingUtils\";\n\nexport class StringDictionaryVector extends VariableSizeVector<Uint8Array, string> {\n constructor(\n name: string,\n private readonly indexBuffer: Uint32Array,\n offsetBuffer: Uint32Array,\n dictionaryBuffer: Uint8Array,\n nullabilityBuffer?: BitVector,\n ) {\n super(name, offsetBuffer, dictionaryBuffer, nullabilityBuffer ?? indexBuffer.length);\n this.indexBuffer = indexBuffer;\n }\n\n protected getValueFromBuffer(index: number): string {\n const offset = this.indexBuffer[index];\n const start = this.offsetBuffer[offset];\n const end = this.offsetBuffer[offset + 1];\n return decodeString(this.dataBuffer, start, end);\n }\n}\n"]}
|
||||
Reference in New Issue
Block a user