public static class DatasetProperties.Builder extends Object
Modifier | Constructor and Description |
---|---|
protected |
Builder() |
Modifier and Type | Method and Description |
---|---|
DatasetProperties.Builder |
add(String key,
int value)
Adds a property.
|
DatasetProperties.Builder |
add(String key,
long value)
Adds a property.
|
DatasetProperties.Builder |
add(String key,
String value)
Adds a property.
|
DatasetProperties.Builder |
addAll(Map<String,String> properties)
Adds multiple properties.
|
DatasetProperties |
build()
Create a DatasetProperties from this builder, using the private DatasetProperties
constructor.
|
DatasetProperties.Builder |
setDescription(String description)
Sets description of the dataset
|
public DatasetProperties.Builder setDescription(String description)
description
- dataset descriptionpublic DatasetProperties.Builder add(String key, String value)
key
- the name of the propertyvalue
- the value of the propertypublic DatasetProperties.Builder add(String key, int value)
key
- the name of the propertyvalue
- the value of the propertypublic DatasetProperties.Builder add(String key, long value)
key
- the name of the propertyvalue
- the value of the propertypublic DatasetProperties.Builder addAll(Map<String,String> properties)
properties
- the map of properties to addpublic DatasetProperties build()
Copyright © 2020 Cask Data, Inc. Licensed under the Apache License, Version 2.0.