class_docstr: A State Backend that stores its state in an embedded ``RocksDB`` instance. This state backend
  can store very large state that exceeds memory and spills to local disk.
  
  All key/value state (including windows) is stored in the key/value index of RocksDB.
  For persistence against loss of machines, please configure a CheckpointStorage instance
  for the Job.
  
  The behavior of the RocksDB instances can be parametrized by setting RocksDB Options
  using the methods :func:`set_predefined_options` and :func:`set_options`.
class_docstr_tok: ["A","State","Backend","that","stores","its","state","in","an","embedded","``","RocksDB","``","instance",".","This","state","backend","can","store","very","large","state","that","exceeds","memory","and","spills","to","local","disk",".","All","key\/value","state","(","including","windows",")","is","stored","in","the","key\/value","index","of","RocksDB",".","For","persistence","against","loss","of","machines",",","please","configure","a","CheckpointStorage","instance","for","the","Job",".","The","behavior","of","the","RocksDB","instances","can","be","parametrized","by","setting","RocksDB","Options","using","the","methods",":","func",":","`","set_predefined_options","`","and",":","func",":","`","set_options","`","."]
docstr: Creates a new :class:`EmbeddedRocksDBStateBackend` for storing local state.
  
  Example:
  ::
  
      >>> state_backend = EmbeddedRocksDBStateBackend()
  
  :param enable_incremental_checkpointing: True if incremental checkpointing is enabled.
  :param j_embedded_rocks_db_state_backend: For internal use, please keep none.
code: def __init__(
      self,
      enable_incremental_checkpointing=None,
      j_embedded_rocks_db_state_backend=None,
  ):
      """
      Creates a new :class:`EmbeddedRocksDBStateBackend` for storing local state.
  
      Example:
      ::
  
          >>> state_backend = EmbeddedRocksDBStateBackend()
  
      :param enable_incremental_checkpointing: True if incremental checkpointing is enabled.
      :param j_embedded_rocks_db_state_backend: For internal use, please keep none.
      """
      if j_embedded_rocks_db_state_backend is None:
          gateway = get_gateway()
          JTernaryBoolean = (
              gateway.jvm.org.apache.flink.util.TernaryBoolean
          )
          JEmbeddedRocksDBStateBackend = (
              gateway.jvm.org.apache.flink.contrib.streaming.state.EmbeddedRocksDBStateBackend
          )
  
          if enable_incremental_checkpointing not in (
              None,
              True,
              False,
          ):
              raise TypeError(
                  "Unsupported input for 'enable_incremental_checkpointing': %s, "
                  "the value of the parameter should be None or"
                  "True or False."
              )
  
          if enable_incremental_checkpointing is None:
              j_enable_incremental_checkpointing = (
                  JTernaryBoolean.UNDEFINED
              )
          elif enable_incremental_checkpointing is True:
              j_enable_incremental_checkpointing = JTernaryBoolean.TRUE
          else:
              j_enable_incremental_checkpointing = JTernaryBoolean.FALSE
  
          j_embedded_rocks_db_state_backend = (
              JEmbeddedRocksDBStateBackend(
                  j_enable_incremental_checkpointing
              )
          )
  
      super(EmbeddedRocksDBStateBackend, self).__init__(
          j_embedded_rocks_db_state_backend
      )
  
imports: from abc import ABCMeta
  from enum import Enum
  from py4j.java_gateway import get_java_class
  from typing import List, Optional
  from pyflink.java_gateway import get_gateway
  from pyflink.util.java_utils import load_java_class
label_desc: Use image node_id 1 to create a new EmbeddedRocksDBStateBackend object from inherited base classes: StateBackend with example: obj = EmbeddedRocksDBStateBackend(enable_incremental_checkpointing, j_embedded_rocks_db_state_backend)