/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.kinesisfirehose.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* The native Hive / HCatalog JsonSerDe. Used by Kinesis Data Firehose for deserializing data, which means converting it * from the JSON format in preparation for serializing it to the Parquet or ORC format. This is one of two deserializers * you can choose, depending on which one offers the functionality you need. The other option is the OpenX SerDe. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class HiveJsonSerDe implements Serializable, Cloneable, StructuredPojo { /** *
* Indicates how you want Kinesis Data Firehose to parse the date and timestamps that may be present in your input
* data JSON. To specify these format strings, follow the pattern syntax of JodaTime's DateTimeFormat format
* strings. For more information, see Class DateTimeFormat.
* You can also use the special value millis
to parse timestamps in epoch milliseconds. If you don't
* specify a format, Kinesis Data Firehose uses java.sql.Timestamp::valueOf
by default.
*
* Indicates how you want Kinesis Data Firehose to parse the date and timestamps that may be present in your input
* data JSON. To specify these format strings, follow the pattern syntax of JodaTime's DateTimeFormat format
* strings. For more information, see Class DateTimeFormat.
* You can also use the special value millis
to parse timestamps in epoch milliseconds. If you don't
* specify a format, Kinesis Data Firehose uses java.sql.Timestamp::valueOf
by default.
*
millis
to parse timestamps in epoch
* milliseconds. If you don't specify a format, Kinesis Data Firehose uses
* java.sql.Timestamp::valueOf
by default.
*/
public java.util.List
* Indicates how you want Kinesis Data Firehose to parse the date and timestamps that may be present in your input
* data JSON. To specify these format strings, follow the pattern syntax of JodaTime's DateTimeFormat format
* strings. For more information, see Class DateTimeFormat.
* You can also use the special value millis
to parse timestamps in epoch milliseconds. If you don't
* specify a format, Kinesis Data Firehose uses java.sql.Timestamp::valueOf
by default.
*
millis
to parse timestamps in epoch
* milliseconds. If you don't specify a format, Kinesis Data Firehose uses
* java.sql.Timestamp::valueOf
by default.
*/
public void setTimestampFormats(java.util.Collection
* Indicates how you want Kinesis Data Firehose to parse the date and timestamps that may be present in your input
* data JSON. To specify these format strings, follow the pattern syntax of JodaTime's DateTimeFormat format
* strings. For more information, see Class DateTimeFormat.
* You can also use the special value millis
to parse timestamps in epoch milliseconds. If you don't
* specify a format, Kinesis Data Firehose uses java.sql.Timestamp::valueOf
by default.
*
* NOTE: This method appends the values to the existing list (if any). Use * {@link #setTimestampFormats(java.util.Collection)} or {@link #withTimestampFormats(java.util.Collection)} if you * want to override the existing values. *
* * @param timestampFormats * Indicates how you want Kinesis Data Firehose to parse the date and timestamps that may be present in your * input data JSON. To specify these format strings, follow the pattern syntax of JodaTime's DateTimeFormat * format strings. For more information, see Class * DateTimeFormat. You can also use the special valuemillis
to parse timestamps in epoch
* milliseconds. If you don't specify a format, Kinesis Data Firehose uses
* java.sql.Timestamp::valueOf
by default.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public HiveJsonSerDe withTimestampFormats(String... timestampFormats) {
if (this.timestampFormats == null) {
setTimestampFormats(new java.util.ArrayList
* Indicates how you want Kinesis Data Firehose to parse the date and timestamps that may be present in your input
* data JSON. To specify these format strings, follow the pattern syntax of JodaTime's DateTimeFormat format
* strings. For more information, see Class DateTimeFormat.
* You can also use the special value millis
to parse timestamps in epoch milliseconds. If you don't
* specify a format, Kinesis Data Firehose uses java.sql.Timestamp::valueOf
by default.
*
millis
to parse timestamps in epoch
* milliseconds. If you don't specify a format, Kinesis Data Firehose uses
* java.sql.Timestamp::valueOf
by default.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public HiveJsonSerDe withTimestampFormats(java.util.Collection