Skip to content

Commit

Permalink
[CARBONDATA-2545] Fix some spell error in CarbonData
Browse files Browse the repository at this point in the history
Change Inerface to Interface

This closes #2346
  • Loading branch information
xubo245 authored and jackylk committed May 28, 2018
1 parent a7ac656 commit 33b825d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

import org.apache.hadoop.conf.Configuration;

public class DefaultFileTypeProvider implements FileTypeInerface {
public class DefaultFileTypeProvider implements FileTypeInterface {

public FileReader getFileHolder(FileFactory.FileType fileType) {
switch (fileType) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ public final class FileFactory {
configuration.addResource(new Path("../core-default.xml"));
}

private static FileTypeInerface fileFileTypeInerface = new DefaultFileTypeProvider();
public static void setFileTypeInerface(FileTypeInerface fileTypeInerface) {
fileFileTypeInerface = fileTypeInerface;
private static FileTypeInterface fileFileTypeInterface = new DefaultFileTypeProvider();
public static void setFileTypeInterface(FileTypeInterface fileTypeInterface) {
fileFileTypeInterface = fileTypeInterface;
}
private FileFactory() {

Expand All @@ -63,7 +63,7 @@ public static Configuration getConfiguration() {
}

public static FileReader getFileHolder(FileType fileType) {
return fileFileTypeInerface.getFileHolder(fileType);
return fileFileTypeInterface.getFileHolder(fileType);
}

public static FileType getFileType(String path) {
Expand All @@ -83,14 +83,14 @@ public static FileType getFileType(String path) {
}

public static CarbonFile getCarbonFile(String path) {
return fileFileTypeInerface.getCarbonFile(path, getFileType(path));
return fileFileTypeInterface.getCarbonFile(path, getFileType(path));
}
public static CarbonFile getCarbonFile(String path, FileType fileType) {
return fileFileTypeInerface.getCarbonFile(path, fileType);
return fileFileTypeInterface.getCarbonFile(path, fileType);
}
public static CarbonFile getCarbonFile(String path, FileType fileType,
Configuration hadoopConf) {
return fileFileTypeInerface.getCarbonFile(path, fileType, hadoopConf);
return fileFileTypeInterface.getCarbonFile(path, fileType, hadoopConf);
}

public static DataInputStream getDataInputStream(String path, FileType fileType)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

import org.apache.hadoop.conf.Configuration;

public interface FileTypeInerface {
public interface FileTypeInterface {

FileReader getFileHolder(FileFactory.FileType fileType);
CarbonFile getCarbonFile(String path, FileFactory.FileType fileType);
Expand Down

0 comments on commit 33b825d

Please sign in to comment.