Class RewriterFactory
- java.lang.Object
-
- org.aksw.limes.core.execution.rewriter.RewriterFactory
-
public class RewriterFactory extends Object
Implements the rewriter factory class. The rewriter factory class is responsible for choosing and creating the corresponding rewriter object.- Version:
- 1.0
- Author:
- Kleanthi Georgala (georgala@informatik.uni-leipzig.de)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRewriterFactory.RewriterTypeEnum class of allowed rewriter types.
-
Constructor Summary
Constructors Constructor Description RewriterFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RewritergetDefaultRewriter()static RewritergetRewriter(RewriterFactory.RewriterType type)Factory function for retrieving the desired rewriter instance.static RewriterFactory.RewriterTypegetRewriterType(String name)Factory function for retrieving an rewriter name from the set of allowed types.
-
-
-
Field Detail
-
DEFAULT
public static final String DEFAULT
Planner factory field for default rewriter.- See Also:
- Constant Field Values
-
ALGEBRAIC
public static final String ALGEBRAIC
Planner factory field for algebraic rewriter.- See Also:
- Constant Field Values
-
-
Method Detail
-
getDefaultRewriter
public static Rewriter getDefaultRewriter()
- Returns:
- default rewriter implementation
-
getRewriterType
public static RewriterFactory.RewriterType getRewriterType(String name)
Factory function for retrieving an rewriter name from the set of allowed types.- Parameters:
name- , The name/type of the rewriter.- Returns:
- a specific rewriter type
-
getRewriter
public static Rewriter getRewriter(RewriterFactory.RewriterType type)
Factory function for retrieving the desired rewriter instance.- Parameters:
type- , type of the Rewriter- Returns:
- a specific rewriter instance
-
-