dataSet
size
Description
Get the number of DataRecords in the DataSet.
Parameters
This method does not receive any parameters.
Return Values
Returns the number of DataRecords in the DataSet, as an integer.
join
Description
Merge data records from two data sets.
Parameters
- dataSet Data set whose records are to be merged.
Return Values
Returns void.
getFirstValueForKey
Description
Get the first non-null value, in a data set, for a given token.
findValue
Description
Retrieve a field's value in a data set based on another field.
setCharacterSet
Description
Set the character set to be used for rendering dataSet values.
getCharacterSet
Description
Get the character set being applied the scraped data.
Parameters
This method does not receive any parameters.
Return Values
Returns the character set applied to the scraped data, as a string. If a character set has not been specified then it will default to the character set specified in settings dialog box.
DataSet
DataSet DataSet ( ArrayList dataRecords )
Description
Manually create a DataSet.
clearDataRecords
Description
Remove all DataRecord objects from the DataSet.
Parameters
This method does not receive any parameters.
Return Values
Returns void.
addDataRecord
Description
Add a DataRecord to a DataSet.
Parameters
- dataRecord A DataRecord object.
Return Values
Returns void.
dataSet
Overview
The dataSet object holds all data records extracted by an extractor pattern after it has been applied as many times as possible to the HTML retrieved by a scrapeable file. A data set is analogous to a result or record set that would be returned from a database query. A data set contains any number of data records, which are analogous to rows in a database.
The dataSet object provides methods to aid in getting at the information that has been gathered.