public class TabixVcfRepository extends VcfRepository
DEFAULT_ATTRIBUTE_DESCRIPTION, NAME, ORIGINAL_NAME, PREFIX, vcfToEntitySupplier| Constructor and Description |
|---|
TabixVcfRepository(File file,
String entityTypeId,
VcfAttributes vcfAttributes,
EntityTypeFactory entityTypeFactory,
AttributeFactory attrMetaFactory) |
| Modifier and Type | Method and Description |
|---|---|
Stream<Entity> |
findAll(Query<Entity> q) |
Set<RepositoryCapability> |
getCapabilities() |
protected Collection<String> |
getLines(TabixReader.Iterator iterator)
Collect the lines returned in a
TabixReader.Iterator. |
List<Entity> |
query(String chrom,
int posFrom,
int posTo)
Queries the tabix reader.
|
close, count, getEntityType, iteratoradd, add, aggregate, count, delete, delete, deleteAll, deleteAll, deleteById, findAll, findAll, findOne, findOneById, findOneById, forEachBatched, getName, getQueryOperators, query, update, updateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachBatched, getExistingIDs, upsertBatchforEach, spliteratorpublic TabixVcfRepository(File file, String entityTypeId, VcfAttributes vcfAttributes, EntityTypeFactory entityTypeFactory, AttributeFactory attrMetaFactory) throws IOException
IOExceptionpublic Set<RepositoryCapability> getCapabilities()
getCapabilities in interface Repository<Entity>getCapabilities in class VcfRepositorypublic Stream<Entity> findAll(Query<Entity> q)
findAll in interface Repository<Entity>findAll in class AbstractRepositorypublic List<Entity> query(String chrom, int posFrom, int posTo)
chrom - Name of chromosomeposFrom - position lower bound (inclusive)posTo - position upper bound (inclusive)ImmutableList of entities foundprotected Collection<String> getLines(TabixReader.Iterator iterator)
TabixReader.Iterator.iterator - the iterator from which the lines are collected, may be null.Collection of lines, is empty if the iterator was null.Copyright © 2017. All rights reserved.