Package org.apache.jmeter.report.core
Class SampleMetadata
java.lang.Object
org.apache.jmeter.report.core.SampleMetadata
Describe samples structure by holding sample column names and theirs matching indexes.
- Since:
- 3.0
- 
Constructor SummaryConstructorsConstructorDescriptionSampleMetadata(char separator, String... columns) Builds metadata from separator character and a list of column namesSampleMetadata(SampleSaveConfiguration saveConfig) Construct SampleMetaData fromSampleSaveConfiguration.
- 
Method SummaryModifier and TypeMethodDescriptionintensureIndexOf(String col) Returns the index of the column with the specified name.intgetColumnName(int i) Gets the name of the ith column in this metadataGets the name of the ith column in this metadatacharintReturns the index of the column with the specified name.toString()
- 
Constructor Details- 
SampleMetadataBuilds metadata from separator character and a list of column names- Parameters:
- separator- The character used for column separation
- columns- The list of columns names (must not be- null)
 
- 
SampleMetadataConstruct SampleMetaData fromSampleSaveConfiguration.- Parameters:
- saveConfig- config from which metadata gets extracted (must not be- null)
 
 
- 
- 
Method Details- 
getSeparatorpublic char getSeparator()- Returns:
- the character used for separating columns
 
- 
getColumnCountpublic int getColumnCount()- Returns:
- the number of columns in the metadata
 
- 
getColumnNameGets the name of the ith column in this metadata- Parameters:
- i- The index of the column for which the name is requested (zero based)
- Returns:
- The column name of the ith column
- Throws:
- IndexOutOfBoundsException- If the requested column does not exist (< 0 or >- getColumnCount())
 
- 
getColumnNameGets the name of the ith column in this metadata- Parameters:
- i- The index of the column for which the name is requested (zero based)
- Returns:
- The column name of the ith column
- Throws:
- IndexOutOfBoundsException- If the requested columln does not exist (< 0 or >- getColumnCount())
 
- 
indexOfReturns the index of the column with the specified name.- Parameters:
- col- the column name for which the index is requested
- Returns:
- The index of the requested column or -1 if the requested column does not exist in this metadata
 
- 
ensureIndexOfReturns the index of the column with the specified name.- Parameters:
- col- the column name for which the index is requested
- Returns:
- The index of the requested column
- Throws:
- SampleException- when the column with the specified name is not found
 
- 
toString
 
-