We use essential cookies for the website to function, as well as analytics cookies for analyzing and creating statistics of the website performance. To agree to the use of analytics cookies, click "Accept All". You can manage your preferences at any time by clicking "Cookie Settings" on the footer. More Information.

Only Essential Cookies
Accept All

SampleSet

Expand

Class Info

public class SampleSet implements Parcelable

The sampling dataset is the container for storing sampling points. The sampling points stored in a sampling dataset must be from the same data collector (but their raw data collectors can be different). This class is usually used to insert or read sampling data in batches.

Nested Class Summary

Expand

Qualifier and Type

Class Name and Description

public static class

SampleSet.Builder

Builder for SampleSet.

Public Method Summary

Expand

Qualifier and Type

Method Name and Description

void

addSample(SamplePoint samplePoint)

Adds a sampling point to the sampling dataset.

final void

addSampleList(Iterable<SamplePoint> samplePoints)

Adds a list of sampling points to the sampling dataset.

void

addSampleNoCheckLegality(SamplePoint samplePoint)

Adds a sampling point to the sampling dataset (without checking whether the sampling point is valid).

static Builder

builder(DataCollector dataCollector)

Builder for the SampleSet builder.

static SampleSet

create(DataCollector dataCollector)

Creates a new sampling dataset by specifying the data collector.

SamplePoint

createSamplePoint()

Creates an empty sampling point for the data collector of the sampling dataset.

DataCollector

getDataCollector()

Obtains the data collector of the sampling dataset.

DataType

getDataType()

Obtains the data type of the sampling dataset.

List<SamplePoint>

getSamplePoints()

Obtains the sampling point list of the sampling dataset.

boolean

isEmpty()

Checks whether the attribute is empty.

Public Methods

addSample(SamplePoint samplePoint)

Expand

Method

public void addSample(SamplePoint samplePoint)

Adds a sampling point to the sampling dataset.

Parameters

Expand

Name

Description

samplePoint

Sampling point.

addSampleList(Iterable<SamplePoint> samplePoints)

Expand

Method

public final void addSampleList(Iterable<SamplePoint> samplePoints)

Adds a list of sampling points to the sampling dataset.

Parameters

Expand

Name

Description

samplePoints

Iterative sampling dataset.

addSampleNoCheckLegality(SamplePoint samplePoint)

Expand

Method

public void addSampleNoCheckLegality(SamplePoint samplePoint)

Adds a sampling point to the sampling dataset (without checking whether the sampling point is valid).

Parameters

Expand

Name

Description

samplePoint

Sampling point.

builder(DataCollector dataCollector)

Expand

Method

public static Builder builder(DataCollector dataCollector)

Builder for the SampleSet builder.

Parameters

Expand

Name

Description

dataCollector

Data collector.

Returns

Expand

Type

Description

Builder

Builder.

create(DataCollector dataCollector)

Expand

Method

public static SampleSet create(DataCollector dataCollector)

Creates a new sampling dataset by specifying the data collector.

Parameters

Expand

Name

Description

dataCollector

Data collector.

Returns

Expand

Type

Description

SampleSet

Sampling dataset.

createSamplePoint()

Expand

Method

public SamplePoint createSamplePoint()

Creates an empty sampling point for the data collector of the sampling dataset.

Returns

Expand

Type

Description

SamplePoint

Sampling point.

getDataCollector()

Expand

Method

public DataCollector getDataCollector()

Obtains the data collector of the sampling dataset.

Returns

Expand

Type

Description

DataCollector

Data collector.

getDataType()

Expand

Method

public DataType getDataType()

Obtains the data type of the sampling dataset.

Returns

Expand

Type

Description

DataType

Data type.

getSamplePoints()

Expand

Method

public List<SamplePoint> getSamplePoints()

Obtains the sampling point list in the sampling dataset.

Returns

Expand

Type

Description

List<SamplePoint>

List of sampling points.

isEmpty()

Expand

Method

public boolean isEmpty()

Checks whether the sampling dataset is empty.

Returns

Expand

Type

Description

boolean

Whether the sampling dataset is empty.

Search in References
Enter a keyword.