congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
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
  • onCreateOptionsMenu (Activity)
  • onRequestPermissionsResult (Fragment)
  • runOnUiThread (Activity)
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • String (java.lang)
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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