@Override public void serialize(Object o, ObjectInspector oi, TProtocol oprot) throws TException, SerDeException, NoSuchFieldException, IllegalAccessException { ByteObjectInspector poi = (ByteObjectInspector) oi; oprot.writeByte(poi.get(o)); }
public void write(org.apache.thrift.protocol.TProtocol oprot, TByteValue struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.isSetValue()) { oprot.writeFieldBegin(VALUE_FIELD_DESC); oprot.writeByte(struct.value); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, TByteColumn 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.BYTE, struct.values.size())); for (byte _iter65 : struct.values) { oprot.writeByte(_iter65); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if (struct.nulls != null) { oprot.writeFieldBegin(NULLS_FIELD_DESC); oprot.writeBinary(struct.nulls); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
oprot.writeByte(struct.version); oprot.writeFieldEnd(); if (struct.serverName != null) {
oprot.writeByte(struct.type); oprot.writeFieldEnd();
headerProtocol.writeI32(Integer.MAX_VALUE); headerProtocol.writeI16(Short.MAX_VALUE); headerProtocol.writeByte(version); headerProtocol.writeString(serviceName); headerProtocol.writeI64(id); out.writeI32(bos.size() + header.size()); out.writeI16((short) (0xffff & header.size())); out.writeByte(version); out.writeString(serviceName); out.writeI64(id);
headerProtocol.writeI32(Integer.MAX_VALUE); headerProtocol.writeI16(Short.MAX_VALUE); headerProtocol.writeByte(version); headerProtocol.writeString(serviceName); headerProtocol.writeI64(id); out.writeI32(bos.size() + header.size()); out.writeI16((short) (0xffff & header.size())); out.writeByte(version); out.writeString(serviceName); out.writeI64(id);
oprot.writeByte(struct.version); oprot.writeFieldEnd(); if (struct.serverName != null) {
oprot.writeByte(struct.version); oprot.writeFieldEnd(); if (struct.serverName != null) {
oprot.writeByte(struct.my_byte); oprot.writeFieldEnd();
public void writeByte(byte b) throws TException { concreteProtocol.writeByte(b); }
oprot.writeFieldEnd(); oprot.writeFieldBegin(BYTE_VAL_FIELD_DESC); oprot.writeByte(struct.byteVal); oprot.writeFieldEnd(); oprot.writeFieldBegin(I16_VAL_FIELD_DESC);
oprot.writeFieldEnd(); oprot.writeFieldBegin(BYTE_VAL_FIELD_DESC); oprot.writeByte(struct.byteVal); oprot.writeFieldEnd(); oprot.writeFieldBegin(I16_VAL_FIELD_DESC);
oprot.writeFieldEnd(); oprot.writeFieldBegin(G_FIELD_DESC); oprot.writeByte(struct.g); oprot.writeFieldEnd(); if (struct.h != null) {
oprot.writeFieldEnd(); oprot.writeFieldBegin(G_FIELD_DESC); oprot.writeByte(struct.g); oprot.writeFieldEnd(); if (struct.h != null) {
oprot.writeByte(struct.version); oprot.writeFieldEnd(); if (struct.serverName != null) {
oprot.writeByte(struct.version); oprot.writeFieldEnd(); if (struct.serverName != null) {
oprot.writeByte(_iter48.getValue());
@Override public void serialize(Object o, ObjectInspector oi, TProtocol oprot) throws TException, SerDeException, NoSuchFieldException, IllegalAccessException { ByteObjectInspector poi = (ByteObjectInspector) oi; oprot.writeByte(poi.get(o)); }
/** * {@inheritDoc} * @see parquet.thrift.ParquetProtocol#writeByte(byte) */ @Override public void writeByte(byte b) throws TException { if (DEBUG) LOG.debug("writeByte("+b+")"); currentProtocol.writeByte(b); }