Interface BlobTracker
-
- All Superinterfaces:
java.lang.AutoCloseable,java.io.Closeable
- All Known Implementing Classes:
BlobIdTracker
public interface BlobTracker extends java.io.CloseableTrack 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(java.io.File recs)Adds the ids in the given file.voidadd(java.lang.String id)Adds the given id.voidadd(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.Fileget(java.lang.String path)Fetches a File object which having all the sorted records.voidremove(java.io.File recs)Remove the ids in the given file and deletes the file.voidremove(java.io.File recs, BlobTracker.Options options)Remove the ids in the given file and deletes the file.voidremove(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.IOExceptionRemove the given ids.- Parameters:
recs-- Throws:
java.io.IOException
-
remove
void remove(java.io.File recs) throws java.io.IOExceptionRemove 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.IOExceptionRemove 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.IOExceptionFetches an iterator of records available.- Returns:
- Throws:
java.io.IOException
-
get
java.io.File get(java.lang.String path) throws java.io.IOExceptionFetches a File object which having all the sorted records. The lifecycle of the returnedFilehandle is the responsibility of the handler.- Returns:
- Throws:
java.io.IOException
-
-