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, TKey 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.colFamily != null) { oprot.writeFieldBegin(COL_FAMILY_FIELD_DESC); oprot.writeBinary(struct.colFamily); oprot.writeFieldEnd(); } if (struct.colQualifier != null) { oprot.writeFieldBegin(COL_QUALIFIER_FIELD_DESC); oprot.writeBinary(struct.colQualifier); oprot.writeFieldEnd(); } if (struct.colVisibility != null) { oprot.writeFieldBegin(COL_VISIBILITY_FIELD_DESC); oprot.writeBinary(struct.colVisibility); oprot.writeFieldEnd(); } oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); 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, 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, 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(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, TCredentials struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.principal != null) { oprot.writeFieldBegin(PRINCIPAL_FIELD_DESC); oprot.writeString(struct.principal); oprot.writeFieldEnd(); } if (struct.tokenClassName != null) { oprot.writeFieldBegin(TOKEN_CLASS_NAME_FIELD_DESC); oprot.writeString(struct.tokenClassName); oprot.writeFieldEnd(); } if (struct.token != null) { oprot.writeFieldBegin(TOKEN_FIELD_DESC); oprot.writeBinary(struct.token); oprot.writeFieldEnd(); } if (struct.instanceId != null) { oprot.writeFieldBegin(INSTANCE_ID_FIELD_DESC); oprot.writeString(struct.instanceId); 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, 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, 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, IndexExpression struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.column_name != null) { oprot.writeFieldBegin(COLUMN_NAME_FIELD_DESC); oprot.writeBinary(struct.column_name); oprot.writeFieldEnd(); } if (struct.op != null) { oprot.writeFieldBegin(OP_FIELD_DESC); oprot.writeI32(struct.op.getValue()); oprot.writeFieldEnd(); } if (struct.value != null) { oprot.writeFieldBegin(VALUE_FIELD_DESC); oprot.writeBinary(struct.value); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(TProtocol oprot) throws TException { validate(); oprot.writeStructBegin(STRUCT_DESC); if (this.start != null) { oprot.writeFieldBegin(START_FIELD_DESC); oprot.writeBinary(this.start); oprot.writeFieldEnd(); } if (this.finish != null) { oprot.writeFieldBegin(FINISH_FIELD_DESC); oprot.writeBinary(this.finish); oprot.writeFieldEnd(); } oprot.writeFieldBegin(REVERSED_FIELD_DESC); oprot.writeBool(this.reversed); oprot.writeFieldEnd(); oprot.writeFieldBegin(COUNT_FIELD_DESC); oprot.writeI32(this.count); oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, SliceRange struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.start != null) { oprot.writeFieldBegin(START_FIELD_DESC); oprot.writeBinary(struct.start); oprot.writeFieldEnd(); } if (struct.finish != null) { oprot.writeFieldBegin(FINISH_FIELD_DESC); oprot.writeBinary(struct.finish); oprot.writeFieldEnd(); } oprot.writeFieldBegin(REVERSED_FIELD_DESC); oprot.writeBool(struct.reversed); oprot.writeFieldEnd(); oprot.writeFieldBegin(COUNT_FIELD_DESC); oprot.writeI32(struct.count); oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(TProtocol oprot) throws TException { validate(); oprot.writeStructBegin(STRUCT_DESC); if (this.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); oprot.writeBinary(this.key); oprot.writeFieldEnd(); } oprot.writeFieldBegin(COUNT_FIELD_DESC); oprot.writeI32(this.count); 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(); }
@Override protected void tupleSchemeWriteValue(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { switch (setField_) { case FIELDS: List<String> fields = (List<String>) value_; { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRING, fields.size())); for (String _iter15 : fields) { oprot.writeString(_iter15); } oprot.writeListEnd(); } return; case SHUFFLE: NullStruct shuffle = (NullStruct) value_; shuffle.write(oprot); return; case ALL: NullStruct all = (NullStruct) value_; all.write(oprot); return; case NONE: NullStruct none = (NullStruct) value_; none.write(oprot); return; case DIRECT: NullStruct direct = (NullStruct) value_; direct.write(oprot); return; case CUSTOM_OBJECT: JavaObject custom_object = (JavaObject) value_; custom_object.write(oprot); return; case CUSTOM_SERIALIZED: ByteBuffer custom_serialized = (ByteBuffer) value_; oprot.writeBinary(custom_serialized); return; case LOCAL_OR_SHUFFLE: NullStruct local_or_shuffle = (NullStruct) value_; local_or_shuffle.write(oprot); return; default: throw new IllegalStateException("Cannot write union with unknown field " + setField_); } }
public void write(org.apache.thrift.protocol.TProtocol oprot, TCell struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.value != null) { oprot.writeFieldBegin(VALUE_FIELD_DESC); oprot.writeBinary(struct.value); oprot.writeFieldEnd(); } oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, TGet 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 _iter11 : struct.columns) { _iter11.write(oprot); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } } if (struct.isSetTimestamp()) { oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(struct.timestamp); oprot.writeFieldEnd(); } if (struct.timeRange != null) { if (struct.isSetTimeRange()) { oprot.writeFieldBegin(TIME_RANGE_FIELD_DESC); struct.timeRange.write(oprot); oprot.writeFieldEnd(); } } if (struct.isSetMaxVersions()) { oprot.writeFieldBegin(MAX_VERSIONS_FIELD_DESC); oprot.writeI32(struct.maxVersions); 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.key != null) { oprot.writeFieldBegin(KEY_FIELD_DESC); this.key.write(oprot); oprot.writeFieldEnd(); } if (this.data != null) { oprot.writeFieldBegin(DATA_FIELD_DESC); oprot.writeBinary(this.data); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(TProtocol oprot) throws TException { validate(); oprot.writeStructBegin(STRUCT_DESC); if (this.values != null) { if (isSetValues()) { oprot.writeFieldBegin(VALUES_FIELD_DESC); { oprot.writeListBegin(new TList(TType.STRING, this.values.size())); for (ByteBuffer _iter3 : this.values) { oprot.writeBinary(_iter3); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } } oprot.writeFieldStop(); oprot.writeStructEnd(); }
@Override protected void tupleSchemeWriteValue(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { switch (setField_) { case SERIALIZED_JAVA: ByteBuffer serialized_java = (ByteBuffer) value_; oprot.writeBinary(serialized_java); return; case SHELL: ShellComponent shell = (ShellComponent) value_; shell.write(oprot); return; case JAVA_OBJECT: JavaObject java_object = (JavaObject) value_; java_object.write(oprot); return; default: throw new IllegalStateException("Cannot write union with unknown field " + setField_); } }
public void write(org.apache.thrift.protocol.TProtocol oprot, Offset 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(); } oprot.writeFieldBegin(FIRST_FIELD_DESC); oprot.writeI64(struct.first); oprot.writeFieldEnd(); oprot.writeFieldBegin(LENGTH_FIELD_DESC); oprot.writeI32(struct.length); oprot.writeFieldEnd(); if (struct.xpath != null) { if (struct.isSetXpath()) { oprot.writeFieldBegin(XPATH_FIELD_DESC); oprot.writeString(struct.xpath); oprot.writeFieldEnd(); } } if (struct.content_form != null) { if (struct.isSetContent_form()) { oprot.writeFieldBegin(CONTENT_FORM_FIELD_DESC); oprot.writeString(struct.content_form); oprot.writeFieldEnd(); } } if (struct.value != null) { if (struct.isSetValue()) { oprot.writeFieldBegin(VALUE_FIELD_DESC); oprot.writeBinary(struct.value); oprot.writeFieldEnd(); } } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, Response struct) throws TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.ResultType != null) { oprot.writeFieldBegin(RESULT_TYPE_FIELD_DESC); oprot.writeString(struct.ResultType); oprot.writeFieldEnd(); } if (struct.Result != null) { oprot.writeFieldBegin(RESULT_FIELD_DESC); oprot.writeBinary(struct.Result); oprot.writeFieldEnd(); } if (struct.OperationId != null) { oprot.writeFieldBegin(OPERATION_ID_FIELD_DESC); oprot.writeString(struct.OperationId); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(TProtocol oprot) throws TException { validate(); oprot.writeStructBegin(STRUCT_DESC); if (this.name != null) { oprot.writeFieldBegin(NAME_FIELD_DESC); oprot.writeBinary(this.name); oprot.writeFieldEnd(); } if (this.columns != null) { oprot.writeFieldBegin(COLUMNS_FIELD_DESC); { oprot.writeListBegin(new TList(TType.STRUCT, this.columns.size())); for (Column _iter3 : this.columns) { _iter3.write(oprot); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(TProtocol oprot) throws TException { validate(); oprot.writeStructBegin(STRUCT_DESC); oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); oprot.writeI64(this.timestamp); oprot.writeFieldEnd(); if (this.super_column != null) { if (isSetSuper_column()) { oprot.writeFieldBegin(SUPER_COLUMN_FIELD_DESC); oprot.writeBinary(this.super_column); oprot.writeFieldEnd(); } } if (this.predicate != null) { if (isSetPredicate()) { oprot.writeFieldBegin(PREDICATE_FIELD_DESC); this.predicate.write(oprot); oprot.writeFieldEnd(); } } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, InsertEventRequestData struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.filesAdded != null) { oprot.writeFieldBegin(FILES_ADDED_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRING, struct.filesAdded.size())); for (String _iter564 : struct.filesAdded) { oprot.writeString(_iter564); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if (struct.filesAddedChecksum != null) { if (struct.isSetFilesAddedChecksum()) { oprot.writeFieldBegin(FILES_ADDED_CHECKSUM_FIELD_DESC); { oprot.writeListBegin( new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRING, struct.filesAddedChecksum.size())); for (ByteBuffer _iter565 : struct.filesAddedChecksum) { oprot.writeBinary(_iter565); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, DadoTransporteThrift struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.uuidDadoSerializado != null) { oprot.writeFieldBegin(UUID_DADO_SERIALIZADO_FIELD_DESC); oprot.writeString(struct.uuidDadoSerializado); oprot.writeFieldEnd(); } oprot.writeFieldBegin(TIPO_DADO_SERIALIZADO_FIELD_DESC); oprot.writeI64(struct.tipoDadoSerializado); oprot.writeFieldEnd(); if (struct.cnesDadoSerializado != null) { oprot.writeFieldBegin(CNES_DADO_SERIALIZADO_FIELD_DESC); oprot.writeString(struct.cnesDadoSerializado); oprot.writeFieldEnd(); } if (struct.codIbge != null) { if (struct.isSetCodIbge()) { oprot.writeFieldBegin(COD_IBGE_FIELD_DESC); oprot.writeString(struct.codIbge); oprot.writeFieldEnd(); } } if (struct.ineDadoSerializado != null) { if (struct.isSetIneDadoSerializado()) { oprot.writeFieldBegin(INE_DADO_SERIALIZADO_FIELD_DESC); oprot.writeString(struct.ineDadoSerializado); oprot.writeFieldEnd(); } } if (struct.isSetNumLote()) { oprot.writeFieldBegin(NUM_LOTE_FIELD_DESC); oprot.writeI64(struct.numLote); oprot.writeFieldEnd(); } if (struct.dadoSerializado != null) { oprot.writeFieldBegin(DADO_SERIALIZADO_FIELD_DESC); oprot.writeBinary(struct.dadoSerializado); oprot.writeFieldEnd(); } if (struct.remetente != null) { oprot.writeFieldBegin(REMETENTE_FIELD_DESC); struct.remetente.write(oprot); oprot.writeFieldEnd(); } if (struct.originadora != null) { oprot.writeFieldBegin(ORIGINADORA_FIELD_DESC); struct.originadora.write(oprot); oprot.writeFieldEnd(); } if (struct.versao != null) { if (struct.isSetVersao()) { oprot.writeFieldBegin(VERSAO_FIELD_DESC); struct.versao.write(oprot); oprot.writeFieldEnd(); } } oprot.writeFieldStop(); oprot.writeStructEnd(); }
@Override public void write(ByteBuffer value, TProtocol protocol) throws Exception { Preconditions.checkNotNull(value, "value is null"); Preconditions.checkNotNull(protocol, "protocol is null"); protocol.writeBinary(value); }
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(); }
public void writeBinary(ByteBuffer buf) throws TException { delegate.writeBinary(buf); }