jina.executors.indexers.query.keyvalue

class jina.executors.indexers.query.keyvalue.BinaryPbQueryIndexer(*args, **kwargs)[source]

Bases: jina.executors.indexers.keyvalue.BinaryPbWriterMixin, jina.executors.indexers.query.BaseQueryIndexer

A write-once Key-value indexer.

query(keys, *args, **kwargs)[source]

Get a document by its id

Parameters
  • keys (List[str]) – the ids

  • args – not used

  • kwargs – not used

Return type

List[Optional[bytes]]

Returns

List of the bytes of the Documents (or None, if not found)

class jina.executors.indexers.query.keyvalue.KeyValueQueryIndexer(*args, **kwargs)[source]

Bases: jina.executors.indexers.query.keyvalue.BinaryPbQueryIndexer

An alias