Class AbstractPeriodComponentFunction

java.lang.Object
org.graylog.plugins.pipelineprocessor.ast.functions.AbstractFunction<org.joda.time.Period>
org.graylog.plugins.pipelineprocessor.functions.dates.periods.AbstractPeriodComponentFunction
All Implemented Interfaces:
Function<org.joda.time.Period>
Direct Known Subclasses:
Days, Hours, Millis, Minutes, Months, Seconds, Weeks, Years

public abstract class AbstractPeriodComponentFunction extends AbstractFunction<org.joda.time.Period>
  • Constructor Details

    • AbstractPeriodComponentFunction

      public AbstractPeriodComponentFunction()
  • Method Details

    • getPeriod

      @Nonnull protected abstract org.joda.time.Period getPeriod(int period)
    • evaluate

      public org.joda.time.Period evaluate(FunctionArgs args, EvaluationContext context)
    • descriptor

      public FunctionDescriptor<org.joda.time.Period> descriptor()
    • getName

      @Nonnull protected abstract String getName()
    • getDescription

      @Nonnull protected abstract String getDescription()
    • getRuleBuilderName

      @Nonnull protected abstract String getRuleBuilderName()
    • getRuleBuilderTitle

      @Nonnull protected abstract String getRuleBuilderTitle()