StreamInputProperties Class

public final class StreamInputProperties
extends InputProperties

The properties that are associated with an input containing stream data.

Constructor Summary

Constructor Description
StreamInputProperties()

Creates an instance of StreamInputProperties class.

Method Summary

Modifier and Type Method and Description
StreamInputDataSource datasource()

Get the datasource property: Describes an input data source that contains stream data.

static StreamInputProperties fromJson(JsonReader jsonReader)

Reads an instance of StreamInputProperties from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: Indicates whether the input is a source of reference data or stream data.

void validate()

Validates the instance.

StreamInputProperties withCompression(Compression compression)

Set the compression property: Describes how input data is compressed.

StreamInputProperties withDatasource(StreamInputDataSource datasource)

Set the datasource property: Describes an input data source that contains stream data.

StreamInputProperties withPartitionKey(String partitionKey)

Set the partitionKey property: partitionKey Describes a key in the input data which is used for partitioning the input data.

StreamInputProperties withSerialization(Serialization serialization)

Set the serialization property: Describes how data from an input is serialized or how data is serialized when written to an output.

Methods inherited from InputProperties

Methods inherited from java.lang.Object

Constructor Details

StreamInputProperties

public StreamInputProperties()

Creates an instance of StreamInputProperties class.

Method Details

datasource

public StreamInputDataSource datasource()

Get the datasource property: Describes an input data source that contains stream data. Required on PUT (CreateOrReplace) requests.

Returns:

the datasource value.

fromJson

public static StreamInputProperties fromJson(JsonReader jsonReader)

Reads an instance of StreamInputProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of StreamInputProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the StreamInputProperties.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

StreamInputProperties.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: Indicates whether the input is a source of reference data or stream data. Required on PUT (CreateOrReplace) requests.

Overrides:

StreamInputProperties.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

Overrides:

StreamInputProperties.validate()

withCompression

public StreamInputProperties withCompression(Compression compression)

Set the compression property: Describes how input data is compressed.

Overrides:

StreamInputProperties.withCompression(Compression compression)

Parameters:

compression

withDatasource

public StreamInputProperties withDatasource(StreamInputDataSource datasource)

Set the datasource property: Describes an input data source that contains stream data. Required on PUT (CreateOrReplace) requests.

Parameters:

datasource - the datasource value to set.

Returns:

the StreamInputProperties object itself.

withPartitionKey

public StreamInputProperties withPartitionKey(String partitionKey)

Set the partitionKey property: partitionKey Describes a key in the input data which is used for partitioning the input data.

Overrides:

StreamInputProperties.withPartitionKey(String partitionKey)

Parameters:

partitionKey

withSerialization

public StreamInputProperties withSerialization(Serialization serialization)

Set the serialization property: Describes how data from an input is serialized or how data is serialized when written to an output. Required on PUT (CreateOrReplace) requests.

Overrides:

StreamInputProperties.withSerialization(Serialization serialization)

Parameters:

serialization

Applies to