public class PartitionUtils
extends Object
Modifier and Type | Method and Description |
---|---|
static boolean |
partitionExists(Engine engine,
Snapshot snapshot,
Predicate partitionPredicate)
Check if a partition exists (i.e.
|
public static boolean partitionExists(Engine engine, Snapshot snapshot, Predicate partitionPredicate)
Snapshot
based on the
given Predicate
.engine
- the Engine
to use for scanning the partition.snapshot
- the Snapshot
to scan.partitionPredicate
- the Predicate
to use for filtering the partition.IllegalArgumentException
- if the predicate does not reference any partition columns or
if it references any data columns