Package org.graylog2.indexer.ranges
Class MongoIndexRange
java.lang.Object
org.graylog2.indexer.ranges.MongoIndexRange
- All Implemented Interfaces:
IndexRange
-
Field Summary
Fields inherited from interface org.graylog2.indexer.ranges.IndexRange
COMPARATOR, FIELD_BEGIN, FIELD_CALCULATED_AT, FIELD_END, FIELD_INDEX_NAME, FIELD_STREAM_IDS, FIELD_TOOK_MS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract org.joda.time.DateTime
begin()
abstract org.joda.time.DateTime
abstract int
static MongoIndexRange
create
(String indexName, org.joda.time.DateTime begin, org.joda.time.DateTime end, org.joda.time.DateTime calculatedAt, int calculationDuration) 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) static MongoIndexRange
create
(org.bson.types.ObjectId id, String indexName, long beginMillis, long endMillis, long calculatedAtMillis, int calculationDuration, List<String> streamIds) 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) 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) static MongoIndexRange
create
(IndexRange indexRange) abstract org.joda.time.DateTime
end()
abstract org.bson.types.ObjectId
id()
abstract String
-
Constructor Details
-
MongoIndexRange
public MongoIndexRange()
-
-
Method Details
-
id
@Nullable public abstract org.bson.types.ObjectId id() -
indexName
- Specified by:
indexName
in interfaceIndexRange
-
begin
public abstract org.joda.time.DateTime begin()- Specified by:
begin
in interfaceIndexRange
-
end
public abstract org.joda.time.DateTime end()- Specified by:
end
in interfaceIndexRange
-
calculatedAt
public abstract org.joda.time.DateTime calculatedAt()- Specified by:
calculatedAt
in interfaceIndexRange
-
calculationDuration
public abstract int calculationDuration()- Specified by:
calculationDuration
in interfaceIndexRange
-
streamIds
- Specified by:
streamIds
in interfaceIndexRange
-
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
-
create
public static MongoIndexRange create(String indexName, org.joda.time.DateTime begin, org.joda.time.DateTime end, org.joda.time.DateTime calculatedAt, int calculationDuration)
-