public class BlobIdTracker extends Object implements Closeable, BlobTracker
BlobIdStore .| Modifier and Type | Class and Description |
|---|---|
static class |
BlobIdTracker.ActiveDeletionTracker
Tracking any active deletions store for managing the blob reference
|
BlobTracker.Options| Modifier and Type | Method and Description |
|---|---|
void |
add(File recs)
Adds the ids in the given file.
|
void |
add(Iterator<String> recs)
Adds the given ids.
|
void |
add(String id)
Adds the given id.
|
static BlobIdTracker |
build(String path,
String repositoryId,
long snapshotIntervalSecs,
SharedDataStore datastore) |
void |
close()
Closes the tracker and the underlying store.
|
Iterator<String> |
get()
Retrieves all the reference files available in the DataStore and merges
them to the local store and then returns an iterator over it.
|
File |
get(String path)
Fetches a File object which having all the sorted records.
|
BlobIdTracker.ActiveDeletionTracker |
getDeleteTracker() |
void |
remove(File recs)
Remove the ids in the given file and deletes the file.
|
void |
remove(File recs,
BlobTracker.Options options)
Remove the ids in the given file and deletes the file.
|
void |
remove(Iterator<String> recs)
Remove the given ids.
|
public static BlobIdTracker build(String path, String repositoryId, long snapshotIntervalSecs, SharedDataStore datastore) throws IOException
IOExceptionpublic BlobIdTracker.ActiveDeletionTracker getDeleteTracker()
public void remove(File recs, BlobTracker.Options options) throws IOException
BlobTrackerremove in interface BlobTrackerIOExceptionpublic void remove(File recs) throws IOException
BlobTrackerremove in interface BlobTrackerIOExceptionpublic void remove(Iterator<String> recs) throws IOException
BlobTrackerremove in interface BlobTrackerIOExceptionpublic void add(String id) throws IOException
BlobTrackeradd in interface BlobTrackerid - the record id to be trackedIOExceptionpublic void add(Iterator<String> recs) throws IOException
BlobTrackeradd in interface BlobTrackerIOExceptionpublic void add(File recs) throws IOException
BlobTrackeradd in interface BlobTrackerIOExceptionpublic Iterator<String> get() throws IOException
The iterator returned ia a Closeable instance and should be closed by calling #close().
get in interface BlobTrackerIOExceptionpublic File get(String path) throws IOException
BlobTrackerFile handle is the responsibility of the handler.get in interface BlobTrackerIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2010 - 2020 Adobe. All Rights Reserved