Skip to content

Commit dc7c728

Browse files
committed
add more view, predicate externs
1 parent 25e6af7 commit dc7c728

File tree

3 files changed

+64
-26
lines changed

3 files changed

+64
-26
lines changed

js/gulp/closure-task.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ const createClosureArgs = (entry, externs) => ({
6666
rewrite_polyfills: false,
6767
entry_point: `${entry}.js`,
6868
module_resolution: `NODE`,
69-
// formatting: `PRETTY_PRINT`, debug: true,
69+
// formatting: `PRETTY_PRINT`,
70+
// debug: true,
7071
compilation_level: `ADVANCED`,
7172
allow_method_call_decomposing: true,
7273
package_json_entry_names: `module,jsnext:main,main`,

js/src/Arrow.externs.js

+58-22
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ var CountByResult = function() {};
7373
CountByResult.prototype.asJSON;
7474

7575
var col = function () {};
76+
var lit = function () {};
7677

7778
var Value = function() {};
7879
/** @type {?} */
@@ -83,26 +84,35 @@ Value.prototype.lteq;
8384
Value.prototype.eq;
8485

8586
var Col = function() {};
86-
87-
var Literal = function() {};
88-
87+
/** @type {?} */
88+
Col.prototype.bind;
89+
var Or = function() {};
90+
var And = function() {};
8991
var GTeq = function () {};
9092
/** @type {?} */
9193
GTeq.prototype.and;
9294
/** @type {?} */
9395
GTeq.prototype.or;
94-
9596
var LTeq = function () {};
9697
/** @type {?} */
9798
LTeq.prototype.and;
9899
/** @type {?} */
99100
LTeq.prototype.or;
100-
101101
var Equals = function () {};
102102
/** @type {?} */
103103
Equals.prototype.and;
104104
/** @type {?} */
105105
Equals.prototype.or;
106+
var Predicate = function() {};
107+
/** @type {?} */
108+
Predicate.prototype.bind;
109+
/** @type {?} */
110+
Predicate.prototype.and;
111+
/** @type {?} */
112+
Predicate.prototype.or;
113+
/** @type {?} */
114+
Predicate.prototype.ands;
115+
var Literal = function() {};
106116

107117
var TableToStringIterator = function() {};
108118
/** @type {?} */
@@ -142,8 +152,6 @@ Vector.prototype.get;
142152
/** @type {?} */
143153
Vector.prototype.set;
144154
/** @type {?} */
145-
Vector.prototype.setData;
146-
/** @type {?} */
147155
Vector.prototype.toArray;
148156
/** @type {?} */
149157
Vector.prototype.concat;
@@ -465,97 +473,125 @@ var FlatView = function() {};
465473
/** @type {?} */
466474
FlatView.prototype.get;
467475
/** @type {?} */
476+
FlatView.prototype.clone;
477+
/** @type {?} */
468478
FlatView.prototype.isValid;
469479
/** @type {?} */
470480
FlatView.prototype.toArray;
471481
/** @type {?} */
472482
FlatView.prototype.set;
483+
484+
var PrimitiveView = function() {};
473485
/** @type {?} */
474-
FlatView.prototype.setData;
486+
PrimitiveView.prototype.size;
487+
/** @type {?} */
488+
PrimitiveView.prototype.clone;
475489

476490
var NullView = function() {};
477491
/** @type {?} */
478492
NullView.prototype.get;
479493
/** @type {?} */
494+
NullView.prototype.clone;
495+
/** @type {?} */
480496
NullView.prototype.isValid;
481497
/** @type {?} */
482498
NullView.prototype.toArray;
483499
/** @type {?} */
484500
NullView.prototype.set;
485-
/** @type {?} */
486-
NullView.prototype.setData;
487501

488502
var BoolView = function() {};
489503
/** @type {?} */
490504
BoolView.prototype.get;
491505
/** @type {?} */
506+
BoolView.prototype.clone;
507+
/** @type {?} */
492508
BoolView.prototype.isValid;
493509
/** @type {?} */
494510
BoolView.prototype.toArray;
495511
/** @type {?} */
496512
BoolView.prototype.set;
497-
/** @type {?} */
498-
BoolView.prototype.setData;
499513

500514
var ValidityView = function() {};
501515
/** @type {?} */
502516
ValidityView.prototype.get;
503517
/** @type {?} */
518+
ValidityView.prototype.clone;
519+
/** @type {?} */
504520
ValidityView.prototype.isValid;
505521
/** @type {?} */
506522
ValidityView.prototype.toArray;
507523
/** @type {?} */
508524
ValidityView.prototype.set;
509-
/** @type {?} */
510-
ValidityView.prototype.setData;
511525

512526
var DictionaryView = function() {};
513527
/** @type {?} */
514528
DictionaryView.prototype.get;
515529
/** @type {?} */
530+
DictionaryView.prototype.clone;
531+
/** @type {?} */
516532
DictionaryView.prototype.isValid;
517533
/** @type {?} */
518534
DictionaryView.prototype.toArray;
519535
/** @type {?} */
520536
DictionaryView.prototype.set;
521-
/** @type {?} */
522-
DictionaryView.prototype.setData;
523537

524538
var ListViewBase = function() {};
525539
/** @type {?} */
526540
ListViewBase.prototype.get;
527541
/** @type {?} */
542+
ListViewBase.prototype.clone;
543+
/** @type {?} */
528544
ListViewBase.prototype.isValid;
529545
/** @type {?} */
530546
ListViewBase.prototype.toArray;
531547
/** @type {?} */
532548
ListViewBase.prototype.set;
533-
/** @type {?} */
534-
ListViewBase.prototype.setData;
535549

536550
var NestedView = function() {};
537551
/** @type {?} */
538552
NestedView.prototype.get;
539553
/** @type {?} */
554+
NestedView.prototype.clone;
555+
/** @type {?} */
540556
NestedView.prototype.isValid;
541557
/** @type {?} */
542558
NestedView.prototype.toArray;
543559
/** @type {?} */
544560
NestedView.prototype.set;
545-
/** @type {?} */
546-
NestedView.prototype.setData;
547561

548562
var ChunkedView = function() {};
549563
/** @type {?} */
550564
ChunkedView.prototype.get;
551565
/** @type {?} */
566+
ChunkedView.prototype.clone;
567+
/** @type {?} */
552568
ChunkedView.prototype.isValid;
553569
/** @type {?} */
554570
ChunkedView.prototype.toArray;
555571
/** @type {?} */
556572
ChunkedView.prototype.set;
557-
/** @type {?} */
558-
ChunkedView.prototype.setData;
573+
574+
var ListView = function() {};
575+
var FixedSizeListView = function() {};
576+
var BinaryView = function() {};
577+
var Utf8View = function() {};
578+
var UnionView = function() {};
579+
var DenseUnionView = function() {};
580+
var StructView = function() {};
581+
var MapView = function() {};
582+
var NullView = function() {};
583+
var FixedSizeView = function() {};
584+
var Float16View = function() {};
585+
var DateDayView = function() {};
586+
var DateMillisecondView = function() {};
587+
var TimestampDayView = function() {};
588+
var TimestampSecondView = function() {};
589+
var TimestampMillisecondView = function() {};
590+
var TimestampMicrosecondView = function() {};
591+
var TimestampNanosecondView = function() {};
592+
var IntervalYearMonthView = function() {};
593+
var IntervalYearView = function() {};
594+
var IntervalMonthView = function() {};
559595

560596
var TypeVisitor = function() {};
561597
/** @type {?} */

js/src/Arrow.ts

+4-3
Original file line numberDiff line numberDiff line change
@@ -155,15 +155,16 @@ export namespace view {
155155

156156
export namespace predicate {
157157
export import col = predicate_.col;
158-
export import Col = predicate_.Col;
159-
//export import Value = predicate_.Value;
160-
export import Literal = predicate_.Literal;
158+
export import lit = predicate_.lit;
161159

162160
export import Or = predicate_.Or;
161+
export import Col = predicate_.Col;
163162
export import And = predicate_.And;
164163
export import GTeq = predicate_.GTeq;
165164
export import LTeq = predicate_.LTeq;
165+
export import Value = predicate_.Value;
166166
export import Equals = predicate_.Equals;
167+
export import Literal = predicate_.Literal;
167168
export import Predicate = predicate_.Predicate;
168169

169170
export import PredicateFunc = predicate_.PredicateFunc;

0 commit comments

Comments
 (0)