Class IntegerPrimaryKeyPosition
java.lang.Object
org.apache.shardingsphere.data.pipeline.api.ingest.position.PrimaryKeyPosition<Long>
org.apache.shardingsphere.data.pipeline.api.ingest.position.IntegerPrimaryKeyPosition
- All Implemented Interfaces:
Comparable<IntegerPrimaryKeyPosition>,IngestPosition<IntegerPrimaryKeyPosition>
public final class IntegerPrimaryKeyPosition
extends PrimaryKeyPosition<Long>
implements IngestPosition<IntegerPrimaryKeyPosition>
Integer primary key position.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(IntegerPrimaryKeyPosition position) protected LongGet begin value.Get end value.protected chargetType()Methods inherited from class org.apache.shardingsphere.data.pipeline.api.ingest.position.PrimaryKeyPosition
toString
-
Constructor Details
-
IntegerPrimaryKeyPosition
public IntegerPrimaryKeyPosition(long beginValue, long endValue)
-
-
Method Details
-
getBeginValue
Description copied from class:PrimaryKeyPositionGet begin value.- Specified by:
getBeginValuein classPrimaryKeyPosition<Long>- Returns:
- begin value
-
getEndValue
Description copied from class:PrimaryKeyPositionGet end value.- Specified by:
getEndValuein classPrimaryKeyPosition<Long>- Returns:
- end value
-
convert
- Specified by:
convertin classPrimaryKeyPosition<Long>
-
getType
protected char getType()- Specified by:
getTypein classPrimaryKeyPosition<Long>
-
compareTo
- Specified by:
compareToin interfaceComparable<IntegerPrimaryKeyPosition>
-