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 |
readSchema(String path,
boolean validateSchema,
org.apache.hadoop.conf.Configuration conf)
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 |
readSchema(String path,
org.apache.hadoop.conf.Configuration conf)
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 |
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, org.apache.hadoop.conf.Configuration conf) throws IOException
path - file/folder pathconf - hadoop configuration support, can set s3a AK,SK,end point and other conf with thisIOExceptionpublic static Schema readSchema(String path, boolean validateSchema, org.apache.hadoop.conf.Configuration conf) throws IOException
path - file/folder pathvalidateSchema - whether check all files schemaconf - hadoop configuration support, can set s3a AK,SK,
end point and other conf with thisIOExceptionpublic 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 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–2019 The Apache Software Foundation. All rights reserved.