Intelligent Assistant
Chat with our virtual assistant to get answers promptly.
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. |
Type | Name | Desc |
|---|---|---|
Class | public static class Builder | Builder for SampleSet. |
Constructor name |
|---|
public SampleSet(RawSampleSet rawSampleSet, List<DataCollector> dataCollectors) Constructor for SampleSet. |
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) |
From class | Return type | Method name |
|---|---|---|
java.lang.Object | boolean | public boolean equals(Object obj) |
int | public int hashCode() | |
String | public String toString() |
From class | Return type | Method name |
|---|---|---|
android.os.Parcelable | int | describeContents() |
void | writeToParcel(Parcel dest, int flags) |
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. |
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. |
Method |
|---|
public void addSample(SamplePoint samplePoint) |
Adds a sampling point to the sampling dataset. |
Parameters
Parameter name | Parameter desc |
|---|---|
samplePoint | Sampling point. |
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. |
Method |
|---|
public boolean isEmpty() |
Checks whether the attribute is empty. |
Return
Type | Return desc |
|---|---|
boolean | True or False |
Method |
|---|
public List<SamplePoint> getSamplePoints() |
Obtains the sampling point list in the sampling dataset. |
Return
Type | Return desc |
|---|---|
List<SamplePoint> | List of sampling points. |
Method |
|---|
public DataCollector getDataCollector() |
Obtains the data collector of the sampling dataset. |
Return
Type | Return desc |
|---|---|
DataCollector | Data collector. |
Method |
|---|
public DataType getDataType() |
Obtains the data type of the sampling dataset. |
Return
Type | Return desc |
|---|---|
DataType | Data type. |
Method |
|---|
public SamplePoint createSamplePoint() |
Creates an empty sampling point for the data collector of the sampling dataset. |
Return
Type | Return desc |
|---|---|
SamplePoint | Sampling point. |
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. |
Method |
|---|
public boolean equals(Object object) |
Method |
|---|
public int hashCode() |
Method |
|---|
public String toString() |
Method |
|---|
public final int describeContents() |
Method |
|---|
public void writeToParcel(Parcel dest, int flags) |