public void replaceWith ( final ThriftEnvelope thriftEnvelope ) { this . typeName = thriftEnvelope . typeName ; this . name = thriftEnvelope . name ; this . payload . clear ( ) ; this . payload . addAll ( thriftEnvelope . payload ) ; }
hack method to allow hadoop to re - use this object