Package com.levigo.jadice.document
Interface StreamSourceID
- All Known Subinterfaces:
SourceID
public interface StreamSourceID
A
StreamSourceID
uniquely identifies a stream which was used during a reading process. It
consists of:
- the read-ID of the read operation during which the stream was read
- the index of the stream within the read operations performed by this reader
Implementors of this interface are required to provide useful hashCode() and equals() methods.
-
Method Summary
Modifier and TypeMethodDescriptionGet the read-ID of the read operation during which the page segment was read.int
Return the source stream's index within the read operation during which the page segment was read.
-
Method Details
-
getReadID
String getReadID()Get the read-ID of the read operation during which the page segment was read. This ID is, for example, derived from the ID of theReader
instance used to read the stream.- Returns:
- the read-ID
-
getStreamIndex
int getStreamIndex()Return the source stream's index within the read operation during which the page segment was read. EveryReader
maintains a counter of streams that were loaded using the reader.- Returns:
- the zero-based stream index
-