class_docstr: Simple indexer class
class_docstr_tok: ["Simple","indexer","class"]
code: def __init__(self, **kwargs):
      super().__init__(**kwargs)
      self.logger = JinaLogger("CrudIndexer")
      self._docs = DocumentArray()
      self._dump_location = os.path.join(
          self.metas.workspace, "docs.json"
      )
      if os.path.exists(self._dump_location):
          self._docs = DocumentArray.load_json(self._dump_location)
          self.logger.debug(
              f"Loaded {len(self._docs)} from {self._dump_location}"
          )
      else:
          self.logger.warning(f"No data found at {self._dump_location}")
  
file_path: jina/tests/integration/crud/__init__.py
imports: import os
  from typing import Dict, Tuple
  import numpy
  from jina import Document, DocumentArray, Executor, requests
  from jina.logging.logger import JinaLogger
label_desc: Use image node_id 1 to create a new CrudIndexer object from inherited base classes: Executor with example: obj = CrudIndexer()