CompileQuery Class

  • java.lang.Object
    • com.azure.resourcemanager.streamanalytics.models.CompileQuery

Implements

public final class CompileQuery
implements JsonSerializable<CompileQuery>

The query compilation object which defines the input, output, and transformation for the query compilation.

Constructor Summary

Constructor Description
CompileQuery()

Creates an instance of CompileQuery class.

Method Summary

Modifier and Type Method and Description
CompatibilityLevel compatibilityLevel()

Get the compatibilityLevel property: The query to compile.

static CompileQuery fromJson(JsonReader jsonReader)

Reads an instance of CompileQuery from the JsonReader.

List<QueryFunction> functions()

Get the functions property: The functions for the query compilation.

List<QueryInput> inputs()

Get the inputs property: The inputs for the query compilation.

JobType jobType()

Get the jobType property: Describes the type of the job.

String query()

Get the query property: The query to compile.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

CompileQuery withCompatibilityLevel(CompatibilityLevel compatibilityLevel)

Set the compatibilityLevel property: The query to compile.

CompileQuery withFunctions(List<QueryFunction> functions)

Set the functions property: The functions for the query compilation.

CompileQuery withInputs(List<QueryInput> inputs)

Set the inputs property: The inputs for the query compilation.

CompileQuery withJobType(JobType jobType)

Set the jobType property: Describes the type of the job.

CompileQuery withQuery(String query)

Set the query property: The query to compile.

Methods inherited from java.lang.Object

Constructor Details

CompileQuery

public CompileQuery()

Creates an instance of CompileQuery class.

Method Details

compatibilityLevel

public CompatibilityLevel compatibilityLevel()

Get the compatibilityLevel property: The query to compile.

Returns:

the compatibilityLevel value.

fromJson

public static CompileQuery fromJson(JsonReader jsonReader)

Reads an instance of CompileQuery from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

functions

public List<QueryFunction> functions()

Get the functions property: The functions for the query compilation.

Returns:

the functions value.

inputs

public List<QueryInput> inputs()

Get the inputs property: The inputs for the query compilation.

Returns:

the inputs value.

jobType

public JobType jobType()

Get the jobType property: Describes the type of the job. Valid values are `Cloud` and 'Edge'.

Returns:

the jobType value.

query

public String query()

Get the query property: The query to compile.

Returns:

the query value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withCompatibilityLevel

public CompileQuery withCompatibilityLevel(CompatibilityLevel compatibilityLevel)

Set the compatibilityLevel property: The query to compile.

Parameters:

compatibilityLevel - the compatibilityLevel value to set.

Returns:

the CompileQuery object itself.

withFunctions

public CompileQuery withFunctions(List<QueryFunction> functions)

Set the functions property: The functions for the query compilation.

Parameters:

functions - the functions value to set.

Returns:

the CompileQuery object itself.

withInputs

public CompileQuery withInputs(List<QueryInput> inputs)

Set the inputs property: The inputs for the query compilation.

Parameters:

inputs - the inputs value to set.

Returns:

the CompileQuery object itself.

withJobType

public CompileQuery withJobType(JobType jobType)

Set the jobType property: Describes the type of the job. Valid values are `Cloud` and 'Edge'.

Parameters:

jobType - the jobType value to set.

Returns:

the CompileQuery object itself.

withQuery

public CompileQuery withQuery(String query)

Set the query property: The query to compile.

Parameters:

query - the query value to set.

Returns:

the CompileQuery object itself.

Applies to