org.apache.sysml.runtime.compress.utils

Class IntArrayList



  • public class IntArrayList
    extends Object
    This class provides a memory-efficient replacement for ArrayList<Integer> for restricted use cases.
    • Constructor Detail

      • IntArrayList

        public IntArrayList()
    • Method Detail

      • size

        public int size()
      • appendValue

        public void appendValue(int value)
      • extractValues

        public int[] extractValues()
        Returns the underlying array of offsets. Note that this array might be physically larger than the actual length of the offset lists. Use size() to obtain the actual length.
        Returns:
        integer array of offsets, the physical array length may be larger than the length of the offset list

Copyright © 2017 The Apache Software Foundation. All rights reserved.