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(TProtocol oprot) throws TException { validate(); oprot.writeStructBegin(STRUCT_DESC); oprot.writeFieldBegin(TASK_TRACKERS_FIELD_DESC); oprot.writeI32(this.taskTrackers); oprot.writeFieldEnd(); oprot.writeFieldBegin(MAP_TASKS_FIELD_DESC); oprot.writeI32(this.mapTasks); oprot.writeFieldEnd(); oprot.writeFieldBegin(REDUCE_TASKS_FIELD_DESC); oprot.writeI32(this.reduceTasks); oprot.writeFieldEnd(); oprot.writeFieldBegin(MAX_MAP_TASKS_FIELD_DESC); oprot.writeI32(this.maxMapTasks); oprot.writeFieldEnd(); oprot.writeFieldBegin(MAX_REDUCE_TASKS_FIELD_DESC); oprot.writeI32(this.maxReduceTasks); oprot.writeFieldEnd(); oprot.writeFieldBegin(STATE_FIELD_DESC); oprot.writeI32(this.state); 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(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, 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(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, 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(TProtocol oprot) throws TException { validate(); oprot.writeStructBegin(STRUCT_DESC); oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, ODSRateOfChangeKeyInfo struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeString(struct.key); oprot.writeFieldEnd(); } oprot.writeFieldBegin(UNIX_TIME_FIELD_DESC); oprot.writeI64(struct.unixTime); oprot.writeFieldEnd(); oprot.writeFieldBegin(ALLOWABLE_TIME_DIFF_FIELD_DESC); oprot.writeI64(struct.allowable_time_diff); oprot.writeFieldEnd(); oprot.writeFieldBegin(VALUE_FIELD_DESC); oprot.writeI64(struct.value); oprot.writeFieldEnd(); oprot.writeFieldBegin(MIN_RATE_FIELD_DESC); oprot.writeI64(struct.min_rate); oprot.writeFieldEnd(); oprot.writeFieldBegin(MAX_RATE_FIELD_DESC); oprot.writeI64(struct.max_rate); 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(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, 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, 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, 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, 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(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, 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(TProtocol oprot) throws TException { validate(); oprot.writeStructBegin(STRUCT_DESC); if (this.user != null) { oprot.writeFieldBegin(USER_FIELD_DESC); oprot.writeString(this.user); oprot.writeFieldEnd(); } if (this.jobID != null) { oprot.writeFieldBegin(JOB_ID_FIELD_DESC); this.jobID.write(oprot); oprot.writeFieldEnd(); } if (this.jobFile != null) { oprot.writeFieldBegin(JOB_FILE_FIELD_DESC); oprot.writeString(this.jobFile); oprot.writeFieldEnd(); } if (this.name != null) { oprot.writeFieldBegin(NAME_FIELD_DESC); oprot.writeString(this.name); oprot.writeFieldEnd(); } if (this.queueName != null) { oprot.writeFieldBegin(QUEUE_NAME_FIELD_DESC); oprot.writeString(this.queueName); 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, TCommandTransfer struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.applicationName != null) { oprot.writeFieldBegin(APPLICATION_NAME_FIELD_DESC); oprot.writeString(struct.applicationName); oprot.writeFieldEnd(); } if (struct.agentId != null) { oprot.writeFieldBegin(AGENT_ID_FIELD_DESC); oprot.writeString(struct.agentId); oprot.writeFieldEnd(); } if (struct.isSetStartTime()) { oprot.writeFieldBegin(START_TIME_FIELD_DESC); oprot.writeI64(struct.startTime); oprot.writeFieldEnd(); } if (struct.payload != null) { oprot.writeFieldBegin(PAYLOAD_FIELD_DESC); oprot.writeBinary(struct.payload); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
void send(Object[] args, TProtocol protocol, int seqid) throws TException { protocol.writeMessageBegin(new TMessage(methodName, TMessageType.CALL, seqid)); protocol.writeStructBegin(argsStruct); // method with no parameters if (null != args) { for (int i = 0, n = args.length; i < n; i++) { FieldSpec fieldSpec = requestTypeList.get(i); Object value = args[i]; if (value == null) { if (fieldSpec.required) { throw new TProtocolException( "Required field '" + fieldSpec.name + "' was not present! Struct: " + argsStruct.name); } } else { protocol.writeFieldBegin(fieldSpec.tField); fieldSpec.typeAdapter.write(value, protocol); protocol.writeFieldEnd(); } } } protocol.writeFieldStop(); protocol.writeStructEnd(); protocol.writeMessageEnd(); protocol.getTransport().flush(); }
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) 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, 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, 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, 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, TColumnValue struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.family != null) { oprot.writeFieldBegin(FAMILY_FIELD_DESC); oprot.writeBinary(struct.family); oprot.writeFieldEnd(); } if (struct.qualifier != null) { oprot.writeFieldBegin(QUALIFIER_FIELD_DESC); oprot.writeBinary(struct.qualifier); oprot.writeFieldEnd(); } if (struct.value != null) { oprot.writeFieldBegin(VALUE_FIELD_DESC); oprot.writeBinary(struct.value); oprot.writeFieldEnd(); } if (struct.isSetTimestamp()) { oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); 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) throws org.apache.thrift.TException { validate(); oprot.writeStructBegin(STRUCT_DESC); if (this.iDate != null) { oprot.writeFieldBegin(I_DATE_FIELD_DESC); oprot.writeString(this.iDate); oprot.writeFieldEnd(); } if (this.iOperation != null) { oprot.writeFieldBegin(I_OPERATION_FIELD_DESC); oprot.writeString(this.iOperation); oprot.writeFieldEnd(); } if (this.iPlace != null) { oprot.writeFieldBegin(I_PLACE_FIELD_DESC); oprot.writeString(this.iPlace); oprot.writeFieldEnd(); } oprot.writeFieldBegin(I_AMOUNT_FIELD_DESC); oprot.writeDouble(this.iAmount); oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); }