Skip to content

Commit

Permalink
Rename LocalExchangeSink and LocalExchangeSource (elastic#106245)
Browse files Browse the repository at this point in the history
These should not have the term Local.
  • Loading branch information
dnhatn authored Mar 12, 2024
1 parent 10dcb8e commit e42e47e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ public ExchangeSinkHandler(BlockFactory blockFactory, int maxBufferSize, LongSup
this.lastUpdatedInMillis = new AtomicLong(nowInMillis.getAsLong());
}

private class LocalExchangeSink implements ExchangeSink {
private class ExchangeSinkImpl implements ExchangeSink {
boolean finished;

LocalExchangeSink() {
ExchangeSinkImpl() {
onChanged();
outstandingSinks.incrementAndGet();
}
Expand Down Expand Up @@ -155,7 +155,7 @@ private void notifyListeners() {
* @see ExchangeSinkOperator
*/
public ExchangeSink createExchangeSink() {
return new LocalExchangeSink();
return new ExchangeSinkImpl();
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ public ExchangeSourceHandler(int maxBufferSize, Executor fetchExecutor) {
this.outstandingSources = new PendingInstances(() -> buffer.finish(true));
}

private class LocalExchangeSource implements ExchangeSource {
private class ExchangeSourceImpl implements ExchangeSource {
private boolean finished;

LocalExchangeSource() {
ExchangeSourceImpl() {
outstandingSources.trackNewInstance();
}

Expand Down Expand Up @@ -95,7 +95,7 @@ public int bufferSize() {
* @see ExchangeSinkOperator
*/
public ExchangeSource createExchangeSource() {
return new LocalExchangeSource();
return new ExchangeSourceImpl();
}

/**
Expand Down

0 comments on commit e42e47e

Please sign in to comment.