class_docstr: Helper class for creating a session window. The boundary of session windows are defined by
  intervals of inactivity, i.e., a session window is closes if no event appears for a defined
  gap period.
  
  Example:
  ::
  
      >>> from pyflink.table.expressions import col, lit
      >>> Session.with_gap(lit(10).minutes) \
      ...        .on(col("rowtime")) \
      ...        .alias("w")
class_docstr_tok: ["Helper","class","for","creating","a","session","window",".","The","boundary","of","session","windows","are","defined","by","intervals","of","inactivity",",","i.e.",",","a","session","window","is","closes","if","no","event","appears","for","a","defined","gap","period",".","Example",":",":",":",">",">",">","from","pyflink.table.expressions","import","col",",","lit",">",">",">","Session.with_gap","(","lit","(","10",")",".minutes",")","\\","...",".on","(","col","(","``","rowtime","''",")",")","\\","...",".alias","(","``","w","''",")"]
docstr: Creates a session window. The boundary of session windows are defined by
  intervals of inactivity, i.e., a session window is closes if no event appears for a defined
  gap period.
  
  :param gap: Specifies how long (as interval of milliseconds) to wait for new data before
              closing the session window.
  :return: A partially defined session window.
docstr_tok: ["Creates","a","session","window",".","The","boundary","of","session","windows","are","defined","by","intervals","of","inactivity",",","i.e.",",","a","session","window","is","closes","if","no","event","appears","for","a","defined","gap","period",".",":","param","gap",":","Specifies","how","long","(","as","interval","of","milliseconds",")","to","wait","for","new","data","before","closing","the","session","window",".",":","return",":","A","partially","defined","session","window","."]
code: def with_gap(cls, gap: Expression) -> "SessionWithGap":
      """
      Creates a session window. The boundary of session windows are defined by
      intervals of inactivity, i.e., a session window is closes if no event appears for a defined
      gap period.
  
      :param gap: Specifies how long (as interval of milliseconds) to wait for new data before
                  closing the session window.
      :return: A partially defined session window.
      """
      return SessionWithGap(
          get_gateway().jvm.Session.withGap(_get_java_expression(gap))
      )
  
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 1 for calling the Session obj's underlying member method code with example usage: obj.with_gap(cls, gap) and returns: SessionWithGap