目录

SampleSet

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

Type

Name

Desc

Class

public static class Builder

Builder for SampleSet.

Public Constructor Summary

Constructor name

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

Constructor for SampleSet.

Public Method Summary

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

[h2]equals(Object obj)/hashCode()/toString()

From class

Return type

Method name

java.lang.Object

boolean

public boolean equals(Object obj)

int

public int hashCode()

String

public String toString()

[h2]describeContents()/writeToParcel(Parcel dest, int flags)

From class

Return type

Method name

android.os.Parcelable

int

describeContents()

void

writeToParcel(Parcel dest, int flags)

Public Constructors

[h2]SampleSet(RawSampleSet rawSampleSet, List<DataCollector> dataCollectors)

Constructor name

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

Constructor for SampleSet.

Parameters

Parameter name

Parameter desc

rawSampleSet

Raw sampling dataset.

dataCollectors

Data collector set.

Public Methods

[h2]builder(DataCollector dataCollector)

Method

public Builder builder(DataCollector dataCollector)

Constructor for the SampleSet builder.

Parameters

Parameter name

Parameter desc

dataCollector

Data collector.

Return

Type

Return desc

Builder

Builder.

[h2]addSample(SamplePoint samplePoint)

Method

public void addSample(SamplePoint samplePoint)

Adds a sampling point to the sampling dataset.

Parameters

Parameter name

Parameter desc

samplePoint

Sampling point.

[h2]addSampleList(Iterable<SamplePoint> samplePoints)

Method

public final void addSampleList(Iterable<SamplePoint> samplePoints)

Adds a list of sampling points to the sampling dataset.

Parameters

Parameter name

Parameter desc

samplePoints

Sampling point iterator.

[h2]isEmpty()

Method

public boolean isEmpty()

Checks whether the attribute is empty.

Return

Type

Return desc

boolean

True or False

[h2]getSamplePoints()

Method

public List<SamplePoint> getSamplePoints()

Obtains the sampling point list in the sampling dataset.

Return

Type

Return desc

List<SamplePoint>

List of sampling points.

[h2]getDataCollector()

Method

public DataCollector getDataCollector()

Obtains the data collector of the sampling dataset.

Return

Type

Return desc

DataCollector

Data collector.

[h2]getDataType()

Method

public DataType getDataType()

Obtains the data type of the sampling dataset.

Return

Type

Return desc

DataType

Data type.

[h2]createSamplePoint()

Method

public SamplePoint createSamplePoint()

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

Return

Type

Return desc

SamplePoint

Sampling point.

[h2]create(DataCollector dataCollector)

Method

public static SampleSet create(DataCollector dataCollector)

Creates a new sampling dataset by specifying the data collector.

Parameters

Parameter name

Parameter desc

dataCollector

Data collector.

Return

Type

Return desc

SampleSet

Sampling dataset.

[h2]equals(Object object)

Method

public boolean equals(Object object)

[h2]hashCode()

Method

public int hashCode()

[h2]toString()

Method

public String toString()

[h2]describeContents()

Method

public final int describeContents()

[h2]writeToParcel(Parcel dest, int flags)

Method

public void writeToParcel(Parcel dest, int flags)