public void Dispose()
 //throws com.WDataSci.WDS.WDSException, Exception
 {
     if (this.FileMatter != null)
     {
         this.FileMatter.Dispose();
     }
     this.FileMatter = null;
     if (this.SchemaMatter != null)
     {
         this.SchemaMatter.Dispose();
     }
     this.SchemaMatter = null;
     //this.ModeMatter.Dispose();
     this.ModeMatter = null;
     if (this.HDF5Matter != null)
     {
         this.HDF5Matter.Dispose();
     }
     this.HDF5Matter = null;
     if (this.DBBMatter != null)
     {
         this.DBBMatter.Dispose();
     }
     this.DBBMatter = null;
     /* C# >>> */
     GC.Collect();
     GC.WaitForPendingFinalizers();
     GC.Collect();
     GC.WaitForPendingFinalizers();
     /* <<< C# */
 }
        public RecordSetMD cAs(RecordSetMDEnums.eType arg, RecordSetMDEnums.eSchemaType schema)
        //throws com.WDataSci.WDS.WDSException
        {
            this.Type       = arg;
            this.SchemaType = schema;
            if (this.SchemaType.bIn(RecordSetMDEnums.eSchemaType.XSD, RecordSetMDEnums.eSchemaType.XML))
            {
                this.SchemaMatter = new __SchemaMatter();
            }
            if (this.ModeMatter == null && this.Mode.Equals(RecordSetMDEnums.eMode.Internal))
            {
                this.ModeMatter = new __ModeMatter();
                this.ModeMatter.bRepeatInputFields = false;
            }
            switch (this.Type)
            {
            //case DBB:
            case RecordSetMDEnums.eType.DBB:
                this.DBBMatter = new WranglerDBB();
                break;

            //case HDF5:
            case RecordSetMDEnums.eType.HDF5:
                if (this.SchemaType.bIn(RecordSetMDEnums.eSchemaType.Unknown))
                {
                    this.SchemaType = RecordSetMDEnums.eSchemaType.HDF5;
                }
                this.FileMatter = new WranglerFlatFile();
                this.DBBMatter  = new WranglerDBB();
                this.HDF5Matter = new WranglerHDF5();
                break;

            //case TXT:
            case RecordSetMDEnums.eType.TXT:
                this.FileMatter     = new WranglerFlatFile();
                this.FileMatter.Dlm = "\t";
                break;

            //case Dlm:
            case RecordSetMDEnums.eType.Dlm:
            //case CSV:
            case RecordSetMDEnums.eType.CSV:
                this.FileMatter     = new WranglerFlatFile();
                this.FileMatter.Dlm = ",";
                break;

            //case XML:
            case RecordSetMDEnums.eType.XML:
            //case JSON:
            case RecordSetMDEnums.eType.JSON:
            //case SQL:
            case RecordSetMDEnums.eType.SQL:
            default:
                throw new WDSException("Error RecordSetMD Type, %s, not implemented yet!");
            }
            return(this);
        }
 public RecordSetMD cWithDataSetName(String arg)
 //throws com.WDataSci.WDS.WDSException, Exception
 {
     if (this.Type.equals(RecordSetMDEnums.eType.HDF5))
     {
         if (this.HDF5Matter == null)
         {
             this.HDF5Matter = new WranglerHDF5();
         }
         this.HDF5Matter.DSName = arg;
     }
     return(this);
 }
        public FieldBaseMD(String Name, int hclass, int hlength, int horder, int hsign)
        //throws com.WDataSci.WDS.WDSException, Exception
        {
            this.Name = new_String(Name);
            WranglerHDF5 tmp = new WranglerHDF5();

            this.HDF5DataType = tmp.new_HDF5DataType(hclass, hlength, horder, hsign);
            this.DTyp         = this.HDF5DataType.eDTyp();
            if (this.DTyp.equals(FieldMDEnums.eDTyp.Str))
            {
                this.StringMaxLength = hlength;
                this.ByteMaxLength   = 2 * hlength;
            }
            else if (this.DTyp.equals(FieldMDEnums.eDTyp.VLS))
            {
                this.StringMaxLength = Default.StringMaxLength;
                this.ByteMaxLength   = 2 * hlength;
            }
            else if (this.DTyp.equals(FieldMDEnums.eDTyp.Byt))
            {
                this.ByteMaxLength = hlength;
            }
        }