Skip to content

Commit

Permalink
fix(indexers): fix leveldb
Browse files Browse the repository at this point in the history
  • Loading branch information
nan-wang committed Apr 19, 2020
1 parent 6e42b8d commit 1e3d3b7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions jina/executors/indexers/keyvalue/leveldb.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from typing import Union
from jina.executors.indexers.keyvalue.proto import jina_pb2
from google.protobuf.json_format import Parse
import os


class LeveldbIndexer(BasePbIndexer):
Expand All @@ -26,6 +27,12 @@ def get_add_handler(self):
"""
return self.db_handler

def get_create_handler(self):
"""Get the database handler
"""
return self.db_handler

def add(self, objs):
"""Add a JSON-friendly object to the indexer
Expand Down

0 comments on commit 1e3d3b7

Please sign in to comment.