delex.lang package

Subpackages

Submodules

delex.lang.program module

class delex.lang.program.BlockingProgram(keep_rules: List[KeepRule], drop_rules: List[DropRule])

Bases: object

a blocking program that can be turned into an execution plan

drop_rules: List[DropRule]
keep_rules: List[KeepRule]
pretty_str() str

create a pretty string of the entire blocking program

validate()

delex.lang.rule module

class delex.lang.rule.DropRule(predicates: List[Predicate])

Bases: Rule

a drop rule for a blocking program

validate()

check that all the predicates in this rule are streamable if not raise RuntimeError

class delex.lang.rule.KeepRule(predicates: List[Predicate])

Bases: Rule

a keep rule for a blocking program

validate()

check that this rule has at least one indexable predicate if not raise RuntimeError

class delex.lang.rule.Rule(predicates: List[Predicate])

Bases: object

base class for a DropRule or KeepRule

contains(other)

return True if self logically contains other else False. That is, for any given set of record pairs C, self(C) is a superset of other(C)

predicates: List[Predicate]
pretty_str() str

format the rule into a pretty string

Module contents