Interface BlobTracker
-
- All Superinterfaces:
AutoCloseable,Closeable
- All Known Implementing Classes:
BlobIdTracker
public interface BlobTracker extends Closeable
Track the blob ids.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classBlobTracker.Options
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidadd(File recs)Adds the ids in the given file.voidadd(String id)Adds the given id.voidadd(Iterator<String> recs)Adds the given ids.Iterator<String>get()Fetches an iterator of records available.Fileget(String path)Fetches a File object which having all the sorted records.voidremove(File recs)Remove the ids in the given file and deletes the file.voidremove(File recs, BlobTracker.Options options)Remove the ids in the given file and deletes the file.voidremove(Iterator<String> recs)Remove the given ids.
-
-
-
Method Detail
-
add
void add(String id) throws IOException
Adds the given id.- Parameters:
id- the record id to be tracked- Throws:
IOException
-
add
void add(Iterator<String> recs) throws IOException
Adds the given ids.- Parameters:
recs-- Throws:
IOException
-
add
void add(File recs) throws IOException
Adds the ids in the given file.- Parameters:
recs-- Throws:
IOException
-
remove
void remove(Iterator<String> recs) throws IOException
Remove the given ids.- Parameters:
recs-- Throws:
IOException
-
remove
void remove(File recs) throws IOException
Remove the ids in the given file and deletes the file.- Parameters:
recs-- Throws:
IOException
-
remove
void remove(File recs, BlobTracker.Options options) throws IOException
Remove the ids in the given file and deletes the file.- Parameters:
recs-- Throws:
IOException
-
get
Iterator<String> get() throws IOException
Fetches an iterator of records available.- Returns:
- Throws:
IOException
-
get
File get(String path) throws IOException
Fetches a File object which having all the sorted records. The lifecycle of the returnedFilehandle is the responsibility of the handler.- Returns:
- Throws:
IOException
-
-