public class CarbonSchemaReader extends Object
| Constructor and Description |
|---|
CarbonSchemaReader() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getVersionDetails(String dataFilePath)
This method return the version details in formatted string by reading from carbondata file
|
static Schema |
readSchema(String path)
read schema from path,
path can be folder path, carbonindex file path, and carbondata file path
and will not check all files schema
|
static Schema |
readSchema(String path,
boolean validateSchema)
read schema from path,
path can be folder path, carbonindex file path, and carbondata file path
and user can decide whether check all files schema
|
static Schema |
readSchemaFromDataFile(String dataFilePath)
Read schema from carbondata file
|
static Schema |
readSchemaInDataFile(String dataFilePath)
Deprecated.
|
static Schema |
readSchemaInIndexFile(String indexFilePath)
Deprecated.
|
static Schema |
readSchemaInSchemaFile(String schemaFilePath)
Deprecated.
|
@Deprecated public static Schema readSchemaInSchemaFile(String schemaFilePath) throws IOException
schemaFilePath - complete path including schema file nameIOExceptionpublic static Schema readSchema(String path) throws IOException
path - file/folder pathIOExceptionpublic static Schema readSchema(String path, boolean validateSchema) throws IOException
path - file/folder pathvalidateSchema - whether check all files schemaIOException@Deprecated public static Schema readSchemaInDataFile(String dataFilePath) throws IOException
dataFilePath - carbondata file store pathIOExceptionpublic static Schema readSchemaFromDataFile(String dataFilePath) throws IOException
dataFilePath - carbondata file pathIOException@Deprecated public static Schema readSchemaInIndexFile(String indexFilePath) throws IOException
indexFilePath - complete path including index file nameIOExceptionpublic static String getVersionDetails(String dataFilePath) throws IOException
dataFilePath - IOExceptionCopyright © 2016–2018 The Apache Software Foundation. All rights reserved.