Package io.deephaven.kafka.ingest
Class KafkaIngester.PartitionRange
java.lang.Object
io.deephaven.kafka.ingest.KafkaIngester.PartitionRange
- All Implemented Interfaces:
IntPredicate
- Direct Known Subclasses:
KafkaIngester.SinglePartition
- Enclosing class:
- KafkaIngester
A predicate for handling a range of partitions.
-
Constructor Summary
ConstructorDescriptionPartitionRange
(int startInclusive, int endInclusive) Create a predicate for a range of partitions. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.function.IntPredicate
and, negate, or
-
Constructor Details
-
PartitionRange
public PartitionRange(int startInclusive, int endInclusive) Create a predicate for a range of partitions.- Parameters:
startInclusive
- the first partition for an ingesterendInclusive
- the last partition for an ingester
-
-
Method Details
-
test
public boolean test(int value) - Specified by:
test
in interfaceIntPredicate
-
toString
-