public void write(Packer pk, RexProBindings v) throws IOException {
write(pk, v, false);
}
public void write(final Packer pk, final RexProBindings v, final boolean required) throws IOException {
RexProBindings bindings = v;
if (bindings == null) {
bindings = new RexProBindings();
}
pk.writeMapBegin(bindings.size());
for (Map.Entry pair : bindings.entrySet()) {
pk.write(pair.getKey());
try {
ResultsConverter.serializeObject(pair.getValue(), pk);
} catch (Exception ex) {
throw new IOException(ex.toString());