add OO alignment with spark/hadoop

Signed-off-by: Mingxi Wu <thisisforivy@gmail.com>