Class SliceLikeOperation

java.lang.Object
com.illumon.iris.db.v2.SliceLikeOperation
All Implemented Interfaces:
QueryTable.Operation

public class SliceLikeOperation extends Object implements QueryTable.Operation
  • Method Details

    • slice

      public static SliceLikeOperation slice(QueryTable parent, long firstPositionInclusive, long lastPositionExclusive, String op)
    • headPct

      public static SliceLikeOperation headPct(QueryTable parent, double percent)
    • tailPct

      public static SliceLikeOperation tailPct(QueryTable parent, double percent)
    • getDescription

      public String getDescription()
      Specified by:
      getDescription in interface QueryTable.Operation
      Returns:
      the description of this operation
    • getLogPrefix

      public String getLogPrefix()
      Specified by:
      getLogPrefix in interface QueryTable.Operation
      Returns:
      the log prefix of this operation
    • getFirstPositionInclusive

      protected long getFirstPositionInclusive()
    • getLastPositionExclusive

      protected long getLastPositionExclusive()
    • initialize

      public QueryTable.Operation.Result initialize(boolean usePrev, long beforeClock)
      Description copied from interface: QueryTable.Operation
      Initialize this operation.
      Specified by:
      initialize in interface QueryTable.Operation
      Parameters:
      usePrev - data from the previous cycle should be used (otherwise use this cycle)
      beforeClock - the clock value that we captured before the function began; the function can use this value to bail out early if it notices something has gone wrong.
      Returns:
      the result table / listener if successful, null if it should be retried.