public class AvroMetadata extends Object
Modifier and Type | Method and Description |
---|---|
String |
getCompression()
Gets the name of the compression method used
when writing the file.
|
org.apache.avro.Schema |
getSchema()
Gets the schema used to write the file.
|
static AvroMetadata |
load(FileClient fileClient,
File file)
Loads metadata from the specified Avro formatted file.
|
static AvroMetadata |
load(FileClient fileClient,
Path path)
Loads metadata from the specified Avro formatted file.
|
static AvroMetadata |
load(FileClient fileClient,
String fileName)
Loads metadata from the specified Avro formatted file.
|
public org.apache.avro.Schema getSchema()
public String getCompression()
public static AvroMetadata load(FileClient fileClient, String fileName)
fileClient
- the clientfileName
- the name of the Avro file from which to load metadatapublic static AvroMetadata load(FileClient fileClient, File file)
fileClient
- the clientfile
- the Avro file from which to load metadatapublic static AvroMetadata load(FileClient fileClient, Path path)
fileClient
- the clientpath
- the Avro file from which to load metadataCopyright © 2020 Actian Corporation. All rights reserved.