RawStreamInputDataSource Class

public final class RawStreamInputDataSource
extends StreamInputDataSource

Describes a raw input data source that contains stream data. This data source type is only applicable/usable when using the query testing API. You cannot create a job with this data source type or add an input of this data source type to an existing job.

Constructor Summary

Constructor Description
RawStreamInputDataSource()

Creates an instance of RawStreamInputDataSource class.

Method Summary

Modifier and Type Method and Description
static RawStreamInputDataSource fromJson(JsonReader jsonReader)

Reads an instance of RawStreamInputDataSource from the JsonReader.

String payload()

Get the payload property: The JSON serialized content of the input data.

String payloadUri()

Get the payloadUri property: The SAS URL to a blob containing the JSON serialized content of the input data.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: Indicates the type of input data source containing stream data.

void validate()

Validates the instance.

RawStreamInputDataSource withPayload(String payload)

Set the payload property: The JSON serialized content of the input data.

RawStreamInputDataSource withPayloadUri(String payloadUri)

Set the payloadUri property: The SAS URL to a blob containing the JSON serialized content of the input data.

Methods inherited from StreamInputDataSource

Methods inherited from java.lang.Object

Constructor Details

RawStreamInputDataSource

public RawStreamInputDataSource()

Creates an instance of RawStreamInputDataSource class.

Method Details

fromJson

public static RawStreamInputDataSource fromJson(JsonReader jsonReader)

Reads an instance of RawStreamInputDataSource from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of RawStreamInputDataSource 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 RawStreamInputDataSource.

payload

public String payload()

Get the payload property: The JSON serialized content of the input data. Either payload or payloadUri must be set, but not both.

Returns:

the payload value.

payloadUri

public String payloadUri()

Get the payloadUri property: The SAS URL to a blob containing the JSON serialized content of the input data. Either payload or payloadUri must be set, but not both.

Returns:

the payloadUri value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

RawStreamInputDataSource.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: Indicates the type of input data source containing stream data. Required on PUT (CreateOrReplace) requests.

Overrides:

RawStreamInputDataSource.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

Overrides:

RawStreamInputDataSource.validate()

withPayload

public RawStreamInputDataSource withPayload(String payload)

Set the payload property: The JSON serialized content of the input data. Either payload or payloadUri must be set, but not both.

Parameters:

payload - the payload value to set.

Returns:

the RawStreamInputDataSource object itself.

withPayloadUri

public RawStreamInputDataSource withPayloadUri(String payloadUri)

Set the payloadUri property: The SAS URL to a blob containing the JSON serialized content of the input data. Either payload or payloadUri must be set, but not both.

Parameters:

payloadUri - the payloadUri value to set.

Returns:

the RawStreamInputDataSource object itself.

Applies to