overflowdb.formats.Importer.scala Maven / Gradle / Ivy
package overflowdb.formats
import org.slf4j.LoggerFactory
import overflowdb.Graph
import java.nio.file.{Path, Paths}
trait Importer {
protected val logger = LoggerFactory.getLogger(getClass)
def runImport(graph: Graph, inputFiles: Seq[Path]): Unit
def runImport(graph: Graph, inputFile: Path): Unit =
runImport(graph, Seq(inputFile))
def runImport(graph: Graph, inputFile: String): Unit =
runImport(graph, Paths.get(inputFile))
}