@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Spigot extends Object implements Serializable, Cloneable, StructuredPojo
Specifies a transform that writes samples of the data to an Amazon S3 bucket.
| Constructor and Description |
|---|
Spigot() |
| Modifier and Type | Method and Description |
|---|---|
Spigot |
clone() |
boolean |
equals(Object obj) |
List<String> |
getInputs()
The data inputs identified by their node names.
|
String |
getName()
The name of the transform node.
|
String |
getPath()
A path in Amazon S3 where the transform will write a subset of records from the dataset to a JSON file in an
Amazon S3 bucket.
|
Double |
getProb()
The probability (a decimal value with a maximum value of 1) of picking any given record.
|
Integer |
getTopk()
Specifies a number of records to write starting from the beginning of the dataset.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setInputs(Collection<String> inputs)
The data inputs identified by their node names.
|
void |
setName(String name)
The name of the transform node.
|
void |
setPath(String path)
A path in Amazon S3 where the transform will write a subset of records from the dataset to a JSON file in an
Amazon S3 bucket.
|
void |
setProb(Double prob)
The probability (a decimal value with a maximum value of 1) of picking any given record.
|
void |
setTopk(Integer topk)
Specifies a number of records to write starting from the beginning of the dataset.
|
String |
toString()
Returns a string representation of this object.
|
Spigot |
withInputs(Collection<String> inputs)
The data inputs identified by their node names.
|
Spigot |
withInputs(String... inputs)
The data inputs identified by their node names.
|
Spigot |
withName(String name)
The name of the transform node.
|
Spigot |
withPath(String path)
A path in Amazon S3 where the transform will write a subset of records from the dataset to a JSON file in an
Amazon S3 bucket.
|
Spigot |
withProb(Double prob)
The probability (a decimal value with a maximum value of 1) of picking any given record.
|
Spigot |
withTopk(Integer topk)
Specifies a number of records to write starting from the beginning of the dataset.
|
public void setName(String name)
The name of the transform node.
name - The name of the transform node.public String getName()
The name of the transform node.
public Spigot withName(String name)
The name of the transform node.
name - The name of the transform node.public List<String> getInputs()
The data inputs identified by their node names.
public void setInputs(Collection<String> inputs)
The data inputs identified by their node names.
inputs - The data inputs identified by their node names.public Spigot withInputs(String... inputs)
The data inputs identified by their node names.
NOTE: This method appends the values to the existing list (if any). Use
setInputs(java.util.Collection) or withInputs(java.util.Collection) if you want to override the
existing values.
inputs - The data inputs identified by their node names.public Spigot withInputs(Collection<String> inputs)
The data inputs identified by their node names.
inputs - The data inputs identified by their node names.public void setPath(String path)
A path in Amazon S3 where the transform will write a subset of records from the dataset to a JSON file in an Amazon S3 bucket.
path - A path in Amazon S3 where the transform will write a subset of records from the dataset to a JSON file in
an Amazon S3 bucket.public String getPath()
A path in Amazon S3 where the transform will write a subset of records from the dataset to a JSON file in an Amazon S3 bucket.
public Spigot withPath(String path)
A path in Amazon S3 where the transform will write a subset of records from the dataset to a JSON file in an Amazon S3 bucket.
path - A path in Amazon S3 where the transform will write a subset of records from the dataset to a JSON file in
an Amazon S3 bucket.public void setTopk(Integer topk)
Specifies a number of records to write starting from the beginning of the dataset.
topk - Specifies a number of records to write starting from the beginning of the dataset.public Integer getTopk()
Specifies a number of records to write starting from the beginning of the dataset.
public Spigot withTopk(Integer topk)
Specifies a number of records to write starting from the beginning of the dataset.
topk - Specifies a number of records to write starting from the beginning of the dataset.public void setProb(Double prob)
The probability (a decimal value with a maximum value of 1) of picking any given record. A value of 1 indicates that each row read from the dataset should be included in the sample output.
prob - The probability (a decimal value with a maximum value of 1) of picking any given record. A value of 1
indicates that each row read from the dataset should be included in the sample output.public Double getProb()
The probability (a decimal value with a maximum value of 1) of picking any given record. A value of 1 indicates that each row read from the dataset should be included in the sample output.
public Spigot withProb(Double prob)
The probability (a decimal value with a maximum value of 1) of picking any given record. A value of 1 indicates that each row read from the dataset should be included in the sample output.
prob - The probability (a decimal value with a maximum value of 1) of picking any given record. A value of 1
indicates that each row read from the dataset should be included in the sample output.public String toString()
toString in class ObjectObject.toString()public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.