public class CsvRepositoryCollection extends FileRepositoryCollection
The exposes the files as Repository. The names of the repositories are the names of the
files without the extension
| Modifier and Type | Field and Description |
|---|---|
static String |
NAME |
cellProcessors| Constructor and Description |
|---|
CsvRepositoryCollection(File file) |
CsvRepositoryCollection(File file,
CellProcessor... cellProcessors) |
| Modifier and Type | Method and Description |
|---|---|
Iterable<String> |
getEntityIds() |
String |
getName() |
Repository<Entity> |
getRepository(String name) |
boolean |
hasRepository(EntityType entityType) |
boolean |
hasRepository(String name) |
void |
init() |
Iterator<Repository<Entity>> |
iterator() |
void |
setAttributeFactory(AttributeFactory attrMetaFactory) |
void |
setEntityTypeFactory(EntityTypeFactory entityTypeFactory) |
addCellProcessor, getFileNameExtensionsaddAttribute, createRepository, deleteAttribute, deleteRepository, getCapabilities, getRepository, updateAttribute, updateRepositoryclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitstreamforEach, spliteratorpublic static final String NAME
public CsvRepositoryCollection(File file) throws MolgenisInvalidFormatException, IOException
public CsvRepositoryCollection(File file, CellProcessor... cellProcessors) throws MolgenisInvalidFormatException, IOException
public void init()
throws IOException
init in class FileRepositoryCollectionIOExceptionpublic Repository<Entity> getRepository(String name)
public String getName()
public Iterator<Repository<Entity>> iterator()
public boolean hasRepository(String name)
public boolean hasRepository(EntityType entityType)
@Autowired public void setEntityTypeFactory(EntityTypeFactory entityTypeFactory)
@Autowired public void setAttributeFactory(AttributeFactory attrMetaFactory)
Copyright © 2017. All Rights Reserved.