Class StaticFragmentIntersectionFinderImpl

  • All Implemented Interfaces:
    Fragmenter

    public class StaticFragmentIntersectionFinderImpl
    extends Object
    implements Fragmenter
    Uses a predefined list of sample numbers to divide up a track.
    • Constructor Detail

      • StaticFragmentIntersectionFinderImpl

        public StaticFragmentIntersectionFinderImpl​(Map<Track,​long[]> sampleNumbers)
    • Method Detail

      • sampleNumbers

        public long[] sampleNumbers​(Track track)
        Description copied from interface: Fragmenter
        Gets the ordinal number of the samples which will be the first sample in each fragment (First sample == 1).
        Specified by:
        sampleNumbers in interface Fragmenter
        Parameters:
        track - concerned track
        Returns:
        an array containing the ordinal of each fragment's first sample