congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
ArraySequenceNested
Code IndexAdd Tabnine to your IDE (free)

How to use
ArraySequenceNested
in
ucar.ma2

Best Java code snippets using ucar.ma2.ArraySequenceNested (Showing top 5 results out of 315)

origin: Unidata/thredds

/**
 * Flatten the Structures into a 1D array of Structures of length getTotalNumberOfStructures().
 * @return Array of Structures
 */
public ArrayStructure flatten() {
 ArrayStructureW aw = new ArrayStructureW( getStructureMembers(), new int[] {total});
 for (int i=0; i<total; i++) {
  StructureData sdata = new StructureDataA( this, i);
  aw.setStructureData(sdata, i);
 }
 return aw;
}
origin: Unidata/thredds

ArraySequenceNested aseq = new ArraySequenceNested( members, outerLength);
   DSequence innerSeq = (DSequence) bt;
   int innerLength = innerSeq.getRowCount();
   aseq.setSequenceLength(row, innerLength);
aseq.finish();
origin: Unidata/thredds

return arraySeq.flatten();
origin: edu.ucar/netcdf

/**
 * Flatten the Structures into a 1D array of Structures of length getTotalNumberOfStructures().
 * @return Array of Structures
 */
public ArrayStructure flatten() {
 ArrayStructureW aw = new ArrayStructureW( getStructureMembers(), new int[] {total});
 for (int i=0; i<total; i++) {
  StructureData sdata = new StructureDataA( this, i);
  aw.setStructureData(sdata, i);
 }
 return aw;
}
origin: edu.ucar/cdm

/**
 * Flatten the Structures into a 1D array of Structures of length getTotalNumberOfStructures().
 * @return Array of Structures
 */
public ArrayStructure flatten() {
 ArrayStructureW aw = new ArrayStructureW( getStructureMembers(), new int[] {total});
 for (int i=0; i<total; i++) {
  StructureData sdata = new StructureDataA( this, i);
  aw.setStructureData(sdata, i);
 }
 return aw;
}
ucar.ma2ArraySequenceNested

Javadoc

Handles nested sequences: a 1D array of variable length 1D arrays of StructureData. Uses same technique as ArrayStructureMA for the inner fields; data storage is in member arrays. Used only by opendap internals. Example use:
 
ArraySequence aseq = new ArraySequence( members, outerLength); 
for (int seq=0; seq < outerLength; seq++) { 
aseq.setSequenceLength(seq, seqLength); 
} 
aseq.finish(); 

Most used methods

  • getStructureMembers
  • <init>
    This is used for inner sequences, ie variable length structures nested inside of another structure.
  • finish
    Call this when you have set all the sequence lengths.
  • flatten
    Flatten the Structures into a 1D array of Structures of length getTotalNumberOfStructures().
  • setSequenceLength
    Set the length of one of the sequences.

Popular in Java

  • Updating database using SQL prepared statement
  • scheduleAtFixedRate (ScheduledExecutorService)
  • setContentView (Activity)
  • getSystemService (Context)
  • Socket (java.net)
    Provides a client-side TCP socket.
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Top plugins for WebStorm
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