public void write(org.apache.thrift.protocol.TProtocol oprot, SetIntString struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.sIntString != null) { oprot.writeFieldBegin(S_INT_STRING_FIELD_DESC); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, struct.sIntString.size())); for (IntString _iter85 : struct.sIntString) { _iter85.write(oprot); } oprot.writeSetEnd(); } oprot.writeFieldEnd(); } if (struct.aString != null) { oprot.writeFieldBegin(A_STRING_FIELD_DESC); oprot.writeString(struct.aString); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
oprot.writeSetEnd();
public void write(org.apache.thrift.protocol.TProtocol oprot, HeartbeatTxnRangeResponse struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.aborted != null) { oprot.writeFieldBegin(ABORTED_FIELD_DESC); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, struct.aborted.size())); for (long _iter712 : struct.aborted) { oprot.writeI64(_iter712); } oprot.writeSetEnd(); } oprot.writeFieldEnd(); } if (struct.nosuch != null) { oprot.writeFieldBegin(NOSUCH_FIELD_DESC); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, struct.nosuch.size())); for (long _iter713 : struct.nosuch) { oprot.writeI64(_iter713); } oprot.writeSetEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
@Override public void serialize(Object o, ObjectInspector oi, TProtocol oprot) throws TException, SerDeException, NoSuchFieldException, IllegalAccessException { ListObjectInspector loi = (ListObjectInspector) oi; Set<Object> set = (Set<Object>) o; DynamicSerDeTypeBase mt = getElementType(); tset = new TSet(mt.getType(), set.size()); oprot.writeSetBegin(tset); for (Object element : set) { mt.serialize(element, loi.getListElementObjectInspector(), oprot); } // in theory, the below call isn't needed in non thrift_mode, but let's not // get too crazy oprot.writeSetEnd(); } }
oprot.writeSetEnd(); oprot.writeSetEnd(); oprot.writeSetEnd();
oprot.writeSetEnd(); oprot.writeFieldEnd();
oprot.writeString(_iter17); oprot.writeSetEnd();
oprot.writeSetEnd();
public void writeSetEnd() throws TException { concreteProtocol.writeSetEnd(); }
oprot.writeSetEnd();
oprot.writeSetEnd();
oprot.writeSetEnd();
oprot.writeSetEnd(); oprot.writeSetEnd();
oprot.writeSetEnd(); oprot.writeSetEnd();
oprot.writeSetEnd();
oprot.writeSetEnd();
@Override public void write(TProtocol out) throws TException { out.writeSetEnd(); } @Override
/** * {@inheritDoc} * @see org.apache.parquet.thrift.ParquetProtocol#writeSetEnd() */ @Override public void writeSetEnd() throws TException { LOG.debug("writeSetEnd()"); currentProtocol.writeSetEnd(); }
@Override public void writeSetEnd() throws TException { try { protocol.writeSetEnd(); } catch (org.apache.thrift.TException e) { throw new TException(e); } }