public void setup(Context context) throws IOException {

		// 读取随机向量信息
		Path[] caches = DistributedCache.getLocalCacheFiles(context
				.getConfiguration());
		if (caches == null || caches.length <= 0) {
			System.err.println("Random vector is missing!");
			System.exit(1);
		}
		BufferedReader br = null;
		br = new BufferedReader(new InputStreamReader(new FileInputStream(
				caches[0].toString()), "UTF-8"));
		String bufferedReadLine;
		for (int i = 0; i < EntityDriver.RANDOM_VECTORS; i++) {
			bufferedReadLine = br.readLine();
			if (bufferedReadLine.length() == EntityDriver.DIMENSION) {
				for (int j = 0; j < EntityDriver.DIMENSION; j++) {
					randomVector[i][j] = Integer.parseInt(bufferedReadLine
							.charAt(j) + "") == 1 ? true : false;
				}
			}
		}
		try {
			br.close();
		} catch (Exception e) {
			e.printStackTrace();
		}
	}