com.supermap.data.conversion
Class ImportSettingCSV
- java.lang.Object
-
- com.supermap.data.InternalHandle
-
- com.supermap.data.InternalHandleDisposable
-
- com.supermap.data.conversion.ImportSetting
-
- com.supermap.data.conversion.ImportSettingCSV
-
public class ImportSettingCSV extends ImportSetting
-
-
Constructor Summary
Constructors Constructor and Description ImportSettingCSV()The default constructor creates a new ImportSettingCVS objectImportSettingCSV(ImportSettingCSV ImportSettingCSV)Copy the constructor, and return an ImportSettingCVS object with the same set of informationImportSettingCSV(java.lang.String sourceFilePath, Datasource targetDatasource)ImportSettingCSV(java.lang.String sourceFilePath, DatasourceConnectionInfo targetConnectionInfo)Constructs an ImportSettingCVS object by specifying the source file
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voiddispose()booleangetFirstRowIsField()Gets whether the first line includes the field namejava.lang.StringgetSeparator()SpatialIndexInfogetSpatialIndex()Gets spatial index informationbooleanisImportEmptyDataset()Gets whether to import empty datasetsvoidsetFirstRowIsField(boolean value)Sets whether the first line includes the field namevoidsetImportEmptyDataset(boolean bImportEmptyDT)Sets whether to import empty datasets. false is by defaultvoidsetSeparator(java.lang.String separator)voidsetSpatialIndex(SpatialIndexInfo value)-
Methods inherited from class com.supermap.data.conversion.ImportSetting
getEncodeType, getSourceFileCharset, getSourceFilePath, getSourceFileType, getSourcePrjCoordSys, getTargetDatasetName, getTargetDatasource, getTargetDatasourceConnectionInfo, getTargetEncodeType, getTargetPrjCoordSys, setEncodeType, setSourceFileCharset, setSourceFilePath, setTargetDatasetName, setTargetDatasource, setTargetDatasourceConnectionInfo, setTargetEncodeType, setTargetPrjCoordSys
-
-
-
-
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 pathtargetConnectionInfo- Target data source connection information
-
-
Method Detail
-
getSpatialIndex
public SpatialIndexInfo getSpatialIndex()
Gets spatial index information- Returns:
- Spatial index information
-
setSpatialIndex
public void setSpatialIndex(SpatialIndexInfo value)
-
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:
setImportEmptyDatasetin classImportSetting- 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
-
-