modified the UnionAdapter.

update the UnionAdapter to API.