public void write(org.apache.thrift.protocol.TProtocol oprot, ConditionalUpdates struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.conditions != null) { oprot.writeFieldBegin(CONDITIONS_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRUCT, struct.conditions.size())); for (Condition _iter96 : struct.conditions) { _iter96.write(oprot); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if (struct.updates != null) { oprot.writeFieldBegin(UPDATES_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRUCT, struct.updates.size())); for (ColumnUpdate _iter97 : struct.updates) { _iter97.write(oprot); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, tokenize_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.LIST, struct.success.size())); for (List<String> _iter6 : struct.success) { { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRING, _iter6.size())); for (String _iter7 : _iter6) { oprot.writeString(_iter7); } oprot.writeListEnd(); } } oprot.writeListEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write( org.apache.thrift.protocol.TProtocol oprot, VersionControlStatsRemoteLogEntry struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.currentRevisionId != null) { if (struct.isSetCurrentRevisionId()) { oprot.writeFieldBegin(CURRENT_REVISION_ID_FIELD_DESC); oprot.writeString(struct.currentRevisionId); oprot.writeFieldEnd(); } } if (struct.baseBookmarks != null) { if (struct.isSetBaseBookmarks()) { oprot.writeFieldBegin(BASE_BOOKMARKS_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRING, struct.baseBookmarks.size())); for (String _iter6 : struct.baseBookmarks) { oprot.writeString(_iter6); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } } if (struct.pathsChanged != null) { if (struct.isSetPathsChanged()) { oprot.writeFieldBegin(PATHS_CHANGED_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRING, struct.pathsChanged.size())); for (String _iter7 : struct.pathsChanged) { oprot.writeString(_iter7); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } } if (struct.isSetPathsChangedSampled()) { oprot.writeFieldBegin(PATHS_CHANGED_SAMPLED_FIELD_DESC); oprot.writeBool(struct.pathsChangedSampled); oprot.writeFieldEnd(); } if (struct.isSetUnsampledPathsChangedCount()) { oprot.writeFieldBegin(UNSAMPLED_PATHS_CHANGED_COUNT_FIELD_DESC); oprot.writeI32(struct.unsampledPathsChangedCount); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
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, TDescriptorTable struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.slotDescriptors != null) { if (struct.isSetSlotDescriptors()) { oprot.writeFieldBegin(SLOT_DESCRIPTORS_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRUCT, struct.slotDescriptors.size())); for (TSlotDescriptor _iter59 : struct.slotDescriptors) { _iter59.write(oprot); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } } if (struct.tupleDescriptors != null) { oprot.writeFieldBegin(TUPLE_DESCRIPTORS_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRUCT, struct.tupleDescriptors.size())); for (TTupleDescriptor _iter60 : struct.tupleDescriptors) { _iter60.write(oprot); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if (struct.tableDescriptors != null) { if (struct.isSetTableDescriptors()) { oprot.writeFieldBegin(TABLE_DESCRIPTORS_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRUCT, struct.tableDescriptors.size())); for (TTableDescriptor _iter61 : struct.tableDescriptors) { _iter61.write(oprot); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, TRowSet struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); oprot.writeFieldBegin(START_ROW_OFFSET_FIELD_DESC); oprot.writeI64(struct.startRowOffset); oprot.writeFieldEnd(); if (struct.rows != null) { oprot.writeFieldBegin(ROWS_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRUCT, struct.rows.size())); for (TRow _iter124 : struct.rows) { _iter124.write(oprot); } oprot.writeListEnd(); } 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 _iter125 : struct.columns) { _iter125.write(oprot); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } } if (struct.binaryColumns != null) { if (struct.isSetBinaryColumns()) { oprot.writeFieldBegin(BINARY_COLUMNS_FIELD_DESC); oprot.writeBinary(struct.binaryColumns); oprot.writeFieldEnd(); } } if (struct.isSetColumnCount()) { oprot.writeFieldBegin(COLUMN_COUNT_FIELD_DESC); oprot.writeI32(struct.columnCount); 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); oprot.writeFieldBegin(MENU_ITEM_ID_FIELD_DESC); oprot.writeI64(this.menuItemId); oprot.writeFieldEnd(); if (this.singleChoiceOptions != null) { if (isSetSingleChoiceOptions()) { oprot.writeFieldBegin(SINGLE_CHOICE_OPTIONS_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRUCT, this.singleChoiceOptions.size())); for (org.pocketcampus.platform.sdk.shared.common.ChosenSingleChoiceOption _iter22 : this.singleChoiceOptions) { _iter22.write(oprot); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } } if (this.multiChoiceOptions != null) { if (isSetMultiChoiceOptions()) { oprot.writeFieldBegin(MULTI_CHOICE_OPTIONS_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRUCT, this.multiChoiceOptions.size())); for (org.pocketcampus.platform.sdk.shared.common.ChosenMultiChoiceOption _iter23 : this.multiChoiceOptions) { _iter23.write(oprot); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } } if (this.comments != null) { if (isSetComments()) { oprot.writeFieldBegin(COMMENTS_FIELD_DESC); oprot.writeString(this.comments); oprot.writeFieldEnd(); } } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, TI16Column struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.values != null) { oprot.writeFieldBegin(VALUES_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.I16, struct.values.size())); for (short _iter73 : struct.values) { oprot.writeI16(_iter73); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if (struct.nulls != null) { oprot.writeFieldBegin(NULLS_FIELD_DESC); oprot.writeBinary(struct.nulls); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, SettableBlobMeta struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.acl != null) { oprot.writeFieldBegin(ACL_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRUCT, struct.acl.size())); for (AccessControl _iter561 : struct.acl) { _iter561.write(oprot); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if (struct.is_set_replication_factor()) { oprot.writeFieldBegin(REPLICATION_FACTOR_FIELD_DESC); oprot.writeI32(struct.replication_factor); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, BlockInfo struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); oprot.writeFieldBegin(BLOCK_ID_FIELD_DESC); oprot.writeI64(struct.blockId); oprot.writeFieldEnd(); oprot.writeFieldBegin(LENGTH_FIELD_DESC); oprot.writeI64(struct.length); oprot.writeFieldEnd(); if (struct.locations != null) { oprot.writeFieldBegin(LOCATIONS_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRUCT, struct.locations.size())); for (BlockLocation _iter3 : struct.locations) { _iter3.write(oprot); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, WorkerSummary struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); oprot.writeFieldBegin(PORT_FIELD_DESC); oprot.writeI32(struct.port); oprot.writeFieldEnd(); oprot.writeFieldBegin(UPTIME_FIELD_DESC); oprot.writeI32(struct.uptime); oprot.writeFieldEnd(); if (struct.topology != null) { oprot.writeFieldBegin(TOPOLOGY_FIELD_DESC); oprot.writeString(struct.topology); oprot.writeFieldEnd(); } if (struct.tasks != null) { oprot.writeFieldBegin(TASKS_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRUCT, struct.tasks.size())); for (TaskComponent _iter101 : struct.tasks) { _iter101.write(oprot); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(TProtocol _oprot) throws org.apache.thrift.TException { validate(); _oprot.writeStructBegin(STRUCT); _oprot.writeFieldBegin(UrlField); String url_item = url; _oprot.writeString(url_item); _oprot.writeFieldEnd(); if (title.isDefined()) { _oprot.writeFieldBegin(TitleField); String title_item = title.get(); _oprot.writeString(title_item); _oprot.writeFieldEnd(); } if (keywords.isDefined()) { _oprot.writeFieldBegin(KeywordsField); String keywords_item = keywords.get(); _oprot.writeString(keywords_item); _oprot.writeFieldEnd(); } _oprot.writeFieldBegin(TypesField); List<RecommendTypeParam> types_item = types; _oprot.writeListBegin(new TList(TType.STRUCT, types_item.size())); for (RecommendTypeParam _types_item_element : types_item) { _types_item_element.write(_oprot); } _oprot.writeListEnd(); _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); oprot.writeFieldBegin(PORT_FIELD_DESC); oprot.writeI32(this.port); oprot.writeFieldEnd(); if (this.topology != null) { oprot.writeFieldBegin(TOPOLOGY_FIELD_DESC); oprot.writeString(this.topology); oprot.writeFieldEnd(); } if (this.tasks != null) { oprot.writeFieldBegin(TASKS_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRUCT, this.tasks.size())); for (TaskSummary _iter196 : this.tasks) { _iter196.write(oprot); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write( org.apache.thrift.protocol.TProtocol oprot, TGetAllCatalogObjectsResponse struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); oprot.writeFieldBegin(MAX_CATALOG_VERSION_FIELD_DESC); oprot.writeI64(struct.max_catalog_version); oprot.writeFieldEnd(); if (struct.objects != null) { oprot.writeFieldBegin(OBJECTS_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRUCT, struct.objects.size())); for (com.cloudera.impala.thrift.TCatalogObject _iter3 : struct.objects) { _iter3.write(oprot); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, TExchangeNode struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.input_row_tuples != null) { oprot.writeFieldBegin(INPUT_ROW_TUPLES_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.I32, struct.input_row_tuples.size())); for (int _iter147 : struct.input_row_tuples) { oprot.writeI32(_iter147); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if (struct.sort_info != null) { if (struct.isSetSort_info()) { oprot.writeFieldBegin(SORT_INFO_FIELD_DESC); struct.sort_info.write(oprot); oprot.writeFieldEnd(); } } if (struct.isSetOffset()) { oprot.writeFieldBegin(OFFSET_FIELD_DESC); oprot.writeI64(struct.offset); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, QueryFListResult struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.result != null) { oprot.writeFieldBegin(RESULT_FIELD_DESC); struct.result.write(oprot); oprot.writeFieldEnd(); } if (struct.files != null) { if (struct.isSetFiles()) { oprot.writeFieldBegin(FILES_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRUCT, struct.files.size())); for (FileInfo _iter3 : struct.files) { _iter3.write(oprot); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } } if (struct.isSetSpare()) { oprot.writeFieldBegin(SPARE_FIELD_DESC); oprot.writeI32(struct.spare); 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.title != null) { oprot.writeFieldBegin(TITLE_FIELD_DESC); oprot.writeString(this.title); oprot.writeFieldEnd(); } if (this.content != null) { oprot.writeFieldBegin(CONTENT_FIELD_DESC); oprot.writeString(this.content); oprot.writeFieldEnd(); } if (this.summary != null) { oprot.writeFieldBegin(SUMMARY_FIELD_DESC); oprot.writeString(this.summary); oprot.writeFieldEnd(); } oprot.writeFieldBegin(PUBLISH_TIME_FIELD_DESC); oprot.writeI64(this.publishTime); oprot.writeFieldEnd(); if (this.originalUrl != null) { oprot.writeFieldBegin(ORIGINAL_URL_FIELD_DESC); oprot.writeString(this.originalUrl); oprot.writeFieldEnd(); } if (this.articleFrom != null) { oprot.writeFieldBegin(ARTICLE_FROM_FIELD_DESC); oprot.writeString(this.articleFrom); oprot.writeFieldEnd(); } oprot.writeFieldBegin(ARTICLE_TYPE_FIELD_DESC); oprot.writeI32(this.articleType); oprot.writeFieldEnd(); oprot.writeFieldBegin(TOP_DAY_FIELD_DESC); oprot.writeI32(this.topDay); oprot.writeFieldEnd(); if (this.imageItems != null) { oprot.writeFieldBegin(IMAGE_ITEMS_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRUCT, this.imageItems.size())); for (TImageItem _iter11 : this.imageItems) { _iter11.write(oprot); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if (this.articleUuid != null) { oprot.writeFieldBegin(ARTICLE_UUID_FIELD_DESC); oprot.writeString(this.articleUuid); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, SelectQuery struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.operations != null) { oprot.writeFieldBegin(OPERATIONS_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRUCT, struct.operations.size())); for (SelectOperation _iter19 : struct.operations) { _iter19.write(oprot); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if (struct.page != null) { oprot.writeFieldBegin(PAGE_FIELD_DESC); struct.page.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, LineageCommand struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.commandType != null) { oprot.writeFieldBegin(COMMAND_TYPE_FIELD_DESC); oprot.writeI32(struct.commandType.getValue()); oprot.writeFieldEnd(); } if (struct.checkpointFiles != null) { oprot.writeFieldBegin(CHECKPOINT_FILES_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRUCT, struct.checkpointFiles.size())); for (CheckpointFile _iter11 : struct.checkpointFiles) { _iter11.write(oprot); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, JSONField struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.string_val != null) { if (struct.isSetString_val()) { oprot.writeFieldBegin(STRING_VAL_FIELD_DESC); oprot.writeString(struct.string_val); oprot.writeFieldEnd(); } } if (struct.isSetBool_val()) { oprot.writeFieldBegin(BOOL_VAL_FIELD_DESC); oprot.writeBool(struct.bool_val); oprot.writeFieldEnd(); } if (struct.isSetI32_val()) { oprot.writeFieldBegin(I32_VAL_FIELD_DESC); oprot.writeI32(struct.i32_val); oprot.writeFieldEnd(); } if (struct.isSetI64_val()) { oprot.writeFieldBegin(I64_VAL_FIELD_DESC); oprot.writeI64(struct.i64_val); oprot.writeFieldEnd(); } if (struct.isSetDouble_val()) { oprot.writeFieldBegin(DOUBLE_VAL_FIELD_DESC); oprot.writeDouble(struct.double_val); oprot.writeFieldEnd(); } if (struct.isSetNull_val()) { oprot.writeFieldBegin(NULL_VAL_FIELD_DESC); oprot.writeBool(struct.null_val); oprot.writeFieldEnd(); } if (struct.isSetRef_val()) { oprot.writeFieldBegin(REF_VAL_FIELD_DESC); oprot.writeI32(struct.ref_val); oprot.writeFieldEnd(); } if (struct.array_val != null) { if (struct.isSetArray_val()) { oprot.writeFieldBegin(ARRAY_VAL_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.I32, struct.array_val.size())); for (int _iter115 : struct.array_val) { oprot.writeI32(_iter115); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(TProtocol oprot) throws TException { validate(); oprot.writeStructBegin(STRUCT_DESC); if (this.start_token != null) { oprot.writeFieldBegin(START_TOKEN_FIELD_DESC); oprot.writeString(this.start_token); oprot.writeFieldEnd(); } if (this.end_token != null) { oprot.writeFieldBegin(END_TOKEN_FIELD_DESC); oprot.writeString(this.end_token); oprot.writeFieldEnd(); } if (this.endpoints != null) { oprot.writeFieldBegin(ENDPOINTS_FIELD_DESC); { oprot.writeListBegin(new TList(TType.STRING, this.endpoints.size())); for (String _iter19 : this.endpoints) { oprot.writeString(_iter19); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, TPrioritizeLoadRequest struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.protocol_version != null) { oprot.writeFieldBegin(PROTOCOL_VERSION_FIELD_DESC); oprot.writeI32(struct.protocol_version.getValue()); oprot.writeFieldEnd(); } if (struct.header != null) { if (struct.isSetHeader()) { oprot.writeFieldBegin(HEADER_FIELD_DESC); struct.header.write(oprot); oprot.writeFieldEnd(); } } if (struct.object_descs != null) { oprot.writeFieldBegin(OBJECT_DESCS_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRUCT, struct.object_descs.size())); for (com.cloudera.impala.thrift.TCatalogObject _iter19 : struct.object_descs) { _iter19.write(oprot); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, UnaryPredicate struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.predicateName != null) { oprot.writeFieldBegin(PREDICATE_NAME_FIELD_DESC); oprot.writeString(struct.predicateName); oprot.writeFieldEnd(); } if (struct.values != null) { oprot.writeFieldBegin(VALUES_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRUCT, struct.values.size())); for (PredicateValue _iter3 : struct.values) { _iter3.write(oprot); } oprot.writeListEnd(); } 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.oldTablet != null) { oprot.writeFieldBegin(OLD_TABLET_FIELD_DESC); this.oldTablet.write(oprot); oprot.writeFieldEnd(); } if (this.newTablets != null) { oprot.writeFieldBegin(NEW_TABLETS_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRUCT, this.newTablets.size())); for (org.apache.accumulo.core.data.thrift.TKeyExtent _iter46 : this.newTablets) { _iter46.write(oprot); } oprot.writeListEnd(); } 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, 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, Message struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.kind != null) { oprot.writeFieldBegin(KIND_FIELD_DESC); oprot.writeI32(struct.kind.getValue()); oprot.writeFieldEnd(); } if (struct.dbname != null) { oprot.writeFieldBegin(DBNAME_FIELD_DESC); oprot.writeString(struct.dbname); oprot.writeFieldEnd(); } if (struct.keys != null) { oprot.writeFieldBegin(KEYS_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRING, struct.keys.size())); for (String _iter6 : struct.keys) { oprot.writeString(_iter6); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if (struct.values != null) { oprot.writeFieldBegin(VALUES_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRING, struct.values.size())); for (String _iter7 : struct.values) { oprot.writeString(_iter7); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, CqlPreparedResult struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); oprot.writeFieldBegin(ITEM_ID_FIELD_DESC); oprot.writeI32(struct.itemId); oprot.writeFieldEnd(); oprot.writeFieldBegin(COUNT_FIELD_DESC); oprot.writeI32(struct.count); oprot.writeFieldEnd(); if (struct.variable_types != null) { if (struct.isSetVariable_types()) { oprot.writeFieldBegin(VARIABLE_TYPES_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRING, struct.variable_types.size())); for (String _iter208 : struct.variable_types) { oprot.writeString(_iter208); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } } if (struct.variable_names != null) { if (struct.isSetVariable_names()) { oprot.writeFieldBegin(VARIABLE_NAMES_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRING, struct.variable_names.size())); for (String _iter209 : struct.variable_names) { oprot.writeString(_iter209); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, THashJoinNode struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.join_op != null) { oprot.writeFieldBegin(JOIN_OP_FIELD_DESC); oprot.writeI32(struct.join_op.getValue()); oprot.writeFieldEnd(); } if (struct.eq_join_conjuncts != null) { oprot.writeFieldBegin(EQ_JOIN_CONJUNCTS_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRUCT, struct.eq_join_conjuncts.size())); for (TEqJoinCondition _iter14 : struct.eq_join_conjuncts) { _iter14.write(oprot); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if (struct.other_join_conjuncts != null) { if (struct.isSetOther_join_conjuncts()) { oprot.writeFieldBegin(OTHER_JOIN_CONJUNCTS_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRUCT, struct.other_join_conjuncts.size())); for (com.cloudera.impala.thrift.TExpr _iter15 : struct.other_join_conjuncts) { _iter15.write(oprot); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, ErrorModel struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.errorId != null) { oprot.writeFieldBegin(ERROR_ID_FIELD_DESC); oprot.writeString(struct.errorId); oprot.writeFieldEnd(); } if (struct.isSetCreationTime()) { oprot.writeFieldBegin(CREATION_TIME_FIELD_DESC); oprot.writeI64(struct.creationTime); oprot.writeFieldEnd(); } if (struct.actualErrorMessage != null) { if (struct.isSetActualErrorMessage()) { oprot.writeFieldBegin(ACTUAL_ERROR_MESSAGE_FIELD_DESC); oprot.writeString(struct.actualErrorMessage); oprot.writeFieldEnd(); } } if (struct.userFriendlyMessage != null) { if (struct.isSetUserFriendlyMessage()) { oprot.writeFieldBegin(USER_FRIENDLY_MESSAGE_FIELD_DESC); oprot.writeString(struct.userFriendlyMessage); oprot.writeFieldEnd(); } } if (struct.isSetTransientOrPersistent()) { oprot.writeFieldBegin(TRANSIENT_OR_PERSISTENT_FIELD_DESC); oprot.writeBool(struct.transientOrPersistent); oprot.writeFieldEnd(); } if (struct.rootCauseErrorIdList != null) { if (struct.isSetRootCauseErrorIdList()) { oprot.writeFieldBegin(ROOT_CAUSE_ERROR_ID_LIST_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRING, struct.rootCauseErrorIdList.size())); for (String _iter3 : struct.rootCauseErrorIdList) { oprot.writeString(_iter3); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } } oprot.writeFieldStop(); oprot.writeStructEnd(); }