public void serialize( TuplePair tuple ) throws IOException { if( keyWriters == null ) outputStream.writeUnTyped( tuple.getLhs() ); else outputStream.writeWith( keyWriters, tuple.getLhs() ); if( sortWriters == null ) outputStream.writeUnTyped( tuple.getRhs() ); else outputStream.writeWith( sortWriters, tuple.getRhs() ); } }
public void serialize( TuplePair tuple ) throws IOException { if( keyWriters == null ) outputStream.writeUnTyped( tuple.getLhs() ); else outputStream.writeWith( keyWriters, tuple.getLhs() ); if( sortWriters == null ) outputStream.writeUnTyped( tuple.getRhs() ); else outputStream.writeWith( sortWriters, tuple.getRhs() ); } }