Class FieldSampleComparator
java.lang.Object
org.apache.jmeter.report.processor.FieldSampleComparator
- All Implemented Interfaces:
SampleComparator
- Since:
- 3.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongCompares to samplefinal voidinitialize(SampleMetadata metadata) Initializes the comparator with theSampleMetadataof the samples to be compared.
-
Constructor Details
-
FieldSampleComparator
-
-
Method Details
-
initialize
Description copied from interface:SampleComparatorInitializes the comparator with theSampleMetadataof the samples to be compared.
This function is invoked before any call to the
compareservice.Not that this function is the place to get sample column indexes for better performance
- Specified by:
initializein interfaceSampleComparator- Parameters:
metadata- The metadata of the sample to be compared by this instance
-
compare
Description copied from interface:SampleComparatorCompares to sampleMust return an long integer that define the relational order of the 2 compared samples:
- Negative long integer : s1 is lower than s2
- Zero long integer : s1 is strictly equal to s2
- Positive long integer : s1 is greater than s2
- Specified by:
comparein interfaceSampleComparator- Parameters:
s1- The first sample to be compareds2- The second sample to compared- Returns:
- A negative is
s1 < s2,0 if s1 = s2, a positive integer ifs1 > s2
-