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:
Schema.snapshot(SchemaVersion)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
isBefore(SchemaVersion other)
Returns if this Version happens before the other Version.
-
-
-
Method Detail
-
isBefore
boolean isBefore(SchemaVersion other)
Returns if this Version happens before the other Version.- Parameters:
other
- the other Version object
-
-