@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class HiveJsonSerDe extends Object implements Serializable, Cloneable, StructuredPojo
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.
Constructor and Description |
---|
HiveJsonSerDe() |
Modifier and Type | Method and Description |
---|---|
HiveJsonSerDe |
clone() |
boolean |
equals(Object obj) |
List<String> |
getTimestampFormats()
Indicates how you want Kinesis Data Firehose to parse the date and timestamps that may be present in your input
data JSON.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setTimestampFormats(Collection<String> timestampFormats)
Indicates how you want Kinesis Data Firehose to parse the date and timestamps that may be present in your input
data JSON.
|
String |
toString()
Returns a string representation of this object.
|
HiveJsonSerDe |
withTimestampFormats(Collection<String> timestampFormats)
Indicates how you want Kinesis Data Firehose to parse the date and timestamps that may be present in your input
data JSON.
|
HiveJsonSerDe |
withTimestampFormats(String... timestampFormats)
Indicates how you want Kinesis Data Firehose to parse the date and timestamps that may be present in your input
data JSON.
|
public List<String> getTimestampFormats()
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(Collection<String> 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 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.
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 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.public HiveJsonSerDe withTimestampFormats(String... 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 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
setTimestampFormats(java.util.Collection)
or withTimestampFormats(java.util.Collection)
if you
want to override the existing values.
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 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.public HiveJsonSerDe withTimestampFormats(Collection<String> 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 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.
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 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.public String toString()
toString
in class Object
Object.toString()
public HiveJsonSerDe clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.