ParquetFormat Class

public final class ParquetFormat
extends DatasetStorageFormat

The data stored in Parquet format.

Constructor Summary

Constructor Description
ParquetFormat()

Creates an instance of ParquetFormat class.

Method Summary

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

Reads an instance of ParquetFormat from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: Type of dataset storage format.

void validate()

Validates the instance.

ParquetFormat withDeserializer(Object deserializer)

Set the deserializer property: Deserializer.

ParquetFormat withSerializer(Object serializer)

Set the serializer property: Serializer.

Methods inherited from DatasetStorageFormat

Methods inherited from java.lang.Object

Constructor Details

ParquetFormat

public ParquetFormat()

Creates an instance of ParquetFormat class.

Method Details

fromJson

public static ParquetFormat fromJson(JsonReader jsonReader)

Reads an instance of ParquetFormat from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

ParquetFormat.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: Type of dataset storage format.

Overrides:

ParquetFormat.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

Overrides:

ParquetFormat.validate()

withDeserializer

public ParquetFormat withDeserializer(Object deserializer)

Set the deserializer property: Deserializer. Type: string (or Expression with resultType string).

Overrides:

ParquetFormat.withDeserializer(Object deserializer)

Parameters:

deserializer

withSerializer

public ParquetFormat withSerializer(Object serializer)

Set the serializer property: Serializer. Type: string (or Expression with resultType string).

Overrides:

ParquetFormat.withSerializer(Object serializer)

Parameters:

serializer

Applies to