diff src/alice/test/codesegment/local/wordcount/WordConfig.java @ 242:3bcaf12cf877

use MappedByteBuffer
author sugi
date Tue, 16 Apr 2013 18:26:07 +0900
parents 02783f3699b1
children
line wrap: on
line diff
--- a/src/alice/test/codesegment/local/wordcount/WordConfig.java	Tue Apr 16 15:09:47 2013 +0900
+++ b/src/alice/test/codesegment/local/wordcount/WordConfig.java	Tue Apr 16 18:26:07 2013 +0900
@@ -2,7 +2,6 @@
 
 public class WordConfig {
 	public String filename;
-	public int block = 1;
 	public static String[] array;
 	public int division = 16;
 	
@@ -10,8 +9,8 @@
 		for (int i=0;i<args.length; i++){
 			if ("-f".equals(args[i])){
 				filename = args[++i];	
-			} else if ("-b".equals(args[i])){
-				block = Integer.parseInt(args[++i]);	
+			} else if ("-d".equals(args[i])){
+				division = Integer.parseInt(args[++i]);	
 			}
 		}
 		
@@ -19,13 +18,6 @@
 			System.out.println("Usage: WordCount -f FILENAME");
 			System.exit(0);
 		}
-		createKey();
 	}
 
-	public void createKey(){
-		array = new String[block];
-		for(int i = 0 ; i < block ; i++) {
-			array[i] = "array" + i;
-		}
-	}
 }