code: @Override
  	public BinaryRow baseRowToBinary(BaseRow row) {
  		if (row instanceof BinaryRow) {
  			return (BinaryRow) row;
  		}
  		BinaryRow binaryRow = new BinaryRow(types.length);
  		BinaryRowWriter writer = new BinaryRowWriter(binaryRow);
  		writer.writeHeader(row.getHeader());
  		for (int i = 0; i < types.length; i++) {
  			if (row.isNullAt(i)) {
  				writer.setNullAt(i);
  			} else {
  				BinaryWriter.write(writer, i, TypeGetterSetters.get(row, i, types[i]), types[i]);
  			}
  		}
  		writer.complete();
  		return binaryRow;
  	}
docs: Convert base row to binary row.
  TODO modify it to code gen, and reuse BinaryRow&BinaryRowWriter.