apache-arrow
Version:
Apache Arrow columnar in-memory format
41 lines (39 loc) • 1.16 kB
JavaScript
// automatically generated by the FlatBuffers compiler, do not modify
Object.defineProperty(exports, "__esModule", { value: true });
exports.Null = void 0;
const flatbuffers = require("flatbuffers");
/**
* These are stored in the flatbuffer in the Type union below
*/
class Null {
constructor() {
this.bb = null;
this.bb_pos = 0;
}
__init(i, bb) {
this.bb_pos = i;
this.bb = bb;
return this;
}
static getRootAsNull(bb, obj) {
return (obj || new Null()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
}
static getSizePrefixedRootAsNull(bb, obj) {
bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
return (obj || new Null()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
}
static startNull(builder) {
builder.startObject(0);
}
static endNull(builder) {
const offset = builder.endObject();
return offset;
}
static createNull(builder) {
Null.startNull(builder);
return Null.endNull(builder);
}
}
exports.Null = Null;
//# sourceMappingURL=null.js.map
;