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
  • Constructor Details

    • StageConfig

      protected StageConfig(String id)
  • Method Details

    • getType

      public String getType()
      Specified by:
      getType in interface com.lucidworks.apollo.common.JsonConfig
    • getId

      public String getId()
      Specified by:
      getId in interface com.lucidworks.apollo.common.JsonConfig
    • isSkip

      public boolean isSkip()
    • getCondition

      public String getCondition()
    • getLabel

      public String getLabel()
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
      Specified by:
      getAdditionalProperties in interface com.lucidworks.apollo.common.WithAdditionalProperties
    • setCondition

      public void setCondition(String condition)
    • setLabel

      protected void setLabel(String label)
    • setSkip

      public void setSkip(boolean skip)
    • setAdditionalProperty

      protected void setAdditionalProperty(String key, Object value)
    • newId

      public static <T> T newId(com.fasterxml.jackson.databind.ObjectMapper mapper, T obj, String id) throws IOException
      Throws:
      IOException
    • equals

      public boolean equals(Object o)
      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
      Overrides:
      equals in class Object
    • 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
      Overrides:
      hashCode in class Object