private IndexBase createIndexByType(IndexFLANN indexType, double[][] data,
			BuildParamsBase buildParams, Metric metric) {
		IndexBase index;
		switch (indexType) {
		case LINEAR:
			break;
		case KDTREE_SINGLE:
			break;
		case KDTREE:
			break;
		case KMEANS:
			break;
		case LSH:
			break;
		case HIERARCHICAL:
			break;
		case AUTOTUNED:
			break;
		case SAVED:
			break;
		case COMPOSITE:
			break;
		}
		return null;
	}