Anyone who has an example on how to implement a custom member reader?

I am searching the universe but I can't find one. My problem right now is how to link the hierarchy that has a custom member reader and a normal hierarchy with table/view?