Package org.apache.calcite.schema
Interface SchemaVersion
- All Known Implementing Classes:
LongSchemaVersion
public interface SchemaVersion
An interface to represent a version ID that can be used to create a
read-consistent view of a Schema. This interface assumes a strict
partial ordering contract that is:
- irreflexive: !a.isBefore(a), which means a cannot happen before itself;
- transitive: if a.isBefore(b) and b.isBefore(c) then a.isBefore(c);
- antisymmetric: if a.isBefore(b) then !b.isBefore(a).
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isBefore
(SchemaVersion other) Returns if this Version happens before the other Version.
-
Method Details
-
isBefore
Returns if this Version happens before the other Version.- Parameters:
other
- the other Version object
-