@apache-arrow/esnext-esm
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-esm", | ||
"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>>; |
@@ -27,2 +27,5 @@ // Licensed to the Apache Software Foundation (ASF) under one | ||
} | ||
static fromStruct(vector) { | ||
return new Table(vector.vectors); | ||
} | ||
constructor(columns) { | ||
@@ -125,2 +128,2 @@ this._columns = columns || []; | ||
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInRhYmxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLDZEQUE2RDtBQUM3RCwrREFBK0Q7QUFDL0Qsd0RBQXdEO0FBQ3hELDZEQUE2RDtBQUM3RCxvREFBb0Q7QUFDcEQsNkRBQT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8YW55PiB7fSk7XG4gICAgfVxuICAgICpbU3ltYm9sLml0ZXJhdG9yXSgpIHtcbiAgICAgICAgZm9yIChsZXQgY29scyA9IHRoaXMuX2NvbHVtbnMsIGkgPSAtMSwgbiA9IHRoaXMubGVuZ3RoOyArK2kgPCBuOykge1xuICAgICAgICAgICAgeWllbGQgcm93QXNNYXAoaSwgY29scyk7XG4gICAgICAgIH1cbiAgICB9XG4gICAgKnJvd3Moc3RhcnRSb3c/OiBudW1iZXIgfCBib29sZWFuLCBlbmRSb3c/OiBudW1iZXIgfCBib29sZWFuLCBjb21wYWN0PzogYm9vbGVhbikge1xuICAgICAgICBsZXQgc3RhcnQgPSBzdGFydFJvdyBhcyBudW1iZXIsIGVuZCA9IGVuZFJvdyBhcyBudW1iZXI7XG4gICAgICAgIGlmICh0eXBlb2Ygc3RhcnRSb3cgPT09ICdib29sZWFuJykge1xuICAgICAgICAgICAgY29tcGFjdCA9IHN0YXJ0Um93O1xuICAgICAgICAgICAgc3RhcnQgPSBlbmQ7XG4gICAgICAgICAgICBlbmQgPSB1bmRlZmluZWQ7XG4gICAgICAgIH0gZWxzZSBpZiAodHlwZW9mIGVuZFJvdyA9PT0gJ2Jvb2xlYW4nKSB7XG4gICAgICAgICAgICBjb21wYWN0ID0gZW5kUm93O1xuICAgICAgICAgICAgZW5kID0gdW5kZWZpbmVkO1xuICAgICAgICB9XG4gICAgICAgIGxldCByb3dJbmRleCA9IC0xLCB7IGxlbmd0aCB9ID0gdGhpcztcbiAgICAgICAgY29uc3QgW3Jvd09mZnNldCwgcm93c1RvdGFsXSA9IHNsaWNlVG9SYW5nZUFyZ3MobGVuZ3RoLCBzdGFydCwgZW5kKTtcbiAgICAgICAgd2hpbGUgKCsrcm93SW5kZXggPCByb3dzVG90YWwpIHtcbiAgICAgICAgICAgIHlpZWxkIHRoaXMuZ2V0Um93KChyb3dJbmRleCArIHJvd09mZnNldCkgJSBsZW5ndGgsIGNvbXBhY3QpO1xuICAgICAgICB9XG4gIC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GggfSA9IHRoaXM7XG4gICAgICAgIGlmIChsZW5ndGggPD0gMCkgeyByZXR1cm4gJyc7IH1cbiAgICAgICAgY29uc3QgbWF4Q29sdW1uV2lkdGhzID0gW107XG4gICAgICAgIGNvbnN0IHJvd3MgPSBuZXcgQXJyYXkobGVuZ3RoICsgMSk7XG4gICAgICAgIHJvd3NbMF0gPSB0aGlzLl9jb2x1bW5zLm1hcCgoYykgPT4gYy5uYW1lKTtcbiAgICAgICAgaW5kZXggJiYgcm93c1swXS51bnNoaWZ0KCdJbmRleCcpO1xuICAgICAgICBmb3IgKGxldCBpID0gLTEsIG4gPSByb3dzLmxlbmd0aCAtIDE7ICsraSA8IG47KSB7XG4gICAgICAgICAgICByb3dzW2kgKyAxXSA9IHRoaXMuZ2V0Um93KGksIHRydWUpO1xuICAgICAgICAgICAgaW5kZXggJiYgcm93c1tpICsgMV0udW5zaGlmdChpKTtcbiAgICAgICAgfVxuICAgICAgICAvLyBQYXNzIG9uZSB0byBjb252ZXJ0IHRvIHN0cmluZ3MgYW5kIGNvdW50IG1heCBjb2x1bW4gd2lkdGhzXG4gICAgICAgIGZvciAobGV0IGkgPSAtMSwgbiA9IHJvd3MubGVuZ3RoOyArK2kgPCBuOykge1xuICAgICAgICAgICAgY29uc3Qgcm93ID0gcm93c1tpXTtcbiAgICAgICAgICAgIGZvciAobGV0IGogPSAtMSwgayA9IHJvdy5sZW5ndGg7ICsraiA8IGs7KSB7XG4gICAgICAgICAgICAgICAgY29uc3QgdmFsID0gcm93W2pdID0gYCR7cm93W2pdfWA7XG4gICAgICAgICAgICAgICAgbWF4Q29sdW1uV2lkdGhzW2pdID0gIW1heENvbHVtbldpZHRoc1tqXVxuICAgICAgICAgICAgICAgICAgICA/IHZhbC5sZW5ndGhcbiAgICAgICAgICAgICAgICAgICAgOiBNYXRoLm1heChtYXhDb2x1bW5XaWR0aHNbal0sIHZhbC5sZW5ndGgpO1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICAgIC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biAgICB9XG4gICAgKnJvd3Moc3RhcnRSb3c/OiBudW1iZXIgfCBib29sZWFuLCBlbmRSb3c/OiBudW1iZXIgfCBib29sZWFuLCBjb21wYWN0PzogYm9vbGVhbikge1xuICAgICAgICBsZXQgc3RhcnQgPSBzdGFydFJvdyBhcyBudW1iZXIsIGVuZCA9IGVuZFJvdyBhcyBudW1iZXI7XG4gICAgICAgIGlmICh0eXBlb2Ygc3RhcnRSb3cgPT09ICdib29sZWFuJykge1xuICAgICAgICAgICAgY29tcGFjdCA9IHN0YXJ0Um93O1xuICAgICAgICAgICAgc3RhcnQgPSBlbmQ7XG4gICAgICAgICAgICBlbmQgPSB1bmRlZmluZWQ7XG4gICAgICAgIH0gZWxzZSBpZiAodHlwZW9mIGVuZFJvdyA9PT0gJ2Jvb2xlYW4nKSB7XG4gICAgICAgICAgICBjb21wYWN0ID0gZW5kUm93O1xuICAgICAgICAgICAgZW5kID0gdW5kZWZpbmVkO1xuICAgICAgICB9XG4gICAgICAgIGxldCByb3dJbmRleCA9IC0xLCB7IGxlbmd0aCB9ID0gdGhpcztcbiAgICAgICAgY29uc3QgW3Jvd09mZnNldCwgcm93c1RvdGFsXSA9IHNsaWNlVG9SYW5nZUFyZ3MobGVuZ3RoLCBzdGFydCwgZW5kKTtcbiAgICAgICAgd2hpbGUgKCsrcm93SW5kZXggPCByb3dzVG90YWwpIHtcbiAgICAgICAgICAgIHlpZWxkIHRoaXMuZ2V0Um93KChyb3dJbmRleCArIHJvd09mZnNldCkgJSBsZW5ndGgsIGNvbXBhY3QpO1xuICAgICAgICB9XG4gICAgfVxuICAgICpjb2xzKHN0YXJ0Q29sPzogbnVtYmVyLCBlbmRDb2w/OiBudW1iZXIpIHtcbiAgICAgICAgZm9yIChjb25zdCBjb2x1bW4gb2YgdGhpcy5fY29sdW1ucy5zbGljZShzdGFydENvbCwgZW5kQ29sKSkge1xuICAgICAgICAgICAgeWllbGQgY29sdW1uO1xuICAgICAgICB9XG4gICAgfVxuICAgI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m1hcCgoYykgPT4gYy5uYW1lKTtcbiAgICAgICAgaW5kZXggJiYgcm93c1swXS51bnNoaWZ0KCdJbmRleCcpO1xuICAgICAgICBmb3IgKGxldCBpID0gLTEsIG4gPSByb3dzLmxlbmd0aCAtIDE7ICsraSA8IG47KSB7XG4gICAgICAgICAgICByb3dzW2kgKyAxXSA9IHRoaXMuZ2V0Um93KGksIHRydWUpO1xuICAgICAgICAgICAgaW5kZXggJiYgcm93c1tpICsgMV0udW5zaGlmdChpKTtcbiAgICAgICAgfVxuICAgICAgICAvLyBQYXNzIG9uZSB0byBjb252ZXJ0IHRvIHN0cmluZ3MgYW5kIGNvdW50IG1heCBjb2x1bW4gd2lkdGhzXG4gICAgICAgIGZvciAobGV0IGkgPSAtMSwgbiA9IHJvd3MubGVuZ3RoOyArK2kgPCBuOykge1xuICAgICAgICAgICAgY29uc3Qgcm93ID0gcm93c1tpXTtcbiAgICAgICAgICAgIGZvciAobGV0IGogPSAtMSwgayA9IHJvdy5sZW5ndGg7ICsraiA8IGs7KSB7XG4gICAgICAgICAgICAgICAgY29uc3QgdmFsID0gcm93W2pdID0gYCR7cm93W2pdfWA7XG4gICAgICAgICAgICAgICAgbWF4Q29sdW1uV2lkdGhzW2pdID0gIW1heENvbHVtbldpZHRoc1tqXVxuICAgICAgICAgICAgICAgICAgICA/IHZhbC5sZW5ndGhcbiAgICAgICAgICAgICAgICAgICAgOiBNYXRoLm1heChtYXhDb2x1bW5XaWR0aHNbal0sIHZhbC5sZW5ndGgpO1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICAgIC8vIFBhc3MgdHdvIHRvIHBhZCBlYWNoIG9uZSB0byBtYXggY29sdW1uIHdpZHRoXG4gICAgICAgIGZvciAobGV0IGkgPSAtMSwgbiA9IHJvd3MubGVuZ3RoOyArK2kgPCBuOykge1xuICAgICAgICAgICAgY29uc3Qgcm93ID0gcm93c1tpXTtcbiAgICAgICAgICAgIGZvciAobGV0IGogPSAtMSwgayA9IHJv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yb3dJbmRleCkpICYmIHJvdyB8fCByb3csIG5ldyBBcnJheShjb2x1bW5zLmxlbmd0aCkpO1xufVxuIl19 |
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; |
@@ -21,16 +21,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); | ||
} | ||
@@ -40,2 +46,2 @@ } | ||
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInZlY3Rvci9kaWN0aW9uYXJ5LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLDZEQUE2RDtBQUM3RCwrREFBK0Q7QUFDL0Qsd0RBQXdEO0FBQ3hELDZEQUE2RDtBQUM3RCxvREFBb0Q7QUFDcEQsNkRBQTZEO0FBQzdELDZEQUE2RDtBQUM3RCxFQUFFO0FBQ0YsK0NBQStDO0FBQ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ICAgICBsZXQgeyBkYXRhIH0gPSB0aGlzO1xuICAgICAgICBmb3IgKGNvbnN0IGxvYyBvZiB0aGlzLmtleXMpIHtcbiAgICAgICAgICAgIHlpZWxkIGRhdGEuZ2V0KGxvYyk7XG4gICAgICAgIH1cbiAgICB9XG59XG4iXX0= |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
678656
8554