Interface BlobTracker
-
- All Superinterfaces:
java.lang.AutoCloseable
,java.io.Closeable
- All Known Implementing Classes:
BlobIdTracker
public interface BlobTracker extends java.io.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(java.io.File recs)
Adds the ids in the given file.void
add(java.lang.String id)
Adds the given id.void
add(java.util.Iterator<java.lang.String> recs)
Adds the given ids.java.util.Iterator<java.lang.String>
get()
Fetches an iterator of records available.java.io.File
get(java.lang.String path)
Fetches a File object which having all the sorted records.void
remove(java.io.File recs)
Remove the ids in the given file and deletes the file.void
remove(java.io.File recs, BlobTracker.Options options)
Remove the ids in the given file and deletes the file.void
remove(java.util.Iterator<java.lang.String> recs)
Remove the given ids.
-
-
-
Method Detail
-
add
void add(java.lang.String id) throws java.io.IOException
Adds the given id.- Parameters:
id
- the record id to be tracked- Throws:
java.io.IOException
-
add
void add(java.util.Iterator<java.lang.String> recs) throws java.io.IOException
Adds the given ids.- Parameters:
recs
-- Throws:
java.io.IOException
-
add
void add(java.io.File recs) throws java.io.IOException
Adds the ids in the given file.- Parameters:
recs
-- Throws:
java.io.IOException
-
remove
void remove(java.util.Iterator<java.lang.String> recs) throws java.io.IOException
Remove the given ids.- Parameters:
recs
-- Throws:
java.io.IOException
-
remove
void remove(java.io.File recs) throws java.io.IOException
Remove the ids in the given file and deletes the file.- Parameters:
recs
-- Throws:
java.io.IOException
-
remove
void remove(java.io.File recs, BlobTracker.Options options) throws java.io.IOException
Remove the ids in the given file and deletes the file.- Parameters:
recs
-- Throws:
java.io.IOException
-
get
java.util.Iterator<java.lang.String> get() throws java.io.IOException
Fetches an iterator of records available.- Returns:
- Throws:
java.io.IOException
-
get
java.io.File get(java.lang.String path) throws java.io.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:
java.io.IOException
-
-