@Override public void serialize( T tuple ) throws IOException { if( writers == null ) outputStream.writeUnTyped( tuple ); else outputStream.writeWith( writers, tuple ); }
@Override public void serialize( T tuple ) throws IOException { if( writers == null ) outputStream.writeUnTyped( tuple ); else outputStream.writeWith( writers, tuple ); }
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() ); } }
public void serialize( T tuple ) throws IOException { outputStream.writeIntInternal( tuple.getIndex() ); Class[] types = getTypesFor( tuple.getIndex() ); if( types == null ) outputStream.writeUnTyped( tuple.getTuple() ); else outputStream.writeTyped( types, tuple.getTuple() ); }
public void serialize( T tuple ) throws IOException { outputStream.writeIntInternal( tuple.getIndex() ); Class[] types = getTypesFor( tuple.getIndex() ); if( types == null ) outputStream.writeUnTyped( tuple.getTuple() ); else outputStream.writeTyped( types, tuple.getTuple() ); }