public void write(TProtocol oprot) throws TException { validate(); oprot.writeStructBegin(STRUCT_DESC); oprot.writeFieldBegin(BYTES_TOTAL_FIELD_DESC); oprot.writeI64(this.bytesTotal); oprot.writeFieldEnd(); oprot.writeFieldBegin(BYTES_USED_FIELD_DESC); oprot.writeI64(this.bytesUsed); oprot.writeFieldEnd(); oprot.writeFieldBegin(BYTES_REMAINING_FIELD_DESC); oprot.writeI64(this.bytesRemaining); oprot.writeFieldEnd(); oprot.writeFieldBegin(BYTES_NON_DFS_FIELD_DESC); oprot.writeI64(this.bytesNonDfs); oprot.writeFieldEnd(); oprot.writeFieldBegin(NUM_LIVE_DATA_NODES_FIELD_DESC); oprot.writeI32(this.numLiveDataNodes); oprot.writeFieldEnd(); oprot.writeFieldBegin(NUM_DEAD_DATA_NODES_FIELD_DESC); oprot.writeI32(this.numDeadDataNodes); oprot.writeFieldEnd(); if (this.upgradeStatus != null) { oprot.writeFieldBegin(UPGRADE_STATUS_FIELD_DESC); this.upgradeStatus.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldBegin(HTTP_PORT_FIELD_DESC); oprot.writeI32(this.httpPort); oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, NimbusSummary struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.host != null) { oprot.writeFieldBegin(HOST_FIELD_DESC); oprot.writeString(struct.host); oprot.writeFieldEnd(); } oprot.writeFieldBegin(PORT_FIELD_DESC); oprot.writeI32(struct.port); oprot.writeFieldEnd(); oprot.writeFieldBegin(UPTIME_SECS_FIELD_DESC); oprot.writeI32(struct.uptime_secs); oprot.writeFieldEnd(); oprot.writeFieldBegin(IS_LEADER_FIELD_DESC); oprot.writeBool(struct.isLeader); oprot.writeFieldEnd(); if (struct.version != null) { oprot.writeFieldBegin(VERSION_FIELD_DESC); oprot.writeString(struct.version); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, Advert struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); oprot.writeFieldBegin(ID_FIELD_DESC); oprot.writeI32(struct.id); oprot.writeFieldEnd(); if (struct.issuer != null) { oprot.writeFieldBegin(ISSUER_FIELD_DESC); struct.issuer.write(oprot); oprot.writeFieldEnd(); } if (struct.book != null) { oprot.writeFieldBegin(BOOK_FIELD_DESC); struct.book.write(oprot); oprot.writeFieldEnd(); } if (struct.advertType != null) { oprot.writeFieldBegin(ADVERT_TYPE_FIELD_DESC); oprot.writeI32(struct.advertType.getValue()); oprot.writeFieldEnd(); } oprot.writeFieldBegin(EXPIRES_FIELD_DESC); oprot.writeI64(struct.expires); oprot.writeFieldEnd(); oprot.writeFieldBegin(PRICE_FIELD_DESC); oprot.writeDouble(struct.price); oprot.writeFieldEnd(); oprot.writeFieldBegin(WINNER_FIELD_DESC); oprot.writeI32(struct.winner); oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, ClientRawTableInfo struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); oprot.writeFieldBegin(ID_FIELD_DESC); oprot.writeI32(struct.id); oprot.writeFieldEnd(); if (struct.name != null) { oprot.writeFieldBegin(NAME_FIELD_DESC); oprot.writeString(struct.name); oprot.writeFieldEnd(); } if (struct.path != null) { oprot.writeFieldBegin(PATH_FIELD_DESC); oprot.writeString(struct.path); oprot.writeFieldEnd(); } oprot.writeFieldBegin(COLUMNS_FIELD_DESC); oprot.writeI32(struct.columns); oprot.writeFieldEnd(); if (struct.metadata != null) { oprot.writeFieldBegin(METADATA_FIELD_DESC); oprot.writeBinary(struct.metadata); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(TProtocol oprot) throws TException { validate(); oprot.writeStructBegin(STRUCT_DESC); oprot.writeFieldBegin(UID_FIELD_DESC); oprot.writeI32(this.uid); oprot.writeFieldEnd(); if (this.itemNumber != null) { oprot.writeFieldBegin(ITEM_NUMBER_FIELD_DESC); oprot.writeString(this.itemNumber); oprot.writeFieldEnd(); } oprot.writeFieldBegin(RESERVE_QUANTITY_FIELD_DESC); oprot.writeI32(this.reserveQuantity); oprot.writeFieldEnd(); if (this.orderNumber != null) { oprot.writeFieldBegin(ORDER_NUMBER_FIELD_DESC); oprot.writeString(this.orderNumber); oprot.writeFieldEnd(); } if (this.fromId != null) { oprot.writeFieldBegin(FROM_ID_FIELD_DESC); oprot.writeString(this.fromId); 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(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(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, 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, PrivilegeGrantInfo struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.privilege != null) { oprot.writeFieldBegin(PRIVILEGE_FIELD_DESC); oprot.writeString(struct.privilege); oprot.writeFieldEnd(); } oprot.writeFieldBegin(CREATE_TIME_FIELD_DESC); oprot.writeI32(struct.createTime); oprot.writeFieldEnd(); if (struct.grantor != null) { oprot.writeFieldBegin(GRANTOR_FIELD_DESC); oprot.writeString(struct.grantor); oprot.writeFieldEnd(); } if (struct.grantorType != null) { oprot.writeFieldBegin(GRANTOR_TYPE_FIELD_DESC); oprot.writeI32(struct.grantorType.getValue()); oprot.writeFieldEnd(); } oprot.writeFieldBegin(GRANT_OPTION_FIELD_DESC); oprot.writeBool(struct.grantOption); 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, TExecPlanFragmentParams 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.fragment != null) { if (struct.isSetFragment()) { oprot.writeFieldBegin(FRAGMENT_FIELD_DESC); struct.fragment.write(oprot); oprot.writeFieldEnd(); } } if (struct.desc_tbl != null) { if (struct.isSetDesc_tbl()) { oprot.writeFieldBegin(DESC_TBL_FIELD_DESC); struct.desc_tbl.write(oprot); oprot.writeFieldEnd(); } } if (struct.params != null) { if (struct.isSetParams()) { oprot.writeFieldBegin(PARAMS_FIELD_DESC); struct.params.write(oprot); oprot.writeFieldEnd(); } } if (struct.coord != null) { if (struct.isSetCoord()) { oprot.writeFieldBegin(COORD_FIELD_DESC); struct.coord.write(oprot); oprot.writeFieldEnd(); } } if (struct.isSetBackend_num()) { oprot.writeFieldBegin(BACKEND_NUM_FIELD_DESC); oprot.writeI32(struct.backend_num); oprot.writeFieldEnd(); } if (struct.query_globals != null) { if (struct.isSetQuery_globals()) { oprot.writeFieldBegin(QUERY_GLOBALS_FIELD_DESC); struct.query_globals.write(oprot); oprot.writeFieldEnd(); } } if (struct.query_options != null) { if (struct.isSetQuery_options()) { oprot.writeFieldBegin(QUERY_OPTIONS_FIELD_DESC); struct.query_options.write(oprot); oprot.writeFieldEnd(); } } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, NetworkDetails struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.networkType != null) { if (struct.isSetNetworkType()) { oprot.writeFieldBegin(NETWORK_TYPE_FIELD_DESC); oprot.writeString(struct.networkType); oprot.writeFieldEnd(); } } if (struct.mobileNetworkType != null) { if (struct.isSetMobileNetworkType()) { oprot.writeFieldBegin(MOBILE_NETWORK_TYPE_FIELD_DESC); oprot.writeString(struct.mobileNetworkType); oprot.writeFieldEnd(); } } if (struct.mobileDataStatus != null) { if (struct.isSetMobileDataStatus()) { oprot.writeFieldBegin(MOBILE_DATA_STATUS_FIELD_DESC); oprot.writeString(struct.mobileDataStatus); oprot.writeFieldEnd(); } } if (struct.mobileDataActivity != null) { if (struct.isSetMobileDataActivity()) { oprot.writeFieldBegin(MOBILE_DATA_ACTIVITY_FIELD_DESC); oprot.writeString(struct.mobileDataActivity); oprot.writeFieldEnd(); } } if (struct.isSetRoamingEnabled()) { oprot.writeFieldBegin(ROAMING_ENABLED_FIELD_DESC); oprot.writeBool(struct.roamingEnabled); oprot.writeFieldEnd(); } if (struct.wifiStatus != null) { if (struct.isSetWifiStatus()) { oprot.writeFieldBegin(WIFI_STATUS_FIELD_DESC); oprot.writeString(struct.wifiStatus); oprot.writeFieldEnd(); } } if (struct.isSetWifiSignalStrength()) { oprot.writeFieldBegin(WIFI_SIGNAL_STRENGTH_FIELD_DESC); oprot.writeI32(struct.wifiSignalStrength); oprot.writeFieldEnd(); } if (struct.isSetWifiLinkSpeed()) { oprot.writeFieldBegin(WIFI_LINK_SPEED_FIELD_DESC); oprot.writeI32(struct.wifiLinkSpeed); 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, MkdirCmd struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.path != null) { oprot.writeFieldBegin(PATH_FIELD_DESC); oprot.writeString(struct.path); oprot.writeFieldEnd(); } oprot.writeFieldBegin(MODE_FIELD_DESC); oprot.writeI32(struct.mode); oprot.writeFieldEnd(); oprot.writeFieldBegin(UID_FIELD_DESC); oprot.writeI32(struct.uid); oprot.writeFieldEnd(); oprot.writeFieldBegin(GID_FIELD_DESC); oprot.writeI32(struct.gid); oprot.writeFieldEnd(); if (struct.parentPartition != null) { oprot.writeFieldBegin(PARENT_PARTITION_FIELD_DESC); { oprot.writeSetBegin( new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.BYTE, struct.parentPartition.size())); for (byte _iter38 : struct.parentPartition) { oprot.writeByte(_iter38); } oprot.writeSetEnd(); } oprot.writeFieldEnd(); } if (struct.partition != null) { oprot.writeFieldBegin(PARTITION_FIELD_DESC); { oprot.writeSetBegin( new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.BYTE, struct.partition.size())); for (byte _iter39 : struct.partition) { oprot.writeByte(_iter39); } oprot.writeSetEnd(); } 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.jobID != null) { oprot.writeFieldBegin(JOB_ID_FIELD_DESC); this.jobID.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldBegin(MAP_PROGRESS_FIELD_DESC); oprot.writeDouble(this.mapProgress); oprot.writeFieldEnd(); oprot.writeFieldBegin(REDUCE_PROGRESS_FIELD_DESC); oprot.writeDouble(this.reduceProgress); oprot.writeFieldEnd(); oprot.writeFieldBegin(CLEANUP_PROGRESS_FIELD_DESC); oprot.writeDouble(this.cleanupProgress); oprot.writeFieldEnd(); oprot.writeFieldBegin(SETUP_PROGRESS_FIELD_DESC); oprot.writeDouble(this.setupProgress); oprot.writeFieldEnd(); if (this.runState != null) { oprot.writeFieldBegin(RUN_STATE_FIELD_DESC); oprot.writeI32(this.runState.getValue()); oprot.writeFieldEnd(); } oprot.writeFieldBegin(START_TIME_FIELD_DESC); oprot.writeI64(this.startTime); oprot.writeFieldEnd(); if (this.user != null) { oprot.writeFieldBegin(USER_FIELD_DESC); oprot.writeString(this.user); oprot.writeFieldEnd(); } if (this.priority != null) { oprot.writeFieldBegin(PRIORITY_FIELD_DESC); oprot.writeI32(this.priority.getValue()); oprot.writeFieldEnd(); } if (this.schedulingInfo != null) { oprot.writeFieldBegin(SCHEDULING_INFO_FIELD_DESC); oprot.writeString(this.schedulingInfo); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, WorkerInfo struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); oprot.writeFieldBegin(ID_FIELD_DESC); oprot.writeI64(struct.id); oprot.writeFieldEnd(); if (struct.address != null) { oprot.writeFieldBegin(ADDRESS_FIELD_DESC); struct.address.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldBegin(LAST_CONTACT_SEC_FIELD_DESC); oprot.writeI32(struct.lastContactSec); oprot.writeFieldEnd(); if (struct.state != null) { oprot.writeFieldBegin(STATE_FIELD_DESC); oprot.writeString(struct.state); oprot.writeFieldEnd(); } oprot.writeFieldBegin(CAPACITY_BYTES_FIELD_DESC); oprot.writeI64(struct.capacityBytes); oprot.writeFieldEnd(); oprot.writeFieldBegin(USED_BYTES_FIELD_DESC); oprot.writeI64(struct.usedBytes); oprot.writeFieldEnd(); oprot.writeFieldBegin(START_TIME_MS_FIELD_DESC); oprot.writeI64(struct.startTimeMs); 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, TExerciseType struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); oprot.writeFieldBegin(MYID_FIELD_DESC); oprot.writeI32(struct.myid); oprot.writeFieldEnd(); if (struct.typeName != null) { oprot.writeFieldBegin(TYPE_NAME_FIELD_DESC); oprot.writeString(struct.typeName); oprot.writeFieldEnd(); } if (struct.createAt != null) { oprot.writeFieldBegin(CREATE_AT_FIELD_DESC); oprot.writeString(struct.createAt); oprot.writeFieldEnd(); } if (struct.updateAt != null) { oprot.writeFieldBegin(UPDATE_AT_FIELD_DESC); oprot.writeString(struct.updateAt); oprot.writeFieldEnd(); } oprot.writeFieldBegin(ACTIVE_FIELD_DESC); oprot.writeBool(struct.active); oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, FrontendRequest struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.type != null) { if (struct.isSetType()) { oprot.writeFieldBegin(TYPE_FIELD_DESC); oprot.writeI32(struct.type.getValue()); oprot.writeFieldEnd(); } } if (struct.startBuild != null) { if (struct.isSetStartBuild()) { oprot.writeFieldBegin(START_BUILD_FIELD_DESC); struct.startBuild.write(oprot); oprot.writeFieldEnd(); } } if (struct.buildStatus != null) { if (struct.isSetBuildStatus()) { oprot.writeFieldBegin(BUILD_STATUS_FIELD_DESC); struct.buildStatus.write(oprot); 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, TCreateSentryRoleRequest struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); oprot.writeFieldBegin(PROTOCOL_VERSION_FIELD_DESC); oprot.writeI32(struct.protocol_version); oprot.writeFieldEnd(); if (struct.requestorUserName != null) { oprot.writeFieldBegin(REQUESTOR_USER_NAME_FIELD_DESC); oprot.writeString(struct.requestorUserName); oprot.writeFieldEnd(); } if (struct.requestorGroupNames != null) { oprot.writeFieldBegin(REQUESTOR_GROUP_NAMES_FIELD_DESC); { oprot.writeSetBegin( new org.apache.thrift.protocol.TSet( org.apache.thrift.protocol.TType.STRING, struct.requestorGroupNames.size())); for (String _iter3 : struct.requestorGroupNames) { oprot.writeString(_iter3); } oprot.writeSetEnd(); } oprot.writeFieldEnd(); } if (struct.roleName != null) { oprot.writeFieldBegin(ROLE_NAME_FIELD_DESC); oprot.writeString(struct.roleName); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, TDataSink struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.type != null) { oprot.writeFieldBegin(TYPE_FIELD_DESC); oprot.writeI32(struct.type.getValue()); oprot.writeFieldEnd(); } if (struct.stream_sink != null) { if (struct.isSetStream_sink()) { oprot.writeFieldBegin(STREAM_SINK_FIELD_DESC); struct.stream_sink.write(oprot); oprot.writeFieldEnd(); } } if (struct.table_sink != null) { if (struct.isSetTable_sink()) { oprot.writeFieldBegin(TABLE_SINK_FIELD_DESC); struct.table_sink.write(oprot); 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, 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, OnlineStatus 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.plugin != null) { oprot.writeFieldBegin(PLUGIN_FIELD_DESC); oprot.writeString(struct.plugin); oprot.writeFieldEnd(); } if (struct.packagename != null) { oprot.writeFieldBegin(PACKAGENAME_FIELD_DESC); oprot.writeString(struct.packagename); oprot.writeFieldEnd(); } if (struct.status != null) { oprot.writeFieldBegin(STATUS_FIELD_DESC); oprot.writeI32(struct.status.getValue()); oprot.writeFieldEnd(); } oprot.writeFieldBegin(SIZE_FIELD_DESC); oprot.writeI64(struct.size); 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, TOperationHandle struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.operationId != null) { oprot.writeFieldBegin(OPERATION_ID_FIELD_DESC); struct.operationId.write(oprot); oprot.writeFieldEnd(); } if (struct.operationType != null) { oprot.writeFieldBegin(OPERATION_TYPE_FIELD_DESC); oprot.writeI32(struct.operationType.getValue()); oprot.writeFieldEnd(); } oprot.writeFieldBegin(HAS_RESULT_SET_FIELD_DESC); oprot.writeBool(struct.hasResultSet); oprot.writeFieldEnd(); if (struct.isSetModifiedRowCount()) { oprot.writeFieldBegin(MODIFIED_ROW_COUNT_FIELD_DESC); oprot.writeDouble(struct.modifiedRowCount); 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, 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(); }