Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
output.writeFieldBegin('keysOnly', Thrift.Type.SET, 1);
output.writeSetBegin(Thrift.Type.STRING, this.keysOnly.length);
for (var iter31 in this.keysOnly)
{
if (this.keysOnly.hasOwnProperty(iter31))
{
iter31 = this.keysOnly[iter31];
output.writeString(iter31);
}
}
output.writeSetEnd();
output.writeFieldEnd();
}
if (this.fullMap !== null && this.fullMap !== undefined) {
output.writeFieldBegin('fullMap', Thrift.Type.MAP, 2);
output.writeMapBegin(Thrift.Type.STRING, Thrift.Type.STRING, Thrift.objectLength(this.fullMap));
for (var kiter32 in this.fullMap)
{
if (this.fullMap.hasOwnProperty(kiter32))
{
var viter33 = this.fullMap[kiter32];
output.writeString(kiter32);
output.writeString(viter33);
}
}
output.writeMapEnd();
output.writeFieldEnd();
}
output.writeFieldStop();
output.writeStructEnd();
return;
};
output.writeFieldBegin('columns', Thrift.Type.LIST, 2);
output.writeListBegin(Thrift.Type.STRUCT, this.columns.length);
for (var iter103 in this.columns)
{
if (this.columns.hasOwnProperty(iter103))
{
iter103 = this.columns[iter103];
iter103.write(output);
}
}
output.writeListEnd();
output.writeFieldEnd();
}
if (this.attributes !== null && this.attributes !== undefined) {
output.writeFieldBegin('attributes', Thrift.Type.MAP, 3);
output.writeMapBegin(Thrift.Type.STRING, Thrift.Type.STRING, Thrift.objectLength(this.attributes));
for (var kiter104 in this.attributes)
{
if (this.attributes.hasOwnProperty(kiter104))
{
var viter105 = this.attributes[kiter104];
output.writeString(kiter104);
output.writeString(viter105);
}
}
output.writeMapEnd();
output.writeFieldEnd();
}
if (this.durability !== null && this.durability !== undefined) {
output.writeFieldBegin('durability', Thrift.Type.I32, 4);
output.writeI32(this.durability);
output.writeFieldEnd();
CqlMetadata.prototype.write = function(output) {
output.writeStructBegin('CqlMetadata');
if (this.name_types) {
output.writeFieldBegin('name_types', Thrift.Type.MAP, 1);
output.writeMapBegin(Thrift.Type.STRING, Thrift.Type.STRING, Thrift.objectLength(this.name_types));
for (var kiter162 in this.name_types)
{
if (this.name_types.hasOwnProperty(kiter162))
{
var viter163 = this.name_types[kiter162];
output.writeString(kiter162);
output.writeString(viter163);
}
}
output.writeMapEnd();
output.writeFieldEnd();
}
if (this.value_types) {
output.writeFieldBegin('value_types', Thrift.Type.MAP, 2);
output.writeMapBegin(Thrift.Type.STRING, Thrift.Type.STRING, Thrift.objectLength(this.value_types));
for (var kiter164 in this.value_types)
{
if (viter32.hasOwnProperty(iter33))
{
iter33 = viter32[iter33];
iter33.write(output);
}
}
output.writeListEnd();
}
}
output.writeMapEnd();
output.writeFieldEnd();
}
if (this.latest) {
output.writeFieldBegin('latest', Thrift.Type.MAP, 2);
output.writeMapBegin(Thrift.Type.STRING, Thrift.Type.DOUBLE, Thrift.objectLength(this.latest));
for (var kiter34 in this.latest)
{
if (this.latest.hasOwnProperty(kiter34))
{
var viter35 = this.latest[kiter34];
output.writeString(kiter34);
output.writeDouble(viter35);
}
}
output.writeMapEnd();
output.writeFieldEnd();
}
output.writeFieldStop();
output.writeStructEnd();
return;
};
output.writeMapBegin(Thrift.Type.STRING, Thrift.Type.STRING, Thrift.objectLength(this.name_types));
for (var kiter188 in this.name_types)
{
if (this.name_types.hasOwnProperty(kiter188))
{
var viter189 = this.name_types[kiter188];
output.writeString(kiter188);
output.writeString(viter189);
}
}
output.writeMapEnd();
output.writeFieldEnd();
}
if (this.value_types !== null && this.value_types !== undefined) {
output.writeFieldBegin('value_types', Thrift.Type.MAP, 2);
output.writeMapBegin(Thrift.Type.STRING, Thrift.Type.STRING, Thrift.objectLength(this.value_types));
for (var kiter190 in this.value_types)
{
if (this.value_types.hasOwnProperty(kiter190))
{
var viter191 = this.value_types[kiter190];
output.writeString(kiter190);
output.writeString(viter191);
}
}
output.writeMapEnd();
output.writeFieldEnd();
}
if (this.default_name_type !== null && this.default_name_type !== undefined) {
output.writeFieldBegin('default_name_type', Thrift.Type.STRING, 3);
output.writeString(this.default_name_type);
output.writeFieldEnd();
output.writeString(this.contentClass);
output.writeFieldEnd();
}
if (this.applicationData !== null && this.applicationData !== undefined) {
output.writeFieldBegin('applicationData', Thrift.Type.STRUCT, 23);
this.applicationData.write(output);
output.writeFieldEnd();
}
if (this.lastEditedBy !== null && this.lastEditedBy !== undefined) {
output.writeFieldBegin('lastEditedBy', Thrift.Type.STRING, 24);
output.writeString(this.lastEditedBy);
output.writeFieldEnd();
}
if (this.classifications !== null && this.classifications !== undefined) {
output.writeFieldBegin('classifications', Thrift.Type.MAP, 26);
output.writeMapBegin(Thrift.Type.STRING, Thrift.Type.STRING, Thrift.objectLength(this.classifications));
for (var kiter42 in this.classifications)
{
if (this.classifications.hasOwnProperty(kiter42))
{
var viter43 = this.classifications[kiter42];
output.writeString(kiter42);
output.writeString(viter43);
}
}
output.writeMapEnd();
output.writeFieldEnd();
}
output.writeFieldStop();
output.writeStructEnd();
return;
};
output.writeString(this.key_validation_class);
output.writeFieldEnd();
}
if (this.key_alias !== null && this.key_alias !== undefined) {
output.writeFieldBegin('key_alias', Thrift.Type.STRING, 28);
output.writeString(this.key_alias);
output.writeFieldEnd();
}
if (this.compaction_strategy !== null && this.compaction_strategy !== undefined) {
output.writeFieldBegin('compaction_strategy', Thrift.Type.STRING, 29);
output.writeString(this.compaction_strategy);
output.writeFieldEnd();
}
if (this.compaction_strategy_options !== null && this.compaction_strategy_options !== undefined) {
output.writeFieldBegin('compaction_strategy_options', Thrift.Type.MAP, 30);
output.writeMapBegin(Thrift.Type.STRING, Thrift.Type.STRING, Thrift.objectLength(this.compaction_strategy_options));
for (var kiter141 in this.compaction_strategy_options)
{
if (this.compaction_strategy_options.hasOwnProperty(kiter141))
{
var viter142 = this.compaction_strategy_options[kiter141];
output.writeString(kiter141);
output.writeString(viter142);
}
}
output.writeMapEnd();
output.writeFieldEnd();
}
if (this.compression_options !== null && this.compression_options !== undefined) {
output.writeFieldBegin('compression_options', Thrift.Type.MAP, 32);
output.writeMapBegin(Thrift.Type.STRING, Thrift.Type.STRING, Thrift.objectLength(this.compression_options));
for (var kiter143 in this.compression_options)
KsDef.prototype.write = function(output) {
output.writeStructBegin('KsDef');
if (this.name) {
output.writeFieldBegin('name', Thrift.Type.STRING, 1);
output.writeString(this.name);
output.writeFieldEnd();
}
if (this.strategy_class) {
output.writeFieldBegin('strategy_class', Thrift.Type.STRING, 2);
output.writeString(this.strategy_class);
output.writeFieldEnd();
}
if (this.strategy_options) {
output.writeFieldBegin('strategy_options', Thrift.Type.MAP, 3);
output.writeMapBegin(Thrift.Type.STRING, Thrift.Type.STRING, Thrift.objectLength(this.strategy_options));
for (var kiter135 in this.strategy_options)
{
if (this.strategy_options.hasOwnProperty(kiter135))
{
var viter136 = this.strategy_options[kiter135];
output.writeString(kiter135);
output.writeString(viter136);
}
}
output.writeMapEnd();
output.writeFieldEnd();
}
if (this.replication_factor) {
output.writeFieldBegin('replication_factor', Thrift.Type.I32, 4);
output.writeI32(this.replication_factor);
output.writeFieldEnd();
FlowDescriptor.prototype.write = function(output) {
output.writeStructBegin('FlowDescriptor');
if (this.identifier !== null && this.identifier !== undefined) {
output.writeFieldBegin('identifier', Thrift.Type.STRUCT, 1);
this.identifier.write(output);
output.writeFieldEnd();
}
if (this.arguments !== null && this.arguments !== undefined) {
output.writeFieldBegin('arguments', Thrift.Type.MAP, 2);
output.writeMapBegin(Thrift.Type.STRING, Thrift.Type.STRING, Thrift.objectLength(this.arguments));
for (var kiter16 in this.arguments)
{
if (this.arguments.hasOwnProperty(kiter16))
{
var viter17 = this.arguments[kiter16];
output.writeString(kiter16);
output.writeString(viter17);
}
}
output.writeMapEnd();
output.writeFieldEnd();
}
output.writeFieldStop();
output.writeStructEnd();
return;
};
output.writeMapBegin(Thrift.Type.STRING, Thrift.Type.STRING, Thrift.objectLength(this.compaction_strategy_options));
for (var kiter116 in this.compaction_strategy_options)
{
if (this.compaction_strategy_options.hasOwnProperty(kiter116))
{
var viter117 = this.compaction_strategy_options[kiter116];
output.writeString(kiter116);
output.writeString(viter117);
}
}
output.writeMapEnd();
output.writeFieldEnd();
}
if (this.compression_options) {
output.writeFieldBegin('compression_options', Thrift.Type.MAP, 32);
output.writeMapBegin(Thrift.Type.STRING, Thrift.Type.STRING, Thrift.objectLength(this.compression_options));
for (var kiter118 in this.compression_options)
{
if (this.compression_options.hasOwnProperty(kiter118))
{
var viter119 = this.compression_options[kiter118];
output.writeString(kiter118);
output.writeString(viter119);
}
}
output.writeMapEnd();
output.writeFieldEnd();
}
if (this.bloom_filter_fp_chance) {
output.writeFieldBegin('bloom_filter_fp_chance', Thrift.Type.DOUBLE, 33);
output.writeDouble(this.bloom_filter_fp_chance);
output.writeFieldEnd();