Package ucar.nc2

Class FileWriter.ChunkingIndex

  • All Implemented Interfaces:
    Cloneable
    Enclosing class:
    FileWriter

    public static class FileWriter.ChunkingIndex
    extends ucar.ma2.Index
    Deprecated.
    use FileWriter2.ChunkingIndex
    • Field Summary

      • Fields inherited from class ucar.ma2.Index

        current, hasvlen, offset, rank, scalarIndexImmutable, shape, size, stride
    • Constructor Summary

      Constructors 
      Constructor Description
      ChunkingIndex​(int[] shape)
      Deprecated.
       
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      int[] computeChunkShape​(long maxChunkElems)
      Deprecated.
      Computes the shape of the largest possible contiguous chunk, starting at Index.getCurrentCounter() and with numElems <= maxChunkElems.
      • Methods inherited from class ucar.ma2.Index

        clone, computeSize, currentElement, factory, getCurrentCounter, getRank, getShape, getShape, getSize, incr, precalc, set, set, set, set, set, set, set, set, set0, set1, set2, set3, set4, set5, set6, setCurrentCounter, setDim, toString, toStringDebug
    • Constructor Detail

      • ChunkingIndex

        public ChunkingIndex​(int[] shape)
        Deprecated.
    • Method Detail

      • computeChunkShape

        public int[] computeChunkShape​(long maxChunkElems)
        Deprecated.
        Computes the shape of the largest possible contiguous chunk, starting at Index.getCurrentCounter() and with numElems <= maxChunkElems.
        Parameters:
        maxChunkElems - the maximum number of elements in the chunk shape. The actual element count of the shape returned is likely to be different, and can be found with Index.computeSize(int[]).
        Returns:
        the shape of the largest possible contiguous chunk.