Skip to content
Permalink
Browse files
remove unused code (#53)
Change-Id: I120fe8119b53c484b45a02e84e692424fdece599
  • Loading branch information
javeme committed Apr 9, 2019
1 parent f2367fa commit 6dab02b779bf561b8646497d09265e095ce29549
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 22 deletions.
@@ -25,7 +25,6 @@
import java.util.Set;

import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;

import com.baidu.hugegraph.driver.HugeClient;
import com.baidu.hugegraph.loader.exception.LoadException;
@@ -47,15 +46,12 @@
import com.baidu.hugegraph.structure.schema.SchemaLabel;
import com.baidu.hugegraph.structure.schema.VertexLabel;
import com.baidu.hugegraph.util.E;
import com.baidu.hugegraph.util.Log;
import com.google.common.collect.HashBasedTable;
import com.google.common.collect.Table;

public abstract class ElementBuilder<GE extends GraphElement>
implements AutoCloseableIterator<GE> {

private static final Logger LOG = Log.logger(ElementBuilder.class);

private static final int VERTEX_ID_LIMIT = 128;
private static final String ID_CHARSET = "UTF-8";

@@ -21,20 +21,16 @@

import org.codehaus.groovy.control.CompilerConfiguration;
import org.codehaus.groovy.control.customizers.ImportCustomizer;
import org.slf4j.Logger;

import com.baidu.hugegraph.driver.HugeClient;
import com.baidu.hugegraph.driver.SchemaManager;
import com.baidu.hugegraph.util.Log;

import groovy.lang.Binding;
import groovy.lang.GroovyShell;
import groovy.util.DelegatingScript;

public class GroovyExecutor {

private static final Logger LOG = Log.logger(GroovyExecutor.class);

private final Binding binding;

public GroovyExecutor() {
@@ -27,17 +27,13 @@
import java.util.List;

import org.apache.commons.io.FileUtils;
import org.slf4j.Logger;

import com.baidu.hugegraph.loader.exception.LoadException;
import com.baidu.hugegraph.loader.reader.Readable;
import com.baidu.hugegraph.loader.source.file.FileSource;
import com.baidu.hugegraph.util.Log;

public class FileReader extends AbstractFileReader {

private static final Logger LOG = Log.logger(FileReader.class);

public FileReader(FileSource source) {
super(source);
}
@@ -23,18 +23,13 @@
import java.util.List;
import java.util.NoSuchElementException;

import org.slf4j.Logger;

import com.baidu.hugegraph.loader.exception.LoadException;
import com.baidu.hugegraph.loader.reader.InputReader;
import com.baidu.hugegraph.loader.reader.Line;
import com.baidu.hugegraph.loader.source.jdbc.JDBCSource;
import com.baidu.hugegraph.util.Log;

public class JDBCReader implements InputReader {

private static final Logger LOG = Log.logger(JDBCReader.class);

private final JDBCSource source;
private final RowFetcher fetcher;

@@ -22,7 +22,6 @@
import java.io.IOException;
import java.net.URI;
import java.nio.charset.Charset;
import java.nio.file.Paths;
import java.util.Arrays;

import org.apache.commons.compress.compressors.CompressorException;
@@ -61,10 +60,6 @@ private static Configuration loadConfiguration() {
return new Configuration();
}

private static Path path(String configPath, String configFile) {
return new Path(Paths.get(configPath, configFile).toString());
}

@Override
public void mkdirs(String dir) {
Path path = new Path(this.storePath, dir);

0 comments on commit 6dab02b

Please sign in to comment.