class_docstr: Utility class to facilitate API queries and state management of
  session data.
docstr: Prepares the next batch of data based on the request url and
  the counter index.
  
  Args:
      resource: the init op resource.
      columns: list of columns to prepare the structured data.
      dtypes: tf.dtypes of the columns.
      request_url: The request url to fetch the data
  Returns:
      A Tensor containing serialized JSON records.
docstr_tok: ["Prepares","the","next","batch","of","data","based","on","the","request","url","and","the","counter","index",".","Args",":","resource",":","the","init","op","resource",".","columns",":","list","of","columns","to","prepare","the","structured","data",".","dtypes",":","tf.dtypes","of","the","columns",".","request_url",":","The","request","url","to","fetch","the","data","Returns",":","A","Tensor","containing","serialized","JSON","records","."]
code: def get_next_batch(self, resource, request_url):
      """Prepares the next batch of data based on the request url and
      the counter index.
  
      Args:
          resource: the init op resource.
          columns: list of columns to prepare the structured data.
          dtypes: tf.dtypes of the columns.
          request_url: The request url to fetch the data
      Returns:
          A Tensor containing serialized JSON records.
      """
  
      url_obj = urlparse(request_url)
      scroll_request_url = "{}://{}/_search/scroll".format(
          url_obj.scheme, url_obj.netloc
      )
  
      values = core_ops.io_elasticsearch_readable_next(
          resource=resource,
          request_url=request_url,
          scroll_request_url=scroll_request_url,
      )
      return values
  
file_path: io/tensorflow_io/python/experimental/elasticsearch_dataset_ops.py
imports: from urllib.parse import urlparse
  import tensorflow
  from tensorflow_io.python.ops import core_ops
  from tensorflow_io.python.experimental import serialization_ops
label_desc: Use image node_id 5 for calling the _ElasticsearchHandler obj's underlying member method code with example usage: obj.get_next_batch(resource, request_url) and returns: values