com.supermap.data.conversion

Class ImportSettingCSV

    • Constructor Detail

      • ImportSettingCSV

        public ImportSettingCSV()
        The default constructor creates a new ImportSettingCVS object
      • ImportSettingCSV

        public ImportSettingCSV(ImportSettingCSV ImportSettingCSV)
        Copy the constructor, and return an ImportSettingCVS object with the same set of information
      • ImportSettingCSV

        public ImportSettingCSV(java.lang.String sourceFilePath,
                                Datasource targetDatasource)
      • ImportSettingCSV

        public ImportSettingCSV(java.lang.String sourceFilePath,
                                DatasourceConnectionInfo targetConnectionInfo)
        Constructs an ImportSettingCVS object by specifying the source file
        Parameters:
        sourceFilePath - Source file full path
        targetConnectionInfo - Target data source connection information
    • Method Detail

      • getSpatialIndex

        public SpatialIndexInfo getSpatialIndex()
        Gets spatial index information
        Returns:
        Spatial index information
      • getSeparator

        public java.lang.String getSeparator()
      • setSeparator

        public void setSeparator(java.lang.String separator)
      • getFirstRowIsField

        public boolean getFirstRowIsField()
        Gets whether the first line includes the field name
        Returns:
      • setFirstRowIsField

        public void setFirstRowIsField(boolean value)
        Sets whether the first line includes the field name
        Parameters:
        value -
      • dispose

        public void dispose()
      • setImportEmptyDataset

        public void setImportEmptyDataset(boolean bImportEmptyDT)
        Sets whether to import empty datasets. false is by default
        Overrides:
        setImportEmptyDataset in class ImportSetting
        Parameters:
        bImportEmptyDT - whether to import empty datasets. false is by default. It means doesn't import.
      • isImportEmptyDataset

        public boolean isImportEmptyDataset()
        Gets whether to import empty datasets
        Returns:
        Whether to import empty dataset