class_docstr: This handler handles connection and execution of the Xata statements.
class_docstr_tok: ["This","handler","handles","connection","and","execution","of","the","Xata","statements","."]
docstr: Translate SQL operator to oprator understood by Xata filter language.
docstr_tok: ["Translate","SQL","operator","to","oprator","understood","by","Xata","filter","language","."]
code: def _get_xata_operator(self, operator: FilterOperator) -> str:
      """Translate SQL operator to oprator understood by Xata filter language."""
      mapping = {
          FilterOperator.EQUAL: "$is",
          FilterOperator.NOT_EQUAL: "$isNot",
          FilterOperator.LESS_THAN: "$lt",
          FilterOperator.LESS_THAN_OR_EQUAL: "$le",
          FilterOperator.GREATER_THAN: "$gt",
          FilterOperator.GREATER_THAN_OR_EQUAL: "$gte",
          FilterOperator.LIKE: "$pattern",
      }
      if operator not in mapping:
          raise Exception(f"Operator '{operator}' is not supported!")
      return mapping[operator]
  
imports: from collections import OrderedDict
  from typing import List, Optional
  import pandas
  import json
  import xata
  from xata.helpers import BulkProcessor
  from mindsdb.integrations.libs.const import HANDLER_CONNECTION_ARG_TYPE
  from mindsdb.integrations.libs.response import RESPONSE_TYPE
  from mindsdb.integrations.libs.response import HandlerResponse
  from mindsdb.integrations.libs.response import HandlerResponse
  from mindsdb.integrations.libs.response import HandlerStatusResponse
  from mindsdb.integrations.libs.vectordatabase_handler import FilterCondition, FilterOperator, TableField, VectorStoreHandler
  from mindsdb.utilities import log
label_desc: Use image node_id 12 for calling the XataHandler obj's underlying member method code with example usage: obj._get_xata_operator(operator) and returns: mapping