capmoe.datastructure

capmoe.datastructure.invertedindex

synopsis:Provides implementations of inverted index.
class capmoe.datastructure.invertedindex.InvertedIndexRedis(**kw)[source]

Bases: object

Inverted index whose backend is Redis.

redis module is used as backend.

Very specific class: Only methods necesarry for BoF inverted index are provided.

__init__(**kw)[source]

Connect to Redis server.

Parameters:kw – passed to redis.StrictRedis
addhash(name, key, value)[source]

Adds key & value pair into name record

getdict(name)[source]

Get value of name record

Table Of Contents

This Page