@classmethod
def _getOrCreate(cls):
    '\n        Internal function to get or create global BarrierTaskContext. We need to make sure\n        BarrierTaskContext is returned from here because it is needed in python worker reuse\n        scenario, see SPARK-25921 for more details.\n        '
    if (not isinstance(cls._taskContext, BarrierTaskContext)):
        cls._taskContext = object.__new__(cls)
    return cls._taskContext
Internal function to get or create global BarrierTaskContext. We need to make sure
BarrierTaskContext is returned from here because it is needed in python worker reuse
scenario, see SPARK-25921 for more details.
@classmethod
def _getOrCreate(cls):
    '\n        Internal function to get or create global BarrierTaskContext. We need to make sure\n        BarrierTaskContext is returned from here because it is needed in python worker reuse\n        scenario, see SPARK-25921 for more details.\n        '
    if (not isinstance(cls._taskContext, BarrierTaskContext)):
        cls._taskContext = object.__new__(cls)
    return cls._taskContext