@apache-arrow/esnext-cjs
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -0,1 +1,12 @@ | ||
<a name="0.1.2"></a> | ||
## [0.1.2](https://github.com/graphistry/arrow/compare/v0.1.1...v0.1.2) (2017-09-06) | ||
### Bug Fixes | ||
* **DictionaryVector:** Add index and value methods to DictionaryVector ([a8341f5](https://github.com/graphistry/arrow/commit/a8341f5)) | ||
* **Table:** Add fromStruct method to Table ([e1c7852](https://github.com/graphistry/arrow/commit/e1c7852)) | ||
<a name="0.1.1"></a> | ||
@@ -2,0 +13,0 @@ ## [0.1.1](https://github.com/graphistry/arrow/compare/v0.1.0...v0.1.1) (2017-08-26) |
@@ -5,3 +5,3 @@ { | ||
"name": "@apache-arrow/esnext-cjs", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Apache's columnar in-memory data format for big data analytics", | ||
@@ -8,0 +8,0 @@ "author": "Graphistry, Inc.", |
/// <reference types="node" /> | ||
import { StructVector } from './vector/struct'; | ||
import { Vector } from './vector/vector'; | ||
@@ -10,2 +11,3 @@ export declare class Table implements Iterable<Map<string, any>> { | ||
static from(...bytes: Array<Uint8Array | Buffer | string>): Table; | ||
static fromStruct(vector: StructVector): Table; | ||
constructor(columns: Vector<any>[]); | ||
@@ -12,0 +14,0 @@ [Symbol.iterator](): IterableIterator<Map<any, any>>; |
@@ -28,2 +28,5 @@ // Licensed to the Apache Software Foundation (ASF) under one | ||
} | ||
static fromStruct(vector) { | ||
return new Table(vector.vectors); | ||
} | ||
constructor(columns) { | ||
@@ -127,2 +130,2 @@ this._columns = columns || []; | ||
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInRhYmxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLDZEQUE2RDtBQUM3RCwrREFBK0Q7QUFDL0Qsd0RBQXdEO0FBQ3hELDZEQUE2RDtBQUM3RCxvREFBb0Q7QUFDcEQsNkRB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ldHVybiAnJzsgfVxuICAgICAgICBjb25zdCBtYXhDb2x1bW5XaWR0aHMgPSBbXTtcbiAgICAgICAgY29uc3Qgcm93cyA9IG5ldyBBcnJheShsZW5ndGggKyAxKTtcbiAgICAgICAgcm93c1swXSA9IHRoaXMuX2NvbHVtbnMubWFwKChjKSA9PiBjLm5hbWUpO1xuICAgICAgICBpbmRleCAmJiByb3dzWzBdLnVuc2hpZnQoJ0luZGV4Jyk7XG4gICAgICAgIGZvciAobGV0IGkgPSAtMSwgbiA9IHJvd3MubGVuZ3RoIC0gMTsgKytpIDwgbjspIHtcbiAgICAgICAgICAgIHJvd3NbaSArIDFdID0gdGhpcy5nZXRSb3coaSwgdHJ1ZSk7XG4gICAgICAgICAgICBpbmRleCAmJiByb3dzW2kgKyAxXS51bnNoaWZ0KGkpO1xuICAgICAgICB9XG4gICAgICAgIC8vIFBhc3Mgb25lIHRvIGNvbnZlcnQgdG8gc3RyaW5ncyBhbmQgY291bnQgbWF4IGNvbHVtbiB3aWR0aHNcbiAgICAgICAgZm9yIChsZXQgaSA9IC0xLCBuID0gcm93cy5sZW5ndGg7ICsraSA8IG47KSB7XG4gICAgICAgICAgICBjb25zdCByb3cgPSByb3dzW2ldO1xuICAgICAgICAgICAgZm9yIChsZXQgaiA9IC0xLCBrID0gcm93Lmxlbmd0aDsgKytqIDwgazspIHtcbiAgICAgICAgICAgICAgICBjb25zdCB2YWwgPSByb3dbal0gPSBgJHtyb3dbal19YDtcbiAgICAgICAgICAgICAgICBtYXhDb2x1bW5XaWR0aHNbal0gPSAhbWF4Q29sdW1uV2lkdGhzW2pdXG4gICAgICAgICAgICAgICAgICAgID8gdmFsLmxlbmd0aFxuICAgICAgICAgICAgICAgICAgICA6IE1hdGgubWF4KG1heENvbHVtbldpZHRoc1tqXSwgdmFsLmxlbmd0aCk7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICAgICAgLy8gUGFzcyB0d28gdG8gcGFkIGVhY2ggb25lIHRvIG1heCBj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gIGZvciAobGV0IGkgPSAtMSwgbiA9IHJvd3MubGVuZ3RoIC0gMTsgKytpIDwgbjspIHtcbiAgICAgICAgICAgIHJvd3NbaSArIDFdID0gdGhpcy5nZXRSb3coaSwgdHJ1ZSk7XG4gICAgICAgICAgICBpbmRleCAmJiByb3dzW2kgKyAxXS51bnNoaWZ0KGkpO1xuICAgICAgICB9XG4gICAgICAgIC8vIFBhc3Mgb25lIHRvIGNvbnZlcnQgdG8gc3RyaW5ncyBhbmQgY291bnQgbWF4IGNvbHVtbiB3aWR0aHNcbiAgICAgICAgZm9yIChsZXQgaSA9IC0xLCBuID0gcm93cy5sZW5ndGg7ICsraSA8IG47KSB7XG4gICAgICAgICAgICBjb25zdCByb3cgPSByb3dzW2ldO1xuICAgICAgICAgICAgZm9yIChsZXQgaiA9IC0xLCBrID0gcm93Lmxlbmd0aDsgKytqIDwgazspIHtcbiAgICAgICAgICAgICAgICBjb25zdCB2YWwgPSByb3dbal0gPSBgJHtyb3dbal19YDtcbiAgICAgICAgICAgICAgICBtYXhDb2x1bW5XaWR0aHNbal0gPSAhbWF4Q29sdW1uV2lkdGhzW2pdXG4gICAgICAgICAgICAgICAgICAgID8gdmFsLmxlbmd0aFxuICAgICAgICAgICAgICAgICAgICA6IE1hdGgubWF4KG1heENvbHVtbldpZHRoc1tqXSwgdmFsLmxlbmd0aCk7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICAgICAgLy8gUGFzcyB0d28gdG8gcGFkIGVhY2ggb25lIHRvIG1heCBjb2x1bW4gd2lkdGhcbiAgICAgICAgZm9yIChsZXQgaSA9IC0xLCBuID0gcm93cy5sZW5ndGg7ICsraSA8IG47KSB7XG4gICAgICAgICAgICBjb25zdCByb3cgPSByb3dzW2ldO1xuICAgICAgICAgICAgZm9yIChsZXQgaiA9IC0xLCBrID0gcm93Lmxlbmd0aDsgKytqIDwgazspIHtcbiAgICAgICAgICAgICAgICByb3dbal0gPSBsZWZ0UGFkKHJvd1tqXSwgJ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XG59XG4iXX0= |
import { Vector } from './vector'; | ||
export declare class DictionaryVector<T> extends Vector<T> { | ||
protected index: Vector<number>; | ||
protected dictionary: Vector<T>; | ||
protected data: Vector<T>; | ||
protected keys: Vector<number>; | ||
constructor(index: Vector<number>, dictionary: Vector<T>); | ||
index(index: number): number; | ||
value(index: number): T; | ||
get(index: number): T; | ||
@@ -7,0 +9,0 @@ concat(vector: DictionaryVector<T>): any; |
@@ -22,16 +22,22 @@ // Licensed to the Apache Software Foundation (ASF) under one | ||
super(); | ||
this.index = index; | ||
this.dictionary = dictionary; | ||
this.keys = index; | ||
this.data = dictionary; | ||
this.length = index && index.length || 0; | ||
} | ||
index(index) { | ||
return this.keys.get(index); | ||
} | ||
value(index) { | ||
return this.data.get(index); | ||
} | ||
get(index) { | ||
return this.dictionary.get(this.index.get(index)); | ||
return this.value(this.index(index)); | ||
} | ||
concat(vector) { | ||
return DictionaryVector.from(this, this.length + vector.length, this.index.concat(vector.index), this.dictionary); | ||
return DictionaryVector.from(this, this.length + vector.length, this.keys.concat(vector.keys), this.data); | ||
} | ||
*[Symbol.iterator]() { | ||
let { dictionary } = this; | ||
for (const loc of this.index) { | ||
yield dictionary.get(loc); | ||
let { data } = this; | ||
for (const loc of this.keys) { | ||
yield data.get(loc); | ||
} | ||
@@ -42,2 +48,2 @@ } | ||
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInZlY3Rvci9kaWN0aW9uYXJ5LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLDZEQUE2RDtBQUM3RCwrREFBK0Q7QUFDL0Qsd0RBQXdEO0FBQ3hELDZEQUE2RDtBQUM3RCxvREFBb0Q7QUFDcEQsNkRBQTZEO0FBQzdELDZEQUE2RDtBQUM3RCxFQUFFO0FBQ0YsK0NBQStDO0FBQy9DLEVBQUU7QUFDRiw2REFBNkQ7QUFDN0QsOERBQThEO0FBQzlELHlEQUF5RDtBQUN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gICAgfVxuICAgIH1cbn1cbiJdfQ== |
680352
8602