CsvSerialization Class
- java.
lang. Object - com.
azure. resourcemanager. streamanalytics. models. Serialization - com.
azure. resourcemanager. streamanalytics. models. CsvSerialization
- com.
- com.
public final class CsvSerialization
extends Serialization
Describes how data from an input is serialized or how data is serialized when written to an output in CSV format.
Constructor Summary
| Constructor | Description |
|---|---|
| CsvSerialization() |
Creates an instance of Csv |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| Encoding |
encoding()
Get the encoding property: Specifies the encoding of the incoming data in the case of input and the encoding of outgoing data in the case of output. |
| String |
fieldDelimiter()
Get the field |
|
static
Csv |
fromJson(JsonReader jsonReader)
Reads an instance of Csv |
|
Json |
toJson(JsonWriter jsonWriter) |
|
Event |
type()
Get the type property: Indicates the type of serialization that the input or output uses. |
| void |
validate()
Validates the instance. |
|
Csv |
withEncoding(Encoding encoding)
Set the encoding property: Specifies the encoding of the incoming data in the case of input and the encoding of outgoing data in the case of output. |
|
Csv |
withFieldDelimiter(String fieldDelimiter)
Set the field |
Methods inherited from Serialization
Methods inherited from java.lang.Object
Constructor Details
CsvSerialization
public CsvSerialization()
Creates an instance of CsvSerialization class.
Method Details
encoding
public Encoding encoding()
Get the encoding property: Specifies the encoding of the incoming data in the case of input and the encoding of outgoing data in the case of output. Required on PUT (CreateOrReplace) requests.
Returns:
fieldDelimiter
public String fieldDelimiter()
Get the fieldDelimiter property: Specifies the delimiter that will be used to separate comma-separated value (CSV) records. See https://docs.microsoft.com/en-us/rest/api/streamanalytics/stream-analytics-input or https://docs.microsoft.com/en-us/rest/api/streamanalytics/stream-analytics-output for a list of supported values. Required on PUT (CreateOrReplace) requests.
Returns:
fromJson
public static CsvSerialization fromJson(JsonReader jsonReader)
Reads an instance of CsvSerialization from the JsonReader.
Parameters:
Returns:
Throws:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
CsvSerialization.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public EventSerializationType type()
Get the type property: Indicates the type of serialization that the input or output uses. Required on PUT (CreateOrReplace) requests.
Overrides:
CsvSerialization.type()Returns:
validate
public void validate()
Validates the instance.
Overrides:
CsvSerialization.validate()withEncoding
public CsvSerialization withEncoding(Encoding encoding)
Set the encoding property: Specifies the encoding of the incoming data in the case of input and the encoding of outgoing data in the case of output. Required on PUT (CreateOrReplace) requests.
Parameters:
Returns:
withFieldDelimiter
public CsvSerialization withFieldDelimiter(String fieldDelimiter)
Set the fieldDelimiter property: Specifies the delimiter that will be used to separate comma-separated value (CSV) records. See https://docs.microsoft.com/en-us/rest/api/streamanalytics/stream-analytics-input or https://docs.microsoft.com/en-us/rest/api/streamanalytics/stream-analytics-output for a list of supported values. Required on PUT (CreateOrReplace) requests.
Parameters:
Returns: