Portability | portable |
---|---|
Stability | experimental |
Maintainer | Timo B. Huebel (tbh@holumbus.org) |
Safe Haskell | None |
Version : 0.3
The data type for intermediate results occuring during query processing.
- type Intermediate = DocIdMap IntermediateContexts
- emptyIntermediate :: Intermediate
- null :: Intermediate -> Bool
- sizeIntermediate :: Intermediate -> Int
- union :: Intermediate -> Intermediate -> Intermediate
- difference :: Intermediate -> Intermediate -> Intermediate
- intersection :: Intermediate -> Intermediate -> Intermediate
- unions :: [Intermediate] -> Intermediate
- fromList :: Word -> Context -> RawResult -> Intermediate
- toResult :: HolDocuments d c => d c -> Intermediate -> Result c
The intermediate result type.
type Intermediate = DocIdMap IntermediateContextsSource
The intermediate result used during query processing.
Construction
emptyIntermediate :: IntermediateSource
Create an empty intermediate result.
Query
null :: Intermediate -> BoolSource
Check if the intermediate result is empty.
sizeIntermediate :: Intermediate -> IntSource
Returns the number of documents in the intermediate result.
Combine
union :: Intermediate -> Intermediate -> IntermediateSource
Union two sets of intermediate results.
difference :: Intermediate -> Intermediate -> IntermediateSource
Substract two sets of intermediate results.
intersection :: Intermediate -> Intermediate -> IntermediateSource
Intersect two sets of intermediate results.
unions :: [Intermediate] -> IntermediateSource
Merges a bunch of intermediate results into one intermediate result by unioning them.
Conversion
fromList :: Word -> Context -> RawResult -> IntermediateSource
Create an intermediate result from a list of words and their occurrences.
toResult :: HolDocuments d c => d c -> Intermediate -> Result cSource
Convert to a Result
by generating the WordHits
structure.