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

  • Start an intent from android
  • getApplicationContext (Context)
  • addToBackStack (FragmentTransaction)
  • onRequestPermissionsResult (Fragment)
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • Reference (javax.naming)
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • 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