public class FixedRangeGenerator extends Object implements RangeGenerator
| Constructor and Description |
|---|
FixedRangeGenerator(List<TopicRange> ranges) |
| Modifier and Type | Method and Description |
|---|---|
List<TopicRange> |
range(TopicMetadata metadata,
int parallelism)
Generate range for the given topic.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitopen, openpublic FixedRangeGenerator(List<TopicRange> ranges)
public List<TopicRange> range(TopicMetadata metadata, int parallelism)
RangeGeneratorrange in interface RangeGeneratormetadata - The metadata of the topic.parallelism - The reader size for this topic.Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.