class_docstr: Base class for handlers associated to vector databases.
class_docstr_tok: ["Base","class","for","handlers","associated","to","vector","databases","."]
docstr: Parse and Dispatch query to the appropriate method.
docstr_tok: ["Parse","and","Dispatch","query","to","the","appropriate","method","."]
code: def _dispatch(self, query: ASTNode) -> HandlerResponse:
      """
      Parse and Dispatch query to the appropriate method.
      """
      dispatch_router = {
          CreateTable: self._dispatch_create_table,
          DropTables: self._dispatch_drop_table,
          Insert: self._dispatch_insert,
          Update: self._dispatch_update,
          Delete: self._dispatch_delete,
          Select: self._dispatch_select,
      }
      if type(query) in dispatch_router:
          resp = dispatch_router[type(query)](query)
          if resp is not None:
              return HandlerResponse(
                  resp_type=RESPONSE_TYPE.TABLE, data_frame=resp
              )
          else:
              return HandlerResponse(resp_type=RESPONSE_TYPE.OK)
  
      else:
          raise NotImplementedError(
              f"Query type {type(query)} not implemented."
          )
  
imports: import ast
  import hashlib
  from enum import Enum
  from typing import Any, List, Optional
  import pandas
  from mindsdb_sql.parser.ast import BinaryOperation, Constant, CreateTable, Delete, DropTables, Insert, Select, Star, Tuple, Update
  from mindsdb_sql.parser.ast.base import ASTNode
  from mindsdb.integrations.libs.response import RESPONSE_TYPE, HandlerResponse
  from mindsdb.utilities import log
  from mindsdb.integrations.utilities.sql_utils import conditions_to_filter
  from ..utilities.sql_utils import query_traversal
  from .base import BaseHandler
label_desc: Use image node_id 15 for calling the VectorStoreHandler obj's underlying member method code with example usage: obj._dispatch(query) and returns: HandlerResponse, HandlerResponse