Skip to content

Commit

Permalink
ARROW-2214: [JS] add nullBitmap getter to DictionaryData that proxies…
Browse files Browse the repository at this point in the history
… to its indices' nullBitmap

Resolves https://issues.apache.org/jira/browse/ARROW-2214

Author: Paul Taylor <[email protected]>

Closes #1659 from trxcllnt/ARROW-2214 and squashes the following commits:

8c4ba46 <Paul Taylor> add nullBitmap getter to DictionaryData that proxies to its indices' nullBitmap
  • Loading branch information
trxcllnt authored and xhochy committed Feb 26, 2018
1 parent 2fd8f0a commit 27d8339
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions js/src/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ export class DictionaryData<T extends DataType> extends BaseData<Dictionary<T>>
this.length = this._indicies.length;
}
public get nullCount() { return this._indicies.nullCount; }
public get nullBitmap() { return this._indicies.nullBitmap; }
public clone<R extends Dictionary<T>>(type: R, length = this.length, offset = this.offset) {
const data = this._dictionary.data.clone(type.dictionary as any);
return new DictionaryData<R>(
Expand Down

0 comments on commit 27d8339

Please sign in to comment.