Class GeodatabaseDeltaInfo
- java.lang.Object
-
- com.esri.arcgisruntime.tasks.geodatabase.GeodatabaseDeltaInfo
-
public final class GeodatabaseDeltaInfo extends java.lang.Object
Represents the delta files created to synchronize changes to aGeodatabase
.A delta geodatabase is a file that contains the changes that have occurred since a mobile replica Geodatabase was last synchronized with its feature service. See Synchronize Replica for an overview of the delta files used in synchronization. There are two types of delta geodatabase:
- Local edits, performed on the user's device, are exported as an "upload" delta that is applied to the originating feature service.
- Online edits, performed by other users are requested as a "download" delta which is then applied to the local replica geodatabase.
To access the
GeodatabaseDeltaInfo
after a sync has completed, set one of the following properties to true:-
SyncGeodatabaseParameters.isKeepGeodatabaseDeltas()
. This will populate theSyncGeodatabaseJob.getGeodatabaseDeltaInfo()
property. -
OfflineMapSyncParameters.isKeepGeodatabaseDeltas()
. This will add instances to theOfflineMapSyncJob.getGeodatabaseDeltaInfos()
property.
- Since:
- 100.10.0
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getDownloadDeltaPath()
Gets the full file path of the downloaded delta file, including the file name and extension.java.lang.String
getFeatureServiceUrl()
Gets the feature service that is used to sync changes to the geodatabase specified byGeodatabaseDeltaInfo.getGeodatabasePath()
.java.lang.String
getGeodatabasePath()
Gets the file path to theGeodatabase
that is used to sync changes, including the file name and extension.java.lang.String
getUploadDeltaPath()
Gets the full file path of the generated upload delta file, including the file name and extension.
-
-
-
Method Detail
-
getDownloadDeltaPath
public java.lang.String getDownloadDeltaPath()
Gets the full file path of the downloaded delta file, including the file name and extension.This property is the full path to the download delta geodatabase downloaded from the server during a bidirectional or download sync. The file will be saved to the user's temp directory and will be subject to the system's policy for cleanup of temporary files. This property will be null if there were no server changes to download or the sync direction is
SyncGeodatabaseParameters.SyncDirection.UPLOAD
.- Returns:
- the full file path of the downloaded delta file, including the file name and extension, or null if none
- Since:
- 100.10.0
-
getFeatureServiceUrl
public java.lang.String getFeatureServiceUrl()
Gets the feature service that is used to sync changes to the geodatabase specified byGeodatabaseDeltaInfo.getGeodatabasePath()
.- Returns:
- the feature service URL
- Since:
- 100.10.0
-
getGeodatabasePath
public java.lang.String getGeodatabasePath()
Gets the file path to theGeodatabase
that is used to sync changes, including the file name and extension.The path refers to a .geodatabase file that is used to sync changes to the service specified by
GeodatabaseDeltaInfo.getFeatureServiceUrl()
. Each sync process can create an "upload" delta file (GeodatabaseDeltaInfo.getUploadDeltaPath()
) and/or a "download" delta file (GeodatabaseDeltaInfo.getDownloadDeltaPath()
).- Returns:
- the file path to the Geodatabase that is used to sync changes, including the file name and extension
- Since:
- 100.10.0
-
getUploadDeltaPath
public java.lang.String getUploadDeltaPath()
Gets the full file path of the generated upload delta file, including the file name and extension.This property is the full path to the upload delta geodatabase created from the local
Geodatabase
during a bidirectional or upload sync. The file will be saved to the user's temp directory and will be subject to the system's policy for cleanup of temporary files. This property will be null if there were no changes to upload or the sync direction isSyncGeodatabaseParameters.SyncDirection.DOWNLOAD
only.- Returns:
- the full file path of the generated upload delta file, including the file name and extension, or null if none
- Since:
- 100.10.0
-
-