public class IndexFactory {
/**
* Returns an instance of {@link IndexStore} that stores data on disk in the given directory.
*/
public static IndexStore newFileIndexStore(File directory) {
StringCodec stringCodec = new StringCodec();
ContextCodec contextCodec = new ContextCodec();
ElementCodec elementCodec = new ElementCodec(stringCodec);
RelationshipCodec relationshipCodec = new RelationshipCodec(stringCodec);
FileManager fileManager = new SeparateFileManager(directory);
NodeManager nodeManager = new FileNodeManager(