wip
This commit is contained in:
parent
8d30d14458
commit
8eb6d7073e
1 changed files with 5 additions and 5 deletions
|
@ -70,10 +70,10 @@ public class SeekOperations {
|
||||||
case BEGINNING:
|
case BEGINNING:
|
||||||
return consumer.beginningOffsets(offsetsInfo.getNonEmptyPartitions());
|
return consumer.beginningOffsets(offsetsInfo.getNonEmptyPartitions());
|
||||||
case OFFSET:
|
case OFFSET:
|
||||||
Preconditions.checkNotNull(offsetsInfo);
|
Preconditions.checkNotNull(seekTo);
|
||||||
return fixOffsets(offsetsInfo, seekTo);
|
return fixOffsets(offsetsInfo, seekTo);
|
||||||
case TIMESTAMP:
|
case TIMESTAMP:
|
||||||
Preconditions.checkNotNull(offsetsInfo);
|
Preconditions.checkNotNull(seekTo);
|
||||||
return offsetsForTimestamp(consumer, offsetsInfo, seekTo);
|
return offsetsForTimestamp(consumer, offsetsInfo, seekTo);
|
||||||
default:
|
default:
|
||||||
throw new IllegalStateException();
|
throw new IllegalStateException();
|
||||||
|
|
Loading…
Add table
Reference in a new issue