public class TimeFilter extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
TimeFilter.TimeEq |
static class |
TimeFilter.TimeGt |
static class |
TimeFilter.TimeGtEq |
static class |
TimeFilter.TimeIn |
static class |
TimeFilter.TimeLt |
static class |
TimeFilter.TimeLtEq |
static class |
TimeFilter.TimeNotEq |
static class |
TimeFilter.TimeNotFilter |
| Modifier and Type | Method and Description |
|---|---|
static Filter |
defaultTimeFilter(boolean ascending)
returns a default time filter by whether it's an ascending query.
|
static TimeFilter.TimeEq |
eq(long value) |
static TimeFilter.TimeGt |
gt(long value) |
static TimeFilter.TimeGtEq |
gtEq(long value) |
static TimeFilter.TimeIn |
in(Set<Long> values,
boolean not) |
static TimeFilter.TimeLt |
lt(long value) |
static TimeFilter.TimeLtEq |
ltEq(long value) |
static TimeFilter.TimeNotFilter |
not(Filter filter) |
static TimeFilter.TimeNotEq |
notEq(long value) |
public static TimeFilter.TimeEq eq(long value)
public static TimeFilter.TimeGt gt(long value)
public static TimeFilter.TimeGtEq gtEq(long value)
public static TimeFilter.TimeLt lt(long value)
public static TimeFilter.TimeLtEq ltEq(long value)
public static TimeFilter.TimeNotFilter not(Filter filter)
public static TimeFilter.TimeNotEq notEq(long value)
public static TimeFilter.TimeIn in(Set<Long> values, boolean not)
public static Filter defaultTimeFilter(boolean ascending)
If the data is read in descending order, we use the largest timestamp to set to the filter, so the filter should be TimeLtEq. If the data is read in ascending order, we use the smallest timestamp to set to the filter, so the filter should be TimeGtEq.
Copyright © 2022 The Apache Software Foundation. All rights reserved.