class IndexGeneratorFactory {

	public static IndexGenerator createIndexGenerator(String index, TableSchema schema) {
		final IndexHelper indexHelper = new IndexHelper();
		if (indexHelper.checkIsDynamicIndex(index)) {
			return createRuntimeIndexGenerator(index, schema.getFieldNames(), schema.getFieldDataTypes(), indexHelper);
		} else {
			return new StaticIndexGenerator(index);
		}
	}

	private  IndexGeneratorFactory();

}