public class Schemas extends Object
| Constructor and Description |
|---|
Schemas() |
| Modifier and Type | Method and Description |
|---|---|
static Schema |
fromAvro(Configuration conf,
URI location) |
static Schema |
fromAvro(File location) |
static Schema |
fromAvro(FileSystem fs,
Path location) |
static Schema |
fromAvro(InputStream in) |
static Schema |
fromAvsc(Configuration conf,
URI location) |
static Schema |
fromAvsc(File location) |
static Schema |
fromAvsc(FileSystem fs,
Path path) |
static Schema |
fromAvsc(InputStream in) |
static Schema |
fromJSON(String name,
Configuration conf,
URI location) |
static Schema |
fromJSON(String name,
File location) |
static Schema |
fromJSON(String name,
FileSystem fs,
Path location) |
static Schema |
fromJSON(String name,
InputStream in) |
static Schema |
fromParquet(Configuration conf,
URI location) |
static Schema |
fromParquet(File location) |
static Schema |
fromParquet(FileSystem fs,
Path location) |
public static Schema fromAvsc(InputStream in) throws IOException
IOExceptionpublic static Schema fromAvsc(File location) throws IOException
IOExceptionpublic static Schema fromAvsc(FileSystem fs, Path path) throws IOException
IOExceptionpublic static Schema fromAvsc(Configuration conf, URI location) throws IOException
IOExceptionpublic static Schema fromAvro(InputStream in) throws IOException
IOExceptionpublic static Schema fromAvro(File location) throws IOException
IOExceptionpublic static Schema fromAvro(FileSystem fs, Path location) throws IOException
IOExceptionpublic static Schema fromAvro(Configuration conf, URI location) throws IOException
IOExceptionpublic static Schema fromParquet(File location) throws IOException
IOExceptionpublic static Schema fromParquet(FileSystem fs, Path location) throws IOException
IOExceptionpublic static Schema fromParquet(Configuration conf, URI location) throws IOException
IOExceptionpublic static Schema fromJSON(String name, InputStream in) throws IOException
IOExceptionpublic static Schema fromJSON(String name, File location) throws IOException
IOExceptionpublic static Schema fromJSON(String name, FileSystem fs, Path location) throws IOException
IOExceptionpublic static Schema fromJSON(String name, Configuration conf, URI location) throws IOException
IOExceptionCopyright © 2013–2015. All rights reserved.