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 class represents 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

Type

Name

Desc

Class

public static class Builder

Builder for SampleSet.

Public Constructor Summary

Expand

Constructor name

public SampleSet(RawSampleSet rawSampleSet, List<DataCollector> dataCollectors)

Constructor for SampleSet.

Public Method Summary

Expand

Return

Method

Builder

builder(DataCollector dataCollector)

Constructor for the SampleSet builder.

void

addSample(SamplePoint samplePoint)

Adds a sampling point to the sampling dataset.

void

addSampleList(Iterable<SamplePoint> samplePoints)

Adds a list of sampling points to the sampling dataset.

boolean

isEmpty()

Checks whether the attribute is empty.

SampleSet

create(DataCollector dataCollector)

Creates a new sampling dataset by specifying the data collector.

List<SamplePoint>

getSamplePoints()

Obtains the sampling point list of the sampling dataset.

DataCollector

getDataCollector()

Obtains the data collector of the sampling dataset.

DataType

getDataType()

Obtains the data type of the sampling dataset.

SamplePoint

createSamplePoint()

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

boolean

equals(Object obj)

int

hashCode()

String

toString()

int

describeContents()

void

writeToParcel(Parcel dest, int flags)

Inherited Method Summary

equals(Object obj)/hashCode()/toString()

Expand

From class

Return type

Method name

java.lang.Object

boolean

public boolean equals(Object obj)

int

public int hashCode()

String

public String toString()

describeContents()/writeToParcel(Parcel dest, int flags)

Expand

From class

Return type

Method name

android.os.Parcelable

int

describeContents()

void

writeToParcel(Parcel dest, int flags)

Public Constructors

SampleSet(RawSampleSet rawSampleSet, List<DataCollector> dataCollectors)

Expand

Constructor name

public SampleSet(RawSampleSet rawSampleSet, List<DataCollector> dataCollectors)

Constructor for SampleSet.

Parameters

Expand

Parameter name

Parameter desc

rawSampleSet

Raw sampling dataset.

dataCollectors

Data collector set.

Public Methods

builder(DataCollector dataCollector)

Expand

Method

public Builder builder(DataCollector dataCollector)

Constructor for the SampleSet builder.

Parameters

Expand

Parameter name

Parameter desc

dataCollector

Data collector.

Return

Expand

Type

Return desc

Builder

Builder.

addSample(SamplePoint samplePoint)

Expand

Method

public void addSample(SamplePoint samplePoint)

Adds a sampling point to the sampling dataset.

Parameters

Expand

Parameter name

Parameter desc

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

Parameter name

Parameter desc

samplePoints

Sampling point iterator.

isEmpty()

Expand

Method

public boolean isEmpty()

Checks whether the attribute is empty.

Return

Expand

Type

Return desc

boolean

True or False

getSamplePoints()

Expand

Method

public List<SamplePoint> getSamplePoints()

Obtains the sampling point list in the sampling dataset.

Return

Expand

Type

Return desc

List<SamplePoint>

List of sampling points.

getDataCollector()

Expand

Method

public DataCollector getDataCollector()

Obtains the data collector of the sampling dataset.

Return

Expand

Type

Return desc

DataCollector

Data collector.

getDataType()

Expand

Method

public DataType getDataType()

Obtains the data type of the sampling dataset.

Return

Expand

Type

Return desc

DataType

Data type.

createSamplePoint()

Expand

Method

public SamplePoint createSamplePoint()

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

Return

Expand

Type

Return desc

SamplePoint

Sampling point.

create(DataCollector dataCollector)

Expand

Method

public static SampleSet create(DataCollector dataCollector)

Creates a new sampling dataset by specifying the data collector.

Parameters

Expand

Parameter name

Parameter desc

dataCollector

Data collector.

Return

Expand

Type

Return desc

SampleSet

Sampling dataset.

equals(Object object)

Expand

Method

public boolean equals(Object object)

hashCode()

Expand

Method

public int hashCode()

toString()

Expand

Method

public String toString()

describeContents()

Expand

Method

public final int describeContents()

writeToParcel(Parcel dest, int flags)

Expand

Method

public void writeToParcel(Parcel dest, int flags)

Search
Enter a keyword.