#NEWLINE# def write( self , oprot ) : #NEWLINE# #INDENT# if ( ( oprot . __class__ == TBinaryProtocol . TBinaryProtocolAccelerated ) and ( self . thrift_spec is not None ) and ( fastbinary is not None ) ) : #NEWLINE# #INDENT# oprot . trans . write ( fastbinary . encode_binary ( self , ( self . __class__ , self . thrift_spec ) ) ) #NEWLINE# return #NEWLINE# #UNINDENT# oprot . writeStructBegin ( 'TRowResult' ) #NEWLINE# if ( self . row is not None ) : #NEWLINE# #INDENT# oprot . writeFieldBegin ( 'row' , TType . STRING , 1 ) #NEWLINE# oprot . writeString ( self . row ) #NEWLINE# oprot . writeFieldEnd ( ) #NEWLINE# #UNINDENT# if ( self . columns is not None ) : #NEWLINE# #INDENT# oprot . writeFieldBegin ( 'columns' , TType . MAP , 2 ) #NEWLINE# oprot . writeMapBegin ( TType . STRING , TType . STRUCT , len ( self . columns ) ) #NEWLINE# for ( kiter14 , viter15 ) in self . columns . items ( ) : #NEWLINE# #INDENT# oprot . writeString ( kiter14 ) #NEWLINE# viter15 . write ( viter15 ) #NEWLINE# #UNINDENT# oprot . writeMapEnd ( ) #NEWLINE# oprot . writeFieldEnd ( ) #NEWLINE# #UNINDENT# oprot . writeFieldStop ( ) #NEWLINE# oprot . writeStructEnd ( )