You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@carbondata.apache.org by KanakaKumar <gi...@git.apache.org> on 2018/11/05 15:18:47 UTC

[GitHub] carbondata pull request #2804: [CARBONDATA-2996] CarbonSchemaReader support ...

Github user KanakaKumar commented on a diff in the pull request:

    https://github.com/apache/carbondata/pull/2804#discussion_r230788337
  
    --- Diff: docs/sdk-guide.md ---
    @@ -685,6 +685,31 @@ Find example code at [CarbonReaderExample](https://github.com/apache/carbondata/
        */
       public static Schema readSchemaInIndexFile(String indexFilePath);
     ```
    +```
    +  /**
    +   * read schema from path,
    +   * path can be folder path,carbonindex file path, and carbondata file path
    +   * and will not check all files schema
    +   *
    +   * @param path file/folder path
    +   * @return schema
    +   * @throws IOException
    +   */
    +  public static Schema readSchema(String path);
    +```
    +```
    +  /**
    +   * 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
    +   *
    +   * @param path             file/folder path
    +   * @param checkFilesSchema whether check all files schema
    +   * @return schema
    +   * @throws IOException
    +   */
    +  public static Schema readSchema(String path, boolean checkFilesSchema);
    --- End diff --
    
    checkFilesSchema should be validateSchema 


---