Skip to content

Commit

Permalink
Initial push
Browse files Browse the repository at this point in the history
  • Loading branch information
myly10 committed Dec 6, 2014
0 parents commit e7c8f6a
Show file tree
Hide file tree
Showing 11 changed files with 278 additions and 0 deletions.
1 change: 1 addition & 0 deletions .idea/.name

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions .idea/copyright/profiles_settings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions .idea/encodings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

183 changes: 183 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions .idea/scopes/scope_settings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions Project_3.iml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>
9 changes: 9 additions & 0 deletions src/Database.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
public class Database{
public String dbString;
public String dbName;

public Database(String dbName, String dbString){
this.dbString=dbString;
this.dbName=dbName;
}
}
25 changes: 25 additions & 0 deletions src/Main.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import java.io.BufferedInputStream;
import java.io.File;
import java.util.ArrayDeque;
import java.util.Scanner;

public class Main{
static final int MAX_THREADS=Runtime.getRuntime().availableProcessors();

public static void main(String[] args){
File in=new File(args[0]), out=new File(args[2]), qf=new File(args[1]);
}

public static Database[] dbReader(BufferedInputStream r){
Scanner scn=new Scanner(r);
ArrayDeque<Database> db=new ArrayDeque<Database>();
String t;
while (true){
scn.nextByte();
t=scn.nextLine();
if (t.equals("EOF")) break;
db.push(new Database(t, scn.nextLine()));
}
return null;
}
}

0 comments on commit e7c8f6a

Please sign in to comment.