Package com.lucidworks.apollo.pipeline
Class StageConfig
java.lang.Object
com.lucidworks.apollo.pipeline.StageConfig
- All Implemented Interfaces:
com.lucidworks.apollo.common.JsonConfig,com.lucidworks.apollo.common.WithAdditionalProperties
- Direct Known Subclasses:
BaseRPCConfig,FieldMappingConfig
public abstract class StageConfig
extends Object
implements com.lucidworks.apollo.common.JsonConfig, com.lucidworks.apollo.common.WithAdditionalProperties
Base class for configuration POJOs
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanA default equals method in case a concrete StageConfig does not provide one.getId()getLabel()getType()inthashCode()A default hashCode method in case a concrete StageConfig does not provide one.booleanisSkip()static <T> Tprotected voidsetAdditionalProperty(String key, Object value) voidsetCondition(String condition) protected voidvoidsetSkip(boolean skip)
-
Constructor Details
-
StageConfig
-
-
Method Details
-
getType
- Specified by:
getTypein interfacecom.lucidworks.apollo.common.JsonConfig
-
getId
- Specified by:
getIdin interfacecom.lucidworks.apollo.common.JsonConfig
-
isSkip
public boolean isSkip() -
getCondition
-
getLabel
-
getAdditionalProperties
- Specified by:
getAdditionalPropertiesin interfacecom.lucidworks.apollo.common.WithAdditionalProperties
-
setCondition
-
setLabel
-
setSkip
public void setSkip(boolean skip) -
setAdditionalProperty
-
newId
public static <T> T newId(com.fasterxml.jackson.databind.ObjectMapper mapper, T obj, String id) throws IOException - Throws:
IOException
-
equals
A default equals method in case a concrete StageConfig does not provide one. It will compare the id, type, and index number of two StageConfig-s -
hashCode
public int hashCode()A default hashCode method in case a concrete StageConfig does not provide one. It will compute a hashcode based on the id, type, and index number
-