Package io.prestosql.operator
Class ExchangeClientStatus
- java.lang.Object
-
- io.prestosql.operator.ExchangeClientStatus
-
- All Implemented Interfaces:
OperatorInfo
,Mergeable<ExchangeClientStatus>
public class ExchangeClientStatus extends Object implements Mergeable<ExchangeClientStatus>, OperatorInfo
-
-
Constructor Summary
Constructors Constructor Description ExchangeClientStatus(long bufferedBytes, long maxBufferedBytes, long averageBytesPerRequest, long successFullRequestsCount, int bufferedPages, boolean noMoreLocations, List<PageBufferClientStatus> pageBufferClientStatuses)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getAverageBytesPerRequest()
long
getBufferedBytes()
int
getBufferedPages()
long
getMaxBufferedBytes()
List<PageBufferClientStatus>
getPageBufferClientStatuses()
long
getSuccessfulRequestsCount()
boolean
isFinal()
boolean
isNoMoreLocations()
ExchangeClientStatus
mergeWith(ExchangeClientStatus other)
Merges the current state with the state of the other instance, and returns the merged state.String
toString()
-
-
-
Constructor Detail
-
ExchangeClientStatus
public ExchangeClientStatus(long bufferedBytes, long maxBufferedBytes, long averageBytesPerRequest, long successFullRequestsCount, int bufferedPages, boolean noMoreLocations, List<PageBufferClientStatus> pageBufferClientStatuses)
-
-
Method Detail
-
getBufferedBytes
public long getBufferedBytes()
-
getMaxBufferedBytes
public long getMaxBufferedBytes()
-
getAverageBytesPerRequest
public long getAverageBytesPerRequest()
-
getSuccessfulRequestsCount
public long getSuccessfulRequestsCount()
-
getBufferedPages
public int getBufferedPages()
-
isNoMoreLocations
public boolean isNoMoreLocations()
-
getPageBufferClientStatuses
public List<PageBufferClientStatus> getPageBufferClientStatuses()
-
isFinal
public boolean isFinal()
- Specified by:
isFinal
in interfaceOperatorInfo
- Returns:
- true if this OperatorInfo should be collected and sent to the coordinator when the task completes (i.e. it will not be stripped away during summarization).
-
mergeWith
public ExchangeClientStatus mergeWith(ExchangeClientStatus other)
Description copied from interface:Mergeable
Merges the current state with the state of the other instance, and returns the merged state.- Specified by:
mergeWith
in interfaceMergeable<ExchangeClientStatus>
-
-