Class MappeableRunContainer

    • Field Detail

      • nbrruns

        protected int nbrruns
    • Constructor Detail

      • MappeableRunContainer

        public MappeableRunContainer()
        Create a container with default capacity
      • MappeableRunContainer

        public MappeableRunContainer​(int capacity)
        Create an array container with specified capacity
        Parameters:
        capacity - The capacity of the container
      • MappeableRunContainer

        public MappeableRunContainer​(int firstOfRun,
                                     int lastOfRun)
        Create an run container with a run of ones from firstOfRun to lastOfRun.
        Parameters:
        firstOfRun - first index
        lastOfRun - last index (range is exclusive)
      • MappeableRunContainer

        public MappeableRunContainer​(RunContainer bc)
        Creates a new container from a non-mappeable one. This copies the data.
        Parameters:
        bc - the original container
      • MappeableRunContainer

        public MappeableRunContainer​(ShortBuffer array,
                                     int numRuns)
        Construct a new RunContainer backed by the provided ShortBuffer. Note that if you modify the RunContainer a new ShortBuffer may be produced.
        Parameters:
        array - ShortBuffer where the data is stored
        numRuns - number of runs (each using 2 shorts in the buffer)