Class NoOpReadResponseStats
- java.lang.Object
-
- com.linkedin.davinci.listener.response.NoOpReadResponseStats
-
- All Implemented Interfaces:
ReadResponseStats
public class NoOpReadResponseStats extends java.lang.Object implements ReadResponseStats
-
-
Field Summary
Fields Modifier and Type Field Description static NoOpReadResponseStats
SINGLETON
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addDatabaseLookupLatency(long startTimeInNanos)
The implementer is responsible for doing the subtraction between the current time and the start time.void
addKeySize(int size)
void
addReadComputeDeserializationLatency(double latency)
void
addReadComputeLatency(double latency)
void
addReadComputeOutputSize(int size)
void
addReadComputeSerializationLatency(double latency)
void
addValueSize(int size)
long
getCurrentTimeInNanos()
void
incrementCosineSimilarityCount(int count)
void
incrementCountOperatorCount(int count)
void
incrementDotProductCount(int count)
void
incrementHadamardProductCount(int count)
void
incrementMultiChunkLargeValueCount()
void
setStorageExecutionQueueLen(int storageExecutionQueueLen)
void
setStorageExecutionSubmissionWaitTime(double storageExecutionSubmissionWaitTime)
-
-
-
Field Detail
-
SINGLETON
public static final NoOpReadResponseStats SINGLETON
-
-
Method Detail
-
getCurrentTimeInNanos
public long getCurrentTimeInNanos()
- Specified by:
getCurrentTimeInNanos
in interfaceReadResponseStats
-
addDatabaseLookupLatency
public void addDatabaseLookupLatency(long startTimeInNanos)
Description copied from interface:ReadResponseStats
The implementer is responsible for doing the subtraction between the current time and the start time.- Specified by:
addDatabaseLookupLatency
in interfaceReadResponseStats
- Parameters:
startTimeInNanos
- the timestamp in nanoseconds of beginning of the period to measure.
-
addReadComputeLatency
public void addReadComputeLatency(double latency)
- Specified by:
addReadComputeLatency
in interfaceReadResponseStats
-
addReadComputeDeserializationLatency
public void addReadComputeDeserializationLatency(double latency)
- Specified by:
addReadComputeDeserializationLatency
in interfaceReadResponseStats
-
addReadComputeSerializationLatency
public void addReadComputeSerializationLatency(double latency)
- Specified by:
addReadComputeSerializationLatency
in interfaceReadResponseStats
-
addKeySize
public void addKeySize(int size)
- Specified by:
addKeySize
in interfaceReadResponseStats
-
addValueSize
public void addValueSize(int size)
- Specified by:
addValueSize
in interfaceReadResponseStats
-
addReadComputeOutputSize
public void addReadComputeOutputSize(int size)
- Specified by:
addReadComputeOutputSize
in interfaceReadResponseStats
-
incrementDotProductCount
public void incrementDotProductCount(int count)
- Specified by:
incrementDotProductCount
in interfaceReadResponseStats
-
incrementCountOperatorCount
public void incrementCountOperatorCount(int count)
- Specified by:
incrementCountOperatorCount
in interfaceReadResponseStats
-
incrementCosineSimilarityCount
public void incrementCosineSimilarityCount(int count)
- Specified by:
incrementCosineSimilarityCount
in interfaceReadResponseStats
-
incrementHadamardProductCount
public void incrementHadamardProductCount(int count)
- Specified by:
incrementHadamardProductCount
in interfaceReadResponseStats
-
setStorageExecutionSubmissionWaitTime
public void setStorageExecutionSubmissionWaitTime(double storageExecutionSubmissionWaitTime)
- Specified by:
setStorageExecutionSubmissionWaitTime
in interfaceReadResponseStats
-
setStorageExecutionQueueLen
public void setStorageExecutionQueueLen(int storageExecutionQueueLen)
- Specified by:
setStorageExecutionQueueLen
in interfaceReadResponseStats
-
incrementMultiChunkLargeValueCount
public void incrementMultiChunkLargeValueCount()
- Specified by:
incrementMultiChunkLargeValueCount
in interfaceReadResponseStats
-
-