class_docstr: Session window.
  
  For streaming tables you can specify grouping by a event-time or processing-time attribute.
  
  For batch tables you can specify grouping on a timestamp or long attribute.
class_docstr_tok: ["Session","window",".","For","streaming","tables","you","can","specify","grouping","by","a","event-time","or","processing-time","attribute",".","For","batch","tables","you","can","specify","grouping","on","a","timestamp","or","long","attribute","."]
docstr: Specifies the time attribute on which rows are grouped.
  
  For streaming tables you can specify grouping by a event-time or processing-time
  attribute.
  
  For batch tables you can specify grouping on a timestamp or long attribute.
  
  :param time_field: Time attribute for streaming and batch tables.
  :return: A tumbling window on event-time.
docstr_tok: ["Specifies","the","time","attribute","on","which","rows","are","grouped",".","For","streaming","tables","you","can","specify","grouping","by","a","event-time","or","processing-time","attribute",".","For","batch","tables","you","can","specify","grouping","on","a","timestamp","or","long","attribute",".",":","param","time_field",":","Time","attribute","for","streaming","and","batch","tables",".",":","return",":","A","tumbling","window","on","event-time","."]
code: def on(self, time_field: Expression) -> "SessionWithGapOnTime":
      """
      Specifies the time attribute on which rows are grouped.
  
      For streaming tables you can specify grouping by a event-time or processing-time
      attribute.
  
      For batch tables you can specify grouping on a timestamp or long attribute.
  
      :param time_field: Time attribute for streaming and batch tables.
      :return: A tumbling window on event-time.
      """
      return SessionWithGapOnTime(
          self._java_window.on(_get_java_expression(time_field))
      )
  
imports: from py4j.java_gateway import get_method
  from pyflink.java_gateway import get_gateway
  from pyflink.table import Expression
  from pyflink.table.expression import _get_java_expression
  from pyflink.table.utils import to_expression_jarray
label_desc: Use image node_id 2 for calling the SessionWithGap obj's underlying member method code with example usage: obj.on(time_field) and returns: SessionWithGapOnTime