if (tupleDomain.isNone()) {
return false;
}
for (Entry<ConnectorColumnHandle, Comparable<?>> entry : partition.getKeys().entrySet()) {
Domain allowedDomain = tupleDomain.getDomains().get(entry.getKey());
if (allowedDomain != null && !allowedDomain.includesValue(entry.getValue())) {
return false;
}
}
return true;
}