public class SyncInfo extends Object
Modifier and Type | Field and Description |
---|---|
static long |
INVALID_TXID |
Constructor and Description |
---|
SyncInfo(Map<AlluxioURI,Set<AlluxioURI>> changedFiles,
boolean forceSync,
long txId)
Constructs a SyncInfo.
|
Modifier and Type | Method and Description |
---|---|
static SyncInfo |
emptyInfo()
Returns an empty SyncInfo object.
|
Set<AlluxioURI> |
getChangedFiles(AlluxioURI syncPoint)
REturns a set of changed files.
|
Set<AlluxioURI> |
getSyncPoints()
Returns a list of sync points.
|
long |
getTxId()
returns the transaction id that is synced in this sync period.
|
boolean |
isForceSync()
returns true if this sync should happen on the entire directory.
|
public static final long INVALID_TXID
public SyncInfo(Map<AlluxioURI,Set<AlluxioURI>> changedFiles, boolean forceSync, long txId)
changedFiles
- a map mapping syncpoint to changed filesforceSync
- force sync the entire directorytxId
- the transaction id that is synced in this syncpublic static SyncInfo emptyInfo()
public Set<AlluxioURI> getSyncPoints()
public Set<AlluxioURI> getChangedFiles(AlluxioURI syncPoint)
syncPoint
- the syncPoint that we are monitoringpublic boolean isForceSync()
public long getTxId()
Copyright © 2023. All Rights Reserved.