* Schema#getIndexNamed(String)} and {@link #getSchemaName(Schema,Object)}.*/
public int resolveUnion(Schema union, Object datum) {
Integer i = union.getIndexNamed(getSchemaName(datum));
if (i != null)
return i;
throw new UnresolvedUnionException(union, datum);
}