Package org.apache.calcite.schema.impl
Class LongSchemaVersion
- java.lang.Object
-
- org.apache.calcite.schema.impl.LongSchemaVersion
-
- All Implemented Interfaces:
SchemaVersion
public class LongSchemaVersion extends java.lang.Object implements SchemaVersion
Implementation of SchemaVersion that uses a long value as representation.
-
-
Field Summary
Fields Modifier and Type Field Description private long
value
-
Constructor Summary
Constructors Constructor Description LongSchemaVersion(long value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
int
hashCode()
boolean
isBefore(SchemaVersion other)
Returns if this Version happens before the other Version.java.lang.String
toString()
-
-
-
Method Detail
-
isBefore
public boolean isBefore(SchemaVersion other)
Description copied from interface:SchemaVersion
Returns if this Version happens before the other Version.- Specified by:
isBefore
in interfaceSchemaVersion
- Parameters:
other
- the other Version object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-