public class VcfRepository extends AbstractRepository
The filename without the extension is considered to be the entityname
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_ATTRIBUTE_DESCRIPTION |
static String |
NAME |
static String |
ORIGINAL_NAME |
static String |
PREFIX |
protected com.google.common.base.Supplier<VcfToEntity> |
vcfToEntitySupplier |
| Modifier | Constructor and Description |
|---|---|
|
VcfRepository(File file,
String entityTypeId,
VcfAttributes vcfAttributes,
EntityTypeFactory entityTypeFactory,
AttributeFactory attrMetaFactory) |
protected |
VcfRepository(VcfReaderFactory vcfReaderFactory,
String entityTypeId,
VcfAttributes vcfAttributes,
EntityTypeFactory entityTypeFactory,
AttributeFactory attrMetaFactory) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
long |
count() |
Set<RepositoryCapability> |
getCapabilities() |
EntityType |
getEntityType() |
Iterator<Entity> |
iterator()
Returns an iterator for this repository.
|
add, add, aggregate, count, delete, delete, deleteAll, deleteAll, deleteById, findAll, findAll, findAll, findOne, findOneById, findOneById, forEachBatched, getName, getQueryOperators, query, update, updateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachBatched, getExistingIDs, upsertBatchforEach, spliteratorpublic static final String DEFAULT_ATTRIBUTE_DESCRIPTION
public static final String NAME
public static final String ORIGINAL_NAME
public static final String PREFIX
protected final com.google.common.base.Supplier<VcfToEntity> vcfToEntitySupplier
public VcfRepository(File file, String entityTypeId, VcfAttributes vcfAttributes, EntityTypeFactory entityTypeFactory, AttributeFactory attrMetaFactory) throws IOException
IOExceptionprotected VcfRepository(VcfReaderFactory vcfReaderFactory, String entityTypeId, VcfAttributes vcfAttributes, EntityTypeFactory entityTypeFactory, AttributeFactory attrMetaFactory)
public Iterator<Entity> iterator()
Use with caution! Multiple iterators will all point to the same line in the VCF file, leading to unpredictable behaviour. If you want to get the EntityType of this repository and you can't access getEntityType(), convert the iterator to a PeekingIterator and peek the first Entity.
public EntityType getEntityType()
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class AbstractRepositoryIOExceptionpublic Set<RepositoryCapability> getCapabilities()
public long count()
count in interface Repository<Entity>count in class AbstractRepositoryCopyright © 2017. All rights reserved.