Composite Segments

A Segment can be created by combining other Segments together through ANDs and ORs. This is accomplished via the composite_segment_spec parameter when creating a new Segment. This is simply a string describing how to combine segments together, and is represented in Conjunctive Normal Form, where each literal is a Segment ID.

Segment 1 AND Segment 2

1 & 2
(1 & 2)

Segment 1 AND (Segment 2 or Segment 3)

1 & (2 | 3)

Segment 1 AND Segment 2 AND NOT Segment 3

1 & 2 & ~3