[SPARK-3543] Write TaskContext in Java and expose it through a static accessor.

do we do 2 space or 4 space indent?