it's a subtask of #1263 The `isDriverSide` API is tightly coupled with Spark , so we need remove it from JniBridge.