Intelligent Assistant
Chat with our virtual assistant to get answers promptly.
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.
HMS Core
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. |
Qualifier and Type | Class Name and Description |
|---|---|
public static class | Builder for SampleSet. |
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. |
| Creates an empty sampling point for the data collector of the sampling dataset. | |
| Obtains the data collector of the sampling dataset. | |
| Obtains the data type of the sampling dataset. | |
List<SamplePoint> | Obtains the sampling point list of the sampling dataset. |
boolean | isEmpty() Checks whether the attribute is empty. |
Method |
|---|
public void addSample(SamplePoint samplePoint) Adds a sampling point to the sampling dataset. |
Parameters
Name | Description |
|---|---|
samplePoint | Sampling point. |
Method |
|---|
public final void addSampleList(Iterable<SamplePoint> samplePoints) Adds a list of sampling points to the sampling dataset. |
Parameters
Name | Description |
|---|---|
samplePoints | Iterative sampling dataset. |
Method |
|---|
public void addSampleNoCheckLegality(SamplePoint samplePoint) Adds a sampling point to the sampling dataset (without checking whether the sampling point is valid). |
Parameters
Name | Description |
|---|---|
samplePoint | Sampling point. |
Method |
|---|
public static Builder builder(DataCollector dataCollector) Builder for the SampleSet builder. |
Parameters
Name | Description |
|---|---|
dataCollector | Data collector. |
Returns
Type | Description |
|---|---|
Builder | Builder. |
Method |
|---|
public static SampleSet create(DataCollector dataCollector) Creates a new sampling dataset by specifying the data collector. |
Parameters
Name | Description |
|---|---|
dataCollector | Data collector. |
Returns
Type | Description |
|---|---|
SampleSet | Sampling dataset. |
Method |
|---|
public SamplePoint createSamplePoint() Creates an empty sampling point for the data collector of the sampling dataset. |
Returns
Type | Description |
|---|---|
Sampling point. |
Method |
|---|
public DataCollector getDataCollector() Obtains the data collector of the sampling dataset. |
Returns
Type | Description |
|---|---|
Data collector. |
Method |
|---|
public DataType getDataType() Obtains the data type of the sampling dataset. |
Returns
Type | Description |
|---|---|
Data type. |
Method |
|---|
public List<SamplePoint> getSamplePoints() Obtains the sampling point list in the sampling dataset. |
Returns
Type | Description |
|---|---|
List<SamplePoint> | List of sampling points. |
Method |
|---|
public boolean isEmpty() Checks whether the sampling dataset is empty. |
Returns
Type | Description |
|---|---|
boolean | Whether the sampling dataset is empty. |
Intelligent Assistant
Chat with our virtual assistant to get answers promptly.
Quick start
Helps you find desired resources with ease.