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 void mBytesRequired(long nRecords, out long rsize, out long rflensize, out long rvlensize)
 {
     if (this.DBBMatter == null)
     {
         this.DBBMatter = new WranglerDBB();
     }
     this.DBBMatter.mBytesRequired(this, nRecords, out rsize, out rflensize, out rvlensize);
 }
        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 Boolean isModeValid()
 //throws com.WDataSci.WDS.WDSException, Exception
 {
     if (this.Type.equals(RecordSetMDEnums.eType.HDF5))
     {
         throw new WDSException("Error in RecordSetMD.cSetHeaderBuffer, not available for HDF5 (see unfinished TODO-s in HDF java code)");
     }
     if (this.DBBMatter == null)
     {
         this.DBBMatter = new WranglerDBB();
     }
     return(true);
 }