Class Filter.TimestampFilterBuilder

java.lang.Object
com.redis.vl.query.Filter.TimestampFilterBuilder
Enclosing class:
Filter

public static class Filter.TimestampFilterBuilder extends Object
Builder for timestamp filters
  • Method Details

    • after

      public Filter after(long epochSeconds)
      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

      public Filter before(long epochSeconds)
      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

      public Filter between(long startEpochSeconds, long endEpochSeconds)
      Create a filter for timestamps between two epoch times.
      Parameters:
      startEpochSeconds - The start epoch time in seconds
      endEpochSeconds - The end epoch time in seconds
      Returns:
      Filter for timestamps in the given range
    • eq

      public Filter eq(long epochSeconds)
      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

      public Filter after(Instant instant)
      Filter for timestamps after the given instant.
      Parameters:
      instant - The instant to compare against
      Returns:
      Filter for timestamps after the instant
    • after

      public Filter after(LocalDateTime dateTime)
      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

      public Filter after(ZonedDateTime zonedDateTime)
      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

      public Filter before(Instant instant)
      Filter for timestamps before the given instant.
      Parameters:
      instant - The instant to compare against
      Returns:
      Filter for timestamps before the instant
    • before

      public Filter before(LocalDateTime dateTime)
      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

      public Filter before(ZonedDateTime zonedDateTime)
      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

      public Filter between(Instant start, Instant end)
      Filter for timestamps between the given instants.
      Parameters:
      start - The start instant
      end - The end instant
      Returns:
      Filter for timestamps in the given range
    • between

      public Filter between(LocalDateTime start, LocalDateTime end)
      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

      public Filter between(ZonedDateTime start, ZonedDateTime end)
      Filter for timestamps between the given zoned datetimes.
      Parameters:
      start - The start zoned datetime
      end - The end zoned datetime
      Returns:
      Filter for timestamps in the given range
    • eq

      public Filter eq(Instant instant)
      Filter for timestamps equal to the given instant.
      Parameters:
      instant - The instant to compare against
      Returns:
      Filter for timestamps equal to the instant
    • eq

      public Filter eq(LocalDateTime dateTime)
      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

      public Filter eq(ZonedDateTime zonedDateTime)
      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

      public Filter gt(Instant instant)
      Filter for timestamps greater than the given instant.
      Parameters:
      instant - The instant to compare against
      Returns:
      Filter for timestamps greater than the instant
    • gt

      public Filter gt(LocalDateTime dateTime)
      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

      public Filter lt(Instant instant)
      Filter for timestamps less than the given instant.
      Parameters:
      instant - The instant to compare against
      Returns:
      Filter for timestamps less than the instant
    • lt

      public Filter lt(LocalDateTime dateTime)
      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