Package com.redis.vl.query
Class Filter.TimestampFilterBuilder
java.lang.Object
com.redis.vl.query.Filter.TimestampFilterBuilder
- Enclosing class:
Filter
Builder for timestamp filters
-
Method Summary
Modifier and TypeMethodDescriptionafter(long epochSeconds) Create a filter for timestamps after a given epoch time.Filter for timestamps after the given instant.after(LocalDateTime dateTime) Filter for timestamps after the given datetime (assumes UTC).after(ZonedDateTime zonedDateTime) Filter for timestamps after the given zoned datetime.before(long epochSeconds) Create a filter for timestamps before a given epoch time.Filter for timestamps before the given instant.before(LocalDateTime dateTime) Filter for timestamps before the given datetime (assumes UTC).before(ZonedDateTime zonedDateTime) Filter for timestamps before the given zoned datetime.between(long startEpochSeconds, long endEpochSeconds) Create a filter for timestamps between two epoch times.Filter for timestamps between the given instants.between(LocalDateTime start, LocalDateTime end) Filter for timestamps between the given datetimes (assumes UTC).between(ZonedDateTime start, ZonedDateTime end) Filter for timestamps between the given zoned datetimes.eq(long epochSeconds) Create a filter for timestamps equal to a given epoch time.Filter for timestamps equal to the given instant.eq(LocalDateTime dateTime) Filter for timestamps equal to the given datetime (assumes UTC).eq(ZonedDateTime zonedDateTime) Filter for timestamps equal to the given zoned datetime.Filter for timestamps greater than the given instant.gt(LocalDateTime dateTime) Filter for timestamps greater than the given datetime (assumes UTC).Filter for timestamps less than the given instant.lt(LocalDateTime dateTime) Filter for timestamps less than the given datetime (assumes UTC).
-
Method Details
-
after
Create a filter for timestamps after a given epoch time.- Parameters:
epochSeconds- The epoch time in seconds- Returns:
- Filter for timestamps after the given time
-
before
Create a filter for timestamps before a given epoch time.- Parameters:
epochSeconds- The epoch time in seconds- Returns:
- Filter for timestamps before the given time
-
between
Create a filter for timestamps between two epoch times.- Parameters:
startEpochSeconds- The start epoch time in secondsendEpochSeconds- The end epoch time in seconds- Returns:
- Filter for timestamps in the given range
-
eq
Create a filter for timestamps equal to a given epoch time.- Parameters:
epochSeconds- The epoch time in seconds- Returns:
- Filter for timestamps equal to the given time
-
after
Filter for timestamps after the given instant.- Parameters:
instant- The instant to compare against- Returns:
- Filter for timestamps after the instant
-
after
Filter for timestamps after the given datetime (assumes UTC).- Parameters:
dateTime- The datetime to compare against (assumed to be UTC)- Returns:
- Filter for timestamps after the datetime
-
after
Filter for timestamps after the given zoned datetime.- Parameters:
zonedDateTime- The zoned datetime to compare against- Returns:
- Filter for timestamps after the zoned datetime
-
before
Filter for timestamps before the given instant.- Parameters:
instant- The instant to compare against- Returns:
- Filter for timestamps before the instant
-
before
Filter for timestamps before the given datetime (assumes UTC).- Parameters:
dateTime- The datetime to compare against (assumed to be UTC)- Returns:
- Filter for timestamps before the datetime
-
before
Filter for timestamps before the given zoned datetime.- Parameters:
zonedDateTime- The zoned datetime to compare against- Returns:
- Filter for timestamps before the zoned datetime
-
between
Filter for timestamps between the given instants.- Parameters:
start- The start instantend- The end instant- Returns:
- Filter for timestamps in the given range
-
between
Filter for timestamps between the given datetimes (assumes UTC).- Parameters:
start- The start datetime (assumed to be UTC)end- The end datetime (assumed to be UTC)- Returns:
- Filter for timestamps in the given range
-
between
Filter for timestamps between the given zoned datetimes.- Parameters:
start- The start zoned datetimeend- The end zoned datetime- Returns:
- Filter for timestamps in the given range
-
eq
Filter for timestamps equal to the given instant.- Parameters:
instant- The instant to compare against- Returns:
- Filter for timestamps equal to the instant
-
eq
Filter for timestamps equal to the given datetime (assumes UTC).- Parameters:
dateTime- The datetime to compare against (assumed to be UTC)- Returns:
- Filter for timestamps equal to the datetime
-
eq
Filter for timestamps equal to the given zoned datetime.- Parameters:
zonedDateTime- The zoned datetime to compare against- Returns:
- Filter for timestamps equal to the zoned datetime
-
gt
Filter for timestamps greater than the given instant.- Parameters:
instant- The instant to compare against- Returns:
- Filter for timestamps greater than the instant
-
gt
Filter for timestamps greater than the given datetime (assumes UTC).- Parameters:
dateTime- The datetime to compare against (assumed to be UTC)- Returns:
- Filter for timestamps greater than the datetime
-
lt
Filter for timestamps less than the given instant.- Parameters:
instant- The instant to compare against- Returns:
- Filter for timestamps less than the instant
-
lt
Filter for timestamps less than the given datetime (assumes UTC).- Parameters:
dateTime- The datetime to compare against (assumed to be UTC)- Returns:
- Filter for timestamps less than the datetime
-