congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
IndexChunker$Chunk.setDestElem
Code IndexAdd Tabnine to your IDE (free)

How to use
setDestElem
method
in
ucar.nc2.iosp.IndexChunker$Chunk

Best Java code snippets using ucar.nc2.iosp.IndexChunker$Chunk.setDestElem (Showing top 9 results out of 315)

origin: Unidata/thredds

public IndexChunker.Chunk next() {
 if (chunk == null) {
  chunk = new IndexChunker.Chunk(0, nelems, startDestElem);
 } else {
  dataIndex.incr();
  resultIndex.incr();
 }
 // Set the current element's index from the start of the data array
 chunk.setSrcElem(startSrcElem + dataIndex.currentElement());
 // Set the current element's index from the start of the result array
 chunk.setDestElem(startDestElem + resultIndex.currentElement());
 if (debugNext)
  System.out.println(" chunk: " + chunk);
 if (debugDetail) {
  System.out.println(" dataIndex: " + dataIndex);
  System.out.println(" wantIndex: " + resultIndex);
 }
 done += nelems;
 return chunk;
}
origin: edu.ucar/netcdf

public IndexChunker.Chunk next() {
 if (chunk == null) {
  chunk = new IndexChunker.Chunk(0, nelems, startDestElem);
 } else {
  dataIndex.incr();
  resultIndex.incr();
 }
 // Set the current element's index from the start of the data array
 chunk.setSrcElem(startSrcElem + dataIndex.currentElement());
 // Set the current element's index from the start of the result array
 chunk.setDestElem(startDestElem + resultIndex.currentElement());
 if (debugNext)
  System.out.println(" chunk: " + chunk);
 if (debugDetail) {
  System.out.println(" dataIndex: " + dataIndex);
  System.out.println(" wantIndex: " + resultIndex);
 }
 done += nelems;
 return chunk;
}
origin: edu.ucar/cdm

public IndexChunker.Chunk next() {
 if (chunk == null) {
  chunk = new IndexChunker.Chunk(0, nelems, startDestElem);
 } else {
  dataIndex.incr();
  resultIndex.incr();
 }
 // Set the current element's index from the start of the data array
 chunk.setSrcElem(startSrcElem + dataIndex.currentElement());
 // Set the current element's index from the start of the result array
 chunk.setDestElem(startDestElem + resultIndex.currentElement());
 if (debugNext)
  System.out.println(" chunk: " + chunk);
 if (debugDetail) {
  System.out.println(" dataIndex: " + dataIndex);
  System.out.println(" wantIndex: " + resultIndex);
 }
 done += nelems;
 return chunk;
}
origin: Unidata/thredds

private IndexChunker.Chunk nextInner(boolean first, int nelems) {
 if (first) {
  chunkInner.setNelems(nelems);
  chunkInner.setDestElem( chunkOuter.getDestElem());
  needInner = chunkOuter.getNelems();
  doneInner = 0;
 } else {
  chunkInner.incrDestElem( chunkInner.getNelems()); // increment using last chunks' value
  nelems = getMaxElem( chunkOuter.getSrcElem() + doneInner);
  nelems = Math.min(nelems, needInner);
  chunkInner.setNelems(nelems); // set this chunk's value
 }
 chunkInner.setSrcElem( chunkOuter.getSrcElem() + doneInner);
 chunkInner.setSrcPos( getFilePos( chunkOuter.getSrcElem() + doneInner));
 return chunkInner;
}
origin: edu.ucar/cdm

private IndexChunker.Chunk nextInner(boolean first, int nelems) {
 if (first) {
  chunkInner.setNelems(nelems);
  chunkInner.setDestElem( chunkOuter.getDestElem());
  needInner = chunkOuter.getNelems();
  doneInner = 0;
 } else {
  chunkInner.incrDestElem( chunkInner.getNelems()); // increment using last chunks' value
  nelems = getMaxElem( chunkOuter.getSrcElem() + doneInner);
  nelems = Math.min(nelems, needInner);
  chunkInner.setNelems(nelems); // set this chunk's value
 }
 chunkInner.setSrcElem( chunkOuter.getSrcElem() + doneInner);
 chunkInner.setSrcPos( getFilePos( chunkOuter.getSrcElem() + doneInner));
 return chunkInner;
}
origin: Unidata/thredds

private Chunk nextInner(boolean first, int nbytes) {
 if (first) {
  chunkInner.setNelems(nbytes / elemSize);
  chunkInner.setDestElem( chunkOuter.getDestElem());
  needInner = chunkOuter.getNelems();
  doneInner = 0;
 } else {
  chunkInner.incrDestElem( chunkInner.getNelems()); // increment using last chunks' value
  nbytes = getMaxBytes( (chunkOuter.getSrcElem() + doneInner) * elemSize);
  nbytes = Math.min(nbytes, needInner * elemSize);
  chunkInner.setNelems(nbytes / elemSize); // set this chunk's value
 }
 chunkInner.setSrcPos( getFilePos( (chunkOuter.getSrcElem() + doneInner) * elemSize));
 return chunkInner;
}
origin: edu.ucar/netcdf

private IndexChunker.Chunk nextInner(boolean first, int nelems) {
 if (first) {
  chunkInner.setNelems(nelems);
  chunkInner.setDestElem( chunkOuter.getDestElem());
  needInner = chunkOuter.getNelems();
  doneInner = 0;
 } else {
  chunkInner.incrDestElem( chunkInner.getNelems()); // increment using last chunks' value
  nelems = getMaxElem( chunkOuter.getSrcElem() + doneInner);
  nelems = Math.min(nelems, needInner);
  chunkInner.setNelems(nelems); // set this chunk's value
 }
 chunkInner.setSrcElem( chunkOuter.getSrcElem() + doneInner);
 chunkInner.setSrcPos( getFilePos( chunkOuter.getSrcElem() + doneInner));
 return chunkInner;
}
origin: edu.ucar/netcdf

private Chunk nextInner(boolean first, int nbytes) {
 if (first) {
  chunkInner.setNelems(nbytes / elemSize);
  chunkInner.setDestElem( chunkOuter.getDestElem());
  needInner = chunkOuter.getNelems();
  doneInner = 0;
 } else {
  chunkInner.incrDestElem( chunkInner.getNelems()); // increment using last chunks' value
  nbytes = getMaxBytes( (chunkOuter.getSrcElem() + doneInner) * elemSize);
  nbytes = Math.min(nbytes, needInner * elemSize);
  chunkInner.setNelems(nbytes / elemSize); // set this chunk's value
 }
 chunkInner.setSrcPos( getFilePos( (chunkOuter.getSrcElem() + doneInner) * elemSize));
 return chunkInner;
}
origin: edu.ucar/cdm

private Chunk nextInner(boolean first, int nbytes) {
 if (first) {
  chunkInner.setNelems(nbytes / elemSize);
  chunkInner.setDestElem( chunkOuter.getDestElem());
  needInner = chunkOuter.getNelems();
  doneInner = 0;
 } else {
  chunkInner.incrDestElem( chunkInner.getNelems()); // increment using last chunks' value
  nbytes = getMaxBytes( (chunkOuter.getSrcElem() + doneInner) * elemSize);
  nbytes = Math.min(nbytes, needInner * elemSize);
  chunkInner.setNelems(nbytes / elemSize); // set this chunk's value
 }
 chunkInner.setSrcPos( getFilePos( (chunkOuter.getSrcElem() + doneInner) * elemSize));
 return chunkInner;
}
ucar.nc2.iospIndexChunker$ChunksetDestElem

Popular methods of IndexChunker$Chunk

  • getNelems
  • <init>
  • getDestElem
    Get the position in destination where to read or write
  • getSrcElem
    Get the position in source where to read or write
  • incrDestElem
  • setNelems
  • setSrcElem
  • setSrcPos
  • toString

Popular in Java

  • Finding current android device location
  • onCreateOptionsMenu (Activity)
  • getContentResolver (Context)
  • requestLocationUpdates (LocationManager)
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • ImageIO (javax.imageio)
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Top 12 Jupyter Notebook Extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now