public final class TupleDomain<T> extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
TupleDomain.ColumnDomain<C> |
static interface |
TupleDomain.Function<F,T> |
| Modifier and Type | Method and Description |
|---|---|
static <T> TupleDomain<T> |
all() |
static <T> TupleDomain<T> |
columnWiseUnion(List<TupleDomain<T>> tupleDomains)
Returns a TupleDomain in which corresponding column Domains are unioned together.
|
static <T> TupleDomain<T> |
columnWiseUnion(TupleDomain<T> first,
TupleDomain<T> second,
TupleDomain<T>... rest) |
boolean |
contains(TupleDomain<T> other)
Returns true only if the this TupleDomain contains all possible tuples that would be allowable by
the other TupleDomain.
|
boolean |
equals(Object o) |
Map<T,Comparable<?>> |
extractFixedValues()
Extract all column constraints that require exactly one value in their respective Domains.
|
static <T> TupleDomain<T> |
fromNullableColumnDomains(List<TupleDomain.ColumnDomain<T>> nullableColumnDomains) |
Map<T,Domain> |
getDomains()
Gets the TupleDomain as a map of each column to its respective Domain.
|
List<TupleDomain.ColumnDomain<T>> |
getNullableColumnDomains() |
int |
hashCode() |
TupleDomain<T> |
intersect(TupleDomain<T> other)
Returns the strict intersection of the TupleDomains.
|
boolean |
isAll()
Returns true if any tuples would satisfy this TupleDomain
|
boolean |
isNone()
Returns true if no tuple could ever satisfy this TupleDomain
|
static <T> TupleDomain<T> |
none() |
boolean |
overlaps(TupleDomain<T> other)
Returns true only if there exists a strict intersection between the TupleDomains.
|
String |
toString() |
<U> TupleDomain<U> |
transform(TupleDomain.Function<T,U> function) |
static <T> TupleDomain<T> |
withColumnDomains(Map<T,Domain> domains) |
static <T> TupleDomain<T> |
withFixedValues(Map<T,Comparable<?>> fixedValues)
Convert a map of columns to values into the TupleDomain which requires
those columns to be fixed to those values.
|
public static <T> TupleDomain<T> withColumnDomains(Map<T,Domain> domains)
public static <T> TupleDomain<T> none()
public static <T> TupleDomain<T> all()
public static <T> TupleDomain<T> withFixedValues(Map<T,Comparable<?>> fixedValues)
public static <T> TupleDomain<T> fromNullableColumnDomains(List<TupleDomain.ColumnDomain<T>> nullableColumnDomains)
public List<TupleDomain.ColumnDomain<T>> getNullableColumnDomains()
public boolean isAll()
public boolean isNone()
public Map<T,Domain> getDomains()
public Map<T,Comparable<?>> extractFixedValues()
public TupleDomain<T> intersect(TupleDomain<T> other)
@SafeVarargs public static <T> TupleDomain<T> columnWiseUnion(TupleDomain<T> first, TupleDomain<T> second, TupleDomain<T>... rest)
public static <T> TupleDomain<T> columnWiseUnion(List<TupleDomain<T>> tupleDomains)
public boolean overlaps(TupleDomain<T> other)
public boolean contains(TupleDomain<T> other)
public <U> TupleDomain<U> transform(TupleDomain.Function<T,U> function)
Copyright © 2012-2014. All Rights Reserved.