code: @Override
      public String getSchema(FileSystem fs, Path path) {
          String schema = null;
          try {
              Reader orcReader = OrcFile.createReader(fs, path);
              schema = orcReader.getObjectInspector().getTypeName();
          } catch (IOException e) {
              logger
                  .warn("Cannot get schema for file: " + path.toUri().getPath());
              return null;
          }
  
          return schema;
      }
docs: Get schema in same syntax as in hadoop --orcdump {@inheritDoc}
  
  @see HdfsFileViewer#getSchema(org.apache.hadoop.fs.FileSystem,
  org.apache.hadoop.fs.Path)