FluidDataSetQuery:
Filter:
Classes (extension) | Libraries > FluidCorpusManipulation

FluidDataSetQuery : FluidDataObject : FluidServerObject : Object
ExtensionExtension

Query a FluidDataSet

Description

A selection of columns and a set of conditions that match rows of a FluidDataSet. Used to filter and search in a database of descriptors.

Read more about FluidDataSetQuery on the learn platform.

Class Methods

FluidDataSetQuery.new(server)

Arguments:

server

The Server on which to construct this object

Inherited class methods

Instance Methods

.transform(sourceDataSet, destDataSet, action)

Apply the query to a source FluidDataSet and write to a destination. Can be passed the same for input and output (in-place).

Arguments:

sourceDataSet

Source data, or the DataSet name

destDataSet

Destination data, or the DataSet name

action

A function to execute when the server has completed running transform

.transformJoin(source1DataSet, source2DataSet, destDataSet, action)

Apply the query to a source FluidDataSet and join the resulting subset at the end of the items sharing the same identifiers in a second source. Items unique to a source dataset will be ignored. To add items at the end of a dataset instead, see the 'merge' method of FluidDataSet.

Arguments:

source1DataSet

Source data, or the DataSet name

source2DataSet

Source data, or the DataSet name

destDataSet

Destination data, or the DataSet name

action

A function to execute when the server has completed running transformJoin

.addColumn(column, action)

Add a column to the query

Arguments:

column

Column index

action

A function to execute when the server has completed running addColumn

.addRange(start, count, action)

Add a range of columns to the query

Arguments:

start

First index

count

Number of columns

action

A function to execute when the server has completed running addRange

.filter(column, condition, value, action)

Filter rows according to some condition.

Arguments:

column

Column index

condition

Condition string. Possible values: "==", "!=", "<", "<=", ">", ">="

value

Condition value

action

A function to execute when the server has completed running filter

.and(column, condition, value, action)

Add a condition to an existing filter with an "and" connector.

Arguments:

column

Column index

condition

Condition string. Possible values: "==", "!=", "<", "<=", ">", ">="

value

Condition value

action

A function to execute when the server has completed running and

.or(column, condition, value, action)

Add a condition to an existing filter with an "or" connector.

Arguments:

column

Column index

condition

Condition string. Possible values: "==", "!=", "<", "<=", ">", ">="

value

Condition value

action

A function to execute when the server has completed running or

.clear(action)

Resets the internal state of the model

Arguments:

action

A function to execute when the server has completed running clear

.limit(rows, action)

Limit the number of resulting rows.

Arguments:

rows

Maximum number of rows

action

A function to execute when the server has completed running limit

Inherited instance methods

Undocumented instance methods

.addColumnMsg(column)

.addRangeMsg(start, count)

.andMsg(column, condition, value)

.clearMsg

.filterMsg(column, condition, value, action)

.limitMsg(rows)

.orMsg(column, condition, value)

.transformJoinMsg(source1DataSet, source2DataSet, destDataSet)

.transformMsg(sourceDataSet, destDataSet)

Examples

Joining Datasets

Audio Analysis Data