public static class TupleDomainFilter.NullsFilter extends TupleDomainFilter.BasePositionalFilter
TupleDomainFilter.AbstractRange, TupleDomainFilter.AbstractTupleDomainFilter, TupleDomainFilter.AlwaysFalse, TupleDomainFilter.BasePositionalFilter, TupleDomainFilter.BigintMultiRange, TupleDomainFilter.BigintRange, TupleDomainFilter.BigintValuesUsingBitmask, TupleDomainFilter.BigintValuesUsingHashTable, TupleDomainFilter.BooleanValue, TupleDomainFilter.BytesRange, TupleDomainFilter.BytesValues, TupleDomainFilter.BytesValuesExclusive, TupleDomainFilter.DoubleRange, TupleDomainFilter.FloatRange, TupleDomainFilter.IsNotNull, TupleDomainFilter.IsNull, TupleDomainFilter.LongDecimalRange, TupleDomainFilter.MultiRange, TupleDomainFilter.NullsFilter, TupleDomainFilter.PositionalFilterfilterIndex, offsetsALWAYS_FALSE, IS_NOT_NULL, IS_NULL| Constructor and Description |
|---|
NullsFilter() |
| Modifier and Type | Method and Description |
|---|---|
void |
setup(boolean[] nullsAllowed,
boolean[] nonNullsAllowed,
int[] offsets) |
boolean |
testBoolean(boolean value) |
boolean |
testBytes(byte[] buffer,
int offset,
int length) |
boolean |
testDecimal(long low,
long high) |
boolean |
testDouble(double value) |
boolean |
testFloat(float value) |
boolean |
testLength(int length)
Filters like string equality and IN, as well as conditions on cardinality of lists and maps can be at least partly
decided by looking at lengths alone.
|
boolean |
testLong(long value) |
boolean |
testNonNull()
Used to apply is [not] null filters to complex types, e.g.
|
boolean |
testNull() |
advance, getFailed, getPrecedingPositionsToFail, getSucceedingPositionsToFail, isDeterministic, isPositionalFilter, recordTestResult, resetpublic void setup(boolean[] nullsAllowed,
boolean[] nonNullsAllowed,
int[] offsets)
public boolean testNull()
public boolean testNonNull()
TupleDomainFilterIn these case, the exact values are not known, but it is known whether they are null or not. Furthermore, for some positions only nulls are allowed (a[1] is null), for others only non-nulls (a[3] is not null), and for the rest both are allowed (a[2] and a[N], where N > 3).
public boolean testLong(long value)
public boolean testDouble(double value)
public boolean testFloat(float value)
public boolean testDecimal(long low,
long high)
public boolean testBoolean(boolean value)
public boolean testBytes(byte[] buffer,
int offset,
int length)
public boolean testLength(int length)
TupleDomainFilterCopyright © 2012–2022. All rights reserved.