Package htsjdk.samtools.sra
Class ReferenceCache
java.lang.Object
htsjdk.samtools.sra.ReferenceCache
That is a thread-safe wrapper for a list of cache Reference objects.
Those objects can be used from different threads without issues, however to load and save a Reference object, we
need to acquire a lock.
Created by andrii.nikitiuk on 10/28/15.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionngs.Reference
get
(int referenceIndex) This method returns Reference objects by reference indexes in SAM header Those objects do not maintain thread safety
-
Constructor Details
-
ReferenceCache
-
-
Method Details
-
get
public ngs.Reference get(int referenceIndex) This method returns Reference objects by reference indexes in SAM header Those objects do not maintain thread safety- Parameters:
referenceIndex
- reference index in- Returns:
- a Reference object
-