RECORD - the type of records/iterators returned by queriespublic interface HtsQuery<RECORD>
extends java.lang.Iterable<RECORD>
HtsDecoders| Modifier and Type | Method and Description |
|---|---|
boolean |
hasIndex()
Return true if the underlying resource has an index.
|
boolean |
isQueryable()
Gte true if the underlying resource is queryable.
|
CloseableIterator<RECORD> |
iterator()
Get an iterator of all records in the underlying resource.
|
default CloseableIterator<RECORD> |
query(HtsInterval interval,
HtsQueryRule queryRule)
Get an iterator over all records from the underlying resource that match the query arguments
|
default CloseableIterator<RECORD> |
query(java.util.List<HtsInterval> intervals,
HtsQueryRule queryRule)
Get an iterator over all records from the underlying resource that match the query arguments.
|
default CloseableIterator<RECORD> |
query(java.lang.String queryString)
Get an iterator over all records from the underlying resource that match the query string
|
default CloseableIterator<RECORD> |
query(java.lang.String queryName,
long start,
long end,
HtsQueryRule queryRule)
Get an iterator over all records from the underlying resource that match the query arguments
|
default CloseableIterator<RECORD> |
queryContained(HtsInterval interval)
Get an iterator over all records from the underlying resource that are contained within
the query interval
|
default CloseableIterator<RECORD> |
queryContained(java.util.List<HtsInterval> intervals)
Get an iterator over all records from the underlying resource that are contained within the query intervals
|
default CloseableIterator<RECORD> |
queryContained(java.lang.String queryName,
long start,
long end)
Gte an iterator over all records from the underlying resource that match the query arguments
|
default CloseableIterator<RECORD> |
queryOverlapping(HtsInterval interval)
Get an iterator over all records from the underlying resource that overlap the query interval
|
default CloseableIterator<RECORD> |
queryOverlapping(java.util.List<HtsInterval> intervals)
Get an iterator over all records from the underlying resource that overlap the query intervals
|
default CloseableIterator<RECORD> |
queryOverlapping(java.lang.String queryName,
long start,
long end)
Get an iterator over all records from the underlying resource that match the query arguments
|
default CloseableIterator<RECORD> |
queryStart(java.lang.String queryName,
long start)
Get an iterator over all records from the underlying resource that overlap the start position
|
CloseableIterator<RECORD> iterator()
iterator in interface java.lang.Iterable<RECORD>boolean isQueryable()
hasIndex()boolean hasIndex()
default CloseableIterator<RECORD> query(java.lang.String queryString)
queryString - decoder specific query stringdefault CloseableIterator<RECORD> query(java.lang.String queryName, long start, long end, HtsQueryRule queryRule)
queryName - name to matchstart - start of query intervalend - end of query intervalqueryRule - query rule value to use (from HtsQueryRuledefault CloseableIterator<RECORD> queryOverlapping(java.lang.String queryName, long start, long end)
queryName - name to matchstart - start of query intervalend - end of query intervaldefault CloseableIterator<RECORD> queryContained(java.lang.String queryName, long start, long end)
queryName - name to matchstart - start of query intervalend - end of query intervaldefault CloseableIterator<RECORD> query(HtsInterval interval, HtsQueryRule queryRule)
interval - interval to matchqueryRule - query rule to use, from HtsQueryRuledefault CloseableIterator<RECORD> queryOverlapping(HtsInterval interval)
interval - interval to matchdefault CloseableIterator<RECORD> queryContained(HtsInterval interval)
interval - interval to matchdefault CloseableIterator<RECORD> query(java.util.List<HtsInterval> intervals, HtsQueryRule queryRule)
intervals - list of intervals to matchqueryRule - query rule to use, from HtsQueryRuledefault CloseableIterator<RECORD> queryOverlapping(java.util.List<HtsInterval> intervals)
intervals - list of intervals to usedefault CloseableIterator<RECORD> queryContained(java.util.List<HtsInterval> intervals)
intervals - list of intervals to usedefault CloseableIterator<RECORD> queryStart(java.lang.String queryName, long start)
queryName - name to matchstart - start position to overlap