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 class
BlobTracker.Options
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
add(File recs)
Adds the ids in the given file.void
add(String id)
Adds the given id.void
add(Iterator<String> recs)
Adds the given ids.Iterator<String>
get()
Fetches an iterator of records available.File
get(String path)
Fetches a File object which having all the sorted records.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.
-
-
-
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 returnedFile
handle is the responsibility of the handler.- Returns:
- Throws:
IOException
-
-