dataSet

Data Set

size

int 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

void dataSet.join ( DataSet dataSet )

Description

Merge data records from two data sets.

Parameters

  • dataSet Data set whose records are to be merged.

Return Values

Returns void.

getFirstValueForKey

Object dataSet.getFirstValueForKey (String key )

Description

Get the first non-null value, in a data set, for a given token.

findValue

Object dataSet.findValue ( String valueToFind, String columnToMatch, String columnToReturn )

Description

Retrieve a field's value in a data set based on another field.

setCharacterSet

void dataSet.setCharacterSet ( String characterSet )

Description

Set the character set to be used for rendering dataSet values.

getCharacterSet

String dataSet.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 ( void )
DataSet DataSet ( ArrayList dataRecords )

Description

Manually create a DataSet.

clearDataRecords

void dataSet.clearDataRecords ( )

Description

Remove all DataRecord objects from the DataSet.

Parameters

This method does not receive any parameters.

Return Values

Returns void.

addDataRecord

void dataSet.addDataRecord ( DataRecord dataRecord )

Description

Add a DataRecord to a DataSet.

Parameters

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.