jina.types.sets.querylang

class jina.types.sets.querylang.QueryLangSet(querylang_protos)[source]

Bases: collections.abc.MutableSequence

QueryLangSet is a mutable sequence of QueryLang, it gives an efficient view of a list of Document. One can iterate over it like a generator but ALSO modify it, count it, get item.

insert(index, ql)[source]

S.insert(index, value) – insert value before index

Return type

None

append(value)[source]

S.append(value) – append value to the end of the sequence

extend(iterable)[source]

S.extend(iterable) – extend sequence by appending elements from the iterable

Return type

None

clear() → None -- remove all items from S[source]
reverse()[source]

S.reverse() – reverse IN PLACE

build()[source]

Build a name to QueryLang mapping so one can later index a QueryLang using name as string key