T
- type of items a source using this file format will emitpublic class AvroFileFormat<T> extends Object implements FileFormat<T>
FileFormat
for avro files. See FileFormat.avro()
for more
details.Modifier and Type | Field and Description |
---|---|
static String |
FORMAT_AVRO
Format id for Avro.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
format()
Returns the name of the file format.
|
int |
hashCode() |
Class<T> |
reflectClass()
Returns the class Jet will deserialize data into (using reflection).
|
AvroFileFormat<T> |
withReflect(Class<T> reflectClass)
Specifies to use reflection to deserialize data into the given class.
|
public static final String FORMAT_AVRO
@Nonnull public AvroFileFormat<T> withReflect(@Nullable Class<T> reflectClass)
ReflectDatumReader
to read Avro data. The
parameter may be null
, this disables the option to deserialize
using reflection.reflectClass
- class to deserialize data into@Nullable public Class<T> reflectClass()
@Nonnull public String format()
FileFormat
format
in interface FileFormat<T>
Copyright © 2023 Hazelcast, Inc.. All rights reserved.