Interface SegmentIdentifier
-
public interface SegmentIdentifier
A namespace identifier for the storage instance segment, a grouping of data that should be kept isolated from the data of other segments.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description byte[]
getId()
Identifier for the segment consistent throughout the lifetime of the segment.java.lang.String
getName()
Name for the segment consistent throughout the lifetime of the segment.default boolean
includeInDatabaseVersion(int version)
Not all segments are in all DB versions.
-
-
-
Method Detail
-
getName
java.lang.String getName()
Name for the segment consistent throughout the lifetime of the segment.- Returns:
- unique name of the segment.
-
getId
byte[] getId()
Identifier for the segment consistent throughout the lifetime of the segment.- Returns:
- unique id of the segment.
-
includeInDatabaseVersion
default boolean includeInDatabaseVersion(int version)
Not all segments are in all DB versions. This queries the segment to see if it is in the DB version.- Parameters:
version
- Version of the DB- Returns:
- true if the segment is in that DB version
-
-