Class MongoIndexRange

java.lang.Object
org.graylog2.indexer.ranges.MongoIndexRange
All Implemented Interfaces:
IndexRange

public abstract class MongoIndexRange extends Object implements IndexRange
  • Constructor Details

    • MongoIndexRange

      public MongoIndexRange()
  • Method Details

    • id

      @Nullable public abstract org.bson.types.ObjectId id()
    • indexName

      public abstract String indexName()
      Specified by:
      indexName in interface IndexRange
    • begin

      public abstract org.joda.time.DateTime begin()
      Specified by:
      begin in interface IndexRange
    • end

      public abstract org.joda.time.DateTime end()
      Specified by:
      end in interface IndexRange
    • calculatedAt

      public abstract org.joda.time.DateTime calculatedAt()
      Specified by:
      calculatedAt in interface IndexRange
    • calculationDuration

      public abstract int calculationDuration()
      Specified by:
      calculationDuration in interface IndexRange
    • streamIds

      @Nullable public abstract List<String> streamIds()
      Specified by:
      streamIds in interface IndexRange
    • create

      public static MongoIndexRange create(org.bson.types.ObjectId id, String indexName, org.joda.time.DateTime begin, org.joda.time.DateTime end, org.joda.time.DateTime calculatedAt, int calculationDuration, List<String> streamIds)
    • create

      public static MongoIndexRange create(@Nullable org.bson.types.ObjectId id, String indexName, long beginMillis, long endMillis, long calculatedAtMillis, int calculationDuration, @Nullable List<String> streamIds)
    • create

      public static MongoIndexRange create(String indexName, org.joda.time.DateTime begin, org.joda.time.DateTime end, org.joda.time.DateTime calculatedAt, int calculationDuration, List<String> streamIds)
    • create

      public static MongoIndexRange create(org.bson.types.ObjectId id, String indexName, org.joda.time.DateTime begin, org.joda.time.DateTime end, org.joda.time.DateTime calculatedAt, int calculationDuration)
    • create

      public static MongoIndexRange create(IndexRange indexRange)
    • create

      public static MongoIndexRange create(String indexName, org.joda.time.DateTime begin, org.joda.time.DateTime end, org.joda.time.DateTime calculatedAt, int calculationDuration)