public void write(TProtocol oprot) throws TException { validate(); oprot.writeStructBegin(STRUCT_DESC); if (this.table != null) { oprot.writeFieldBegin(TABLE_FIELD_DESC); oprot.writeString(this.table); oprot.writeFieldEnd(); } if (this.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(this.key); oprot.writeFieldEnd(); } if (this.cfmap != null) { oprot.writeFieldBegin(CFMAP_FIELD_DESC); { oprot.writeMapBegin(new TMap(TType.STRING, TType.LIST, this.cfmap.size())); for (Map.Entry<String, List<superColumn_t>> _iter36 : this.cfmap.entrySet()) { oprot.writeString(_iter36.getKey()); { oprot.writeListBegin(new TList(TType.STRUCT, _iter36.getValue().size())); for (superColumn_t _iter37 : _iter36.getValue()) { _iter37.write(oprot); } oprot.writeListEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (this.cfmapdel != null) { oprot.writeFieldBegin(CFMAPDEL_FIELD_DESC); { oprot.writeMapBegin(new TMap(TType.STRING, TType.LIST, this.cfmapdel.size())); for (Map.Entry<String, List<superColumn_t>> _iter38 : this.cfmapdel.entrySet()) { oprot.writeString(_iter38.getKey()); { oprot.writeListBegin(new TList(TType.STRUCT, _iter38.getValue().size())); for (superColumn_t _iter39 : _iter38.getValue()) { _iter39.write(oprot); } oprot.writeListEnd(); } } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, ClusterWorkerHeartbeat struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.storm_id != null) { oprot.writeFieldBegin(STORM_ID_FIELD_DESC); oprot.writeString(struct.storm_id); oprot.writeFieldEnd(); } if (struct.executor_stats != null) { oprot.writeFieldBegin(EXECUTOR_STATS_FIELD_DESC); { oprot.writeMapBegin( new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRUCT, org.apache.thrift.protocol.TType.STRUCT, struct.executor_stats.size())); for (Map.Entry<ExecutorInfo, ExecutorStats> _iter612 : struct.executor_stats.entrySet()) { _iter612.getKey().write(oprot); _iter612.getValue().write(oprot); } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldBegin(TIME_SECS_FIELD_DESC); oprot.writeI32(struct.time_secs); oprot.writeFieldEnd(); oprot.writeFieldBegin(UPTIME_SECS_FIELD_DESC); oprot.writeI32(struct.uptime_secs); oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, DomainVersionMetadata struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.properties != null) { oprot.writeFieldBegin(PROPERTIES_FIELD_DESC); oprot.writeBinary(struct.properties); oprot.writeFieldEnd(); } if (struct.partitions != null) { oprot.writeFieldBegin(PARTITIONS_FIELD_DESC); { oprot.writeMapBegin( new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.STRUCT, struct.partitions.size())); for (Map.Entry<Integer, PartitionMetadata> _iter12 : struct.partitions.entrySet()) { oprot.writeI32(_iter12.getKey()); _iter12.getValue().write(oprot); } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldBegin(DEFUNCT_FIELD_DESC); oprot.writeBool(struct.defunct); oprot.writeFieldEnd(); oprot.writeFieldBegin(CLOSED_AT_FIELD_DESC); oprot.writeI64(struct.closed_at); oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, Type struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.types != null) { oprot.writeFieldBegin(TYPES_FIELD_DESC); { oprot.writeMapBegin( new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.STRUCT, struct.types.size())); for (Map.Entry<Integer, Typ> _iter4 : struct.types.entrySet()) { oprot.writeI32(_iter4.getKey()); _iter4.getValue().write(oprot); } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldBegin(ROOT_FIELD_DESC); oprot.writeI32(struct.root); oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, ClusterData struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.clusterName != null) { if (struct.isSetClusterName()) { oprot.writeFieldBegin(CLUSTER_NAME_FIELD_DESC); oprot.writeString(struct.clusterName); oprot.writeFieldEnd(); } } if (struct.groups != null) { if (struct.isSetGroups()) { oprot.writeFieldBegin(GROUPS_FIELD_DESC); { oprot.writeMapBegin( new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, struct.groups.size())); for (Map.Entry<String, GroupData> _iter12 : struct.groups.entrySet()) { oprot.writeString(_iter12.getKey()); _iter12.getValue().write(oprot); } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, AggregationInfo struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.aggregationType != null) { if (struct.isSetAggregationType()) { oprot.writeFieldBegin(AGGREGATION_TYPE_FIELD_DESC); oprot.writeString(struct.aggregationType); oprot.writeFieldEnd(); } } if (struct.aggregationParams != null) { if (struct.isSetAggregationParams()) { oprot.writeFieldBegin(AGGREGATION_PARAMS_FIELD_DESC); { oprot.writeMapBegin( new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.aggregationParams.size())); for (Map.Entry<String, String> _iter30 : struct.aggregationParams.entrySet()) { oprot.writeString(_iter30.getKey()); oprot.writeString(_iter30.getValue()); } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, KsDef struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.name != null) { oprot.writeFieldBegin(NAME_FIELD_DESC); oprot.writeString(struct.name); oprot.writeFieldEnd(); } if (struct.strategy_class != null) { oprot.writeFieldBegin(STRATEGY_CLASS_FIELD_DESC); oprot.writeString(struct.strategy_class); oprot.writeFieldEnd(); } if (struct.strategy_options != null) { if (struct.isSetStrategy_options()) { oprot.writeFieldBegin(STRATEGY_OPTIONS_FIELD_DESC); { oprot.writeMapBegin( new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.strategy_options.size())); for (Map.Entry<String, String> _iter81 : struct.strategy_options.entrySet()) { oprot.writeString(_iter81.getKey()); oprot.writeString(_iter81.getValue()); } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } } if (struct.isSetReplication_factor()) { oprot.writeFieldBegin(REPLICATION_FACTOR_FIELD_DESC); oprot.writeI32(struct.replication_factor); oprot.writeFieldEnd(); } if (struct.cf_defs != null) { oprot.writeFieldBegin(CF_DEFS_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRUCT, struct.cf_defs.size())); for (CfDef _iter82 : struct.cf_defs) { _iter82.write(oprot); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if (struct.isSetDurable_writes()) { oprot.writeFieldBegin(DURABLE_WRITES_FIELD_DESC); oprot.writeBool(struct.durable_writes); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, TPermissionsUpdate struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); oprot.writeFieldBegin(HASFULL_IMAGE_FIELD_DESC); oprot.writeBool(struct.hasfullImage); oprot.writeFieldEnd(); oprot.writeFieldBegin(SEQ_NUM_FIELD_DESC); oprot.writeI64(struct.seqNum); oprot.writeFieldEnd(); if (struct.privilegeChanges != null) { oprot.writeFieldBegin(PRIVILEGE_CHANGES_FIELD_DESC); { oprot.writeMapBegin( new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, struct.privilegeChanges.size())); for (Map.Entry<String, TPrivilegeChanges> _iter110 : struct.privilegeChanges.entrySet()) { oprot.writeString(_iter110.getKey()); _iter110.getValue().write(oprot); } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (struct.roleChanges != null) { oprot.writeFieldBegin(ROLE_CHANGES_FIELD_DESC); { oprot.writeMapBegin( new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, struct.roleChanges.size())); for (Map.Entry<String, TRoleChanges> _iter111 : struct.roleChanges.entrySet()) { oprot.writeString(_iter111.getKey()); _iter111.getValue().write(oprot); } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, TIncrement struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.row != null) { oprot.writeFieldBegin(ROW_FIELD_DESC); oprot.writeBinary(struct.row); oprot.writeFieldEnd(); } if (struct.columns != null) { oprot.writeFieldBegin(COLUMNS_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRUCT, struct.columns.size())); for (TColumnIncrement _iter77 : struct.columns) { _iter77.write(oprot); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if (struct.attributes != null) { if (struct.isSetAttributes()) { oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC); { oprot.writeMapBegin( new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.attributes.size())); for (Map.Entry<ByteBuffer, ByteBuffer> _iter78 : struct.attributes.entrySet()) { oprot.writeBinary(_iter78.getKey()); oprot.writeBinary(_iter78.getValue()); } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } } if (struct.durability != null) { if (struct.isSetDurability()) { oprot.writeFieldBegin(DURABILITY_FIELD_DESC); oprot.writeI32(struct.durability.getValue()); oprot.writeFieldEnd(); } } if (struct.cellVisibility != null) { if (struct.isSetCellVisibility()) { oprot.writeFieldBegin(CELL_VISIBILITY_FIELD_DESC); struct.cellVisibility.write(oprot); oprot.writeFieldEnd(); } } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, ResourceJobManager struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.resourceJobManagerId != null) { oprot.writeFieldBegin(RESOURCE_JOB_MANAGER_ID_FIELD_DESC); oprot.writeString(struct.resourceJobManagerId); oprot.writeFieldEnd(); } if (struct.resourceJobManagerType != null) { oprot.writeFieldBegin(RESOURCE_JOB_MANAGER_TYPE_FIELD_DESC); oprot.writeI32(struct.resourceJobManagerType.getValue()); oprot.writeFieldEnd(); } if (struct.pushMonitoringEndpoint != null) { if (struct.isSetPushMonitoringEndpoint()) { oprot.writeFieldBegin(PUSH_MONITORING_ENDPOINT_FIELD_DESC); oprot.writeString(struct.pushMonitoringEndpoint); oprot.writeFieldEnd(); } } if (struct.jobManagerBinPath != null) { if (struct.isSetJobManagerBinPath()) { oprot.writeFieldBegin(JOB_MANAGER_BIN_PATH_FIELD_DESC); oprot.writeString(struct.jobManagerBinPath); oprot.writeFieldEnd(); } } if (struct.jobManagerCommands != null) { if (struct.isSetJobManagerCommands()) { oprot.writeFieldBegin(JOB_MANAGER_COMMANDS_FIELD_DESC); { oprot.writeMapBegin( new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.STRING, struct.jobManagerCommands.size())); for (Map.Entry<JobManagerCommand, String> _iter4 : struct.jobManagerCommands.entrySet()) { oprot.writeI32(_iter4.getKey().getValue()); oprot.writeString(_iter4.getValue()); } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, IteratorSetting struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); oprot.writeFieldBegin(PRIORITY_FIELD_DESC); oprot.writeI32(struct.priority); oprot.writeFieldEnd(); if (struct.name != null) { oprot.writeFieldBegin(NAME_FIELD_DESC); oprot.writeString(struct.name); oprot.writeFieldEnd(); } if (struct.iteratorClass != null) { oprot.writeFieldBegin(ITERATOR_CLASS_FIELD_DESC); oprot.writeString(struct.iteratorClass); oprot.writeFieldEnd(); } if (struct.properties != null) { oprot.writeFieldBegin(PROPERTIES_FIELD_DESC); { oprot.writeMapBegin( new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.properties.size())); for (Map.Entry<String, String> _iter20 : struct.properties.entrySet()) { oprot.writeString(_iter20.getKey()); oprot.writeString(_iter20.getValue()); } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); if (this.credentials != null) { oprot.writeFieldBegin(CREDENTIALS_FIELD_DESC); { oprot.writeMapBegin( new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, this.credentials.size())); for (Map.Entry<String, String> _iter28 : this.credentials.entrySet()) { oprot.writeString(_iter28.getKey()); oprot.writeString(_iter28.getValue()); } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(TProtocol oprot) throws TException { validate(); oprot.writeStructBegin(STRUCT_DESC); if (this.row != null) { oprot.writeFieldBegin(ROW_FIELD_DESC); oprot.writeBinary(this.row); oprot.writeFieldEnd(); } if (this.columns != null) { oprot.writeFieldBegin(COLUMNS_FIELD_DESC); { oprot.writeMapBegin(new TMap(TType.STRING, TType.STRUCT, this.columns.size())); for (Map.Entry<byte[], TCell> _iter8 : this.columns.entrySet()) { oprot.writeBinary(_iter8.getKey()); _iter8.getValue().write(oprot); } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, RebalanceOptions struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.isSetWait_secs()) { oprot.writeFieldBegin(WAIT_SECS_FIELD_DESC); oprot.writeI32(struct.wait_secs); oprot.writeFieldEnd(); } if (struct.isSetNum_workers()) { oprot.writeFieldBegin(NUM_WORKERS_FIELD_DESC); oprot.writeI32(struct.num_workers); oprot.writeFieldEnd(); } if (struct.num_executors != null) { if (struct.isSetNum_executors()) { oprot.writeFieldBegin(NUM_EXECUTORS_FIELD_DESC); { oprot.writeMapBegin( new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.I32, struct.num_executors.size())); for (Map.Entry<String, Integer> _iter320 : struct.num_executors.entrySet()) { oprot.writeString(_iter320.getKey()); oprot.writeI32(_iter320.getValue()); } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); if (this.tableName != null) { oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC); oprot.writeString(this.tableName); oprot.writeFieldEnd(); } if (this.dbName != null) { oprot.writeFieldBegin(DB_NAME_FIELD_DESC); oprot.writeString(this.dbName); oprot.writeFieldEnd(); } if (this.owner != null) { oprot.writeFieldBegin(OWNER_FIELD_DESC); oprot.writeString(this.owner); oprot.writeFieldEnd(); } oprot.writeFieldBegin(CREATE_TIME_FIELD_DESC); oprot.writeI32(this.createTime); oprot.writeFieldEnd(); oprot.writeFieldBegin(LAST_ACCESS_TIME_FIELD_DESC); oprot.writeI32(this.lastAccessTime); oprot.writeFieldEnd(); oprot.writeFieldBegin(RETENTION_FIELD_DESC); oprot.writeI32(this.retention); oprot.writeFieldEnd(); if (this.sd != null) { oprot.writeFieldBegin(SD_FIELD_DESC); this.sd.write(oprot); oprot.writeFieldEnd(); } if (this.partitionKeys != null) { oprot.writeFieldBegin(PARTITION_KEYS_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRUCT, this.partitionKeys.size())); for (FieldSchema _iter73 : this.partitionKeys) { _iter73.write(oprot); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if (this.parameters != null) { oprot.writeFieldBegin(PARAMETERS_FIELD_DESC); { oprot.writeMapBegin( new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, this.parameters.size())); for (Map.Entry<String, String> _iter74 : this.parameters.entrySet()) { oprot.writeString(_iter74.getKey()); oprot.writeString(_iter74.getValue()); } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } if (this.viewOriginalText != null) { oprot.writeFieldBegin(VIEW_ORIGINAL_TEXT_FIELD_DESC); oprot.writeString(this.viewOriginalText); oprot.writeFieldEnd(); } if (this.viewExpandedText != null) { oprot.writeFieldBegin(VIEW_EXPANDED_TEXT_FIELD_DESC); oprot.writeString(this.viewExpandedText); oprot.writeFieldEnd(); } if (this.tableType != null) { oprot.writeFieldBegin(TABLE_TYPE_FIELD_DESC); oprot.writeString(this.tableType); oprot.writeFieldEnd(); } if (this.privileges != null) { if (isSetPrivileges()) { oprot.writeFieldBegin(PRIVILEGES_FIELD_DESC); this.privileges.write(oprot); oprot.writeFieldEnd(); } } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, SkewedInfo struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.skewedColNames != null) { oprot.writeFieldBegin(SKEWED_COL_NAMES_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRING, struct.skewedColNames.size())); for (String _iter130 : struct.skewedColNames) { oprot.writeString(_iter130); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if (struct.skewedColValues != null) { oprot.writeFieldBegin(SKEWED_COL_VALUES_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.LIST, struct.skewedColValues.size())); for (List<String> _iter131 : struct.skewedColValues) { { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRING, _iter131.size())); for (String _iter132 : _iter131) { oprot.writeString(_iter132); } oprot.writeListEnd(); } } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if (struct.skewedColValueLocationMaps != null) { oprot.writeFieldBegin(SKEWED_COL_VALUE_LOCATION_MAPS_FIELD_DESC); { oprot.writeMapBegin( new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.LIST, org.apache.thrift.protocol.TType.STRING, struct.skewedColValueLocationMaps.size())); for (Map.Entry<List<String>, String> _iter133 : struct.skewedColValueLocationMaps.entrySet()) { { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRING, _iter133.getKey().size())); for (String _iter134 : _iter133.getKey()) { oprot.writeString(_iter134); } oprot.writeListEnd(); } oprot.writeString(_iter133.getValue()); } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, CrazyNesting struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.string_field != null) { oprot.writeFieldBegin(STRING_FIELD_FIELD_DESC); oprot.writeString(struct.string_field); oprot.writeFieldEnd(); } if (struct.set_field != null) { if (struct.isSetSet_field()) { oprot.writeFieldBegin(SET_FIELD_FIELD_DESC); { oprot.writeSetBegin( new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRUCT, struct.set_field.size())); for (Insanity _iter45 : struct.set_field) { _iter45.write(oprot); } oprot.writeSetEnd(); } oprot.writeFieldEnd(); } } if (struct.list_field != null) { oprot.writeFieldBegin(LIST_FIELD_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.MAP, struct.list_field.size())); for (Map<Set<Integer>, Map<Integer, Set<List<Map<Insanity, String>>>>> _iter46 : struct.list_field) { { oprot.writeMapBegin( new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.SET, org.apache.thrift.protocol.TType.MAP, _iter46.size())); for (Map.Entry<Set<Integer>, Map<Integer, Set<List<Map<Insanity, String>>>>> _iter47 : _iter46.entrySet()) { { oprot.writeSetBegin( new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.I32, _iter47.getKey().size())); for (int _iter48 : _iter47.getKey()) { oprot.writeI32(_iter48); } oprot.writeSetEnd(); } { oprot.writeMapBegin( new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.SET, _iter47.getValue().size())); for (Map.Entry<Integer, Set<List<Map<Insanity, String>>>> _iter49 : _iter47.getValue().entrySet()) { oprot.writeI32(_iter49.getKey()); { oprot.writeSetBegin( new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.LIST, _iter49.getValue().size())); for (List<Map<Insanity, String>> _iter50 : _iter49.getValue()) { { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.MAP, _iter50.size())); for (Map<Insanity, String> _iter51 : _iter50) { { oprot.writeMapBegin( new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRUCT, org.apache.thrift.protocol.TType.STRING, _iter51.size())); for (Map.Entry<Insanity, String> _iter52 : _iter51.entrySet()) { _iter52.getKey().write(oprot); oprot.writeString(_iter52.getValue()); } oprot.writeMapEnd(); } } oprot.writeListEnd(); } } oprot.writeSetEnd(); } } oprot.writeMapEnd(); } } oprot.writeMapEnd(); } } oprot.writeListEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void writeMapBegin(TMap map) throws TException { delegate.writeMapBegin(map); }
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); if (this.cols != null) { oprot.writeFieldBegin(COLS_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRUCT, this.cols.size())); for (FieldSchema _iter62 : this.cols) { _iter62.write(oprot); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if (this.location != null) { oprot.writeFieldBegin(LOCATION_FIELD_DESC); oprot.writeString(this.location); oprot.writeFieldEnd(); } if (this.inputFormat != null) { oprot.writeFieldBegin(INPUT_FORMAT_FIELD_DESC); oprot.writeString(this.inputFormat); oprot.writeFieldEnd(); } if (this.outputFormat != null) { oprot.writeFieldBegin(OUTPUT_FORMAT_FIELD_DESC); oprot.writeString(this.outputFormat); oprot.writeFieldEnd(); } oprot.writeFieldBegin(COMPRESSED_FIELD_DESC); oprot.writeBool(this.compressed); oprot.writeFieldEnd(); oprot.writeFieldBegin(NUM_BUCKETS_FIELD_DESC); oprot.writeI32(this.numBuckets); oprot.writeFieldEnd(); if (this.serdeInfo != null) { oprot.writeFieldBegin(SERDE_INFO_FIELD_DESC); this.serdeInfo.write(oprot); oprot.writeFieldEnd(); } if (this.bucketCols != null) { oprot.writeFieldBegin(BUCKET_COLS_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRING, this.bucketCols.size())); for (String _iter63 : this.bucketCols) { oprot.writeString(_iter63); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if (this.sortCols != null) { oprot.writeFieldBegin(SORT_COLS_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRUCT, this.sortCols.size())); for (Order _iter64 : this.sortCols) { _iter64.write(oprot); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if (this.parameters != null) { oprot.writeFieldBegin(PARAMETERS_FIELD_DESC); { oprot.writeMapBegin( new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, this.parameters.size())); for (Map.Entry<String, String> _iter65 : this.parameters.entrySet()) { oprot.writeString(_iter65.getKey()); oprot.writeString(_iter65.getValue()); } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, TDelete struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.row != null) { oprot.writeFieldBegin(ROW_FIELD_DESC); oprot.writeBinary(struct.row); oprot.writeFieldEnd(); } if (struct.columns != null) { if (struct.isSetColumns()) { oprot.writeFieldBegin(COLUMNS_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRUCT, struct.columns.size())); for (TColumn _iter51 : struct.columns) { _iter51.write(oprot); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } } if (struct.isSetTimestamp()) { oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); } if (struct.deleteType != null) { if (struct.isSetDeleteType()) { oprot.writeFieldBegin(DELETE_TYPE_FIELD_DESC); oprot.writeI32(struct.deleteType.getValue()); oprot.writeFieldEnd(); } } if (struct.isSetWriteToWal()) { oprot.writeFieldBegin(WRITE_TO_WAL_FIELD_DESC); oprot.writeBool(struct.writeToWal); oprot.writeFieldEnd(); } if (struct.attributes != null) { if (struct.isSetAttributes()) { oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC); { oprot.writeMapBegin( new org.apache.thrift.protocol.TMap( org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.attributes.size())); for (Map.Entry<ByteBuffer, ByteBuffer> _iter52 : struct.attributes.entrySet()) { oprot.writeBinary(_iter52.getKey()); oprot.writeBinary(_iter52.getValue()); } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } } if (struct.durability != null) { if (struct.isSetDurability()) { oprot.writeFieldBegin(DURABILITY_FIELD_DESC); oprot.writeI32(struct.durability.getValue()); oprot.writeFieldEnd(); } } oprot.writeFieldStop(); oprot.writeStructEnd(); }