edits
[iotcloud.git] / version2 / src / C / CommitPart.h
index 4a481ad57ea243564af950a5f83fbbaba5d593f6..e121aad55f1067ec95d5ab864820e21a8615fbd9 100644 (file)
@@ -16,8 +16,8 @@ class CommitPart extends Entry{
     private Boolean isLastPart = false;
     private char[] data = NULL;
 
-    private Pair<Long, Integer> partId = NULL;
-    private Pair<Long, Long> commitId = NULL;
+    private Pair<int64_t int32_t> partId = NULL;
+    private Pair<int64_t, int64_t> commitId = NULL;
 
 
     public CommitPart(Slot s, int64_t _machineId, int64_t _sequenceNumber, int64_t _transactionSequenceNumber, int _partNumber, char[] _data, Boolean _isLastPart) {
@@ -29,8 +29,8 @@ class CommitPart extends Entry{
         isLastPart = _isLastPart;
         data = _data;
 
-        partId = new Pair<Long, Integer>(sequenceNumber, partNumber);
-        commitId = new Pair<Long, Long>(machineId, sequenceNumber);
+        partId = new Pair<int64_t int32_t>(sequenceNumber, partNumber);
+        commitId = new Pair<int64_t, int64_t>(machineId, sequenceNumber);
     }
 
     public int getSize() {
@@ -56,11 +56,11 @@ class CommitPart extends Entry{
         return data;
     }
 
-    public Pair<Long, Integer> getPartId() {
+    public Pair<int64_t int32_t> getPartId() {
         return partId;
     }
 
-    public Pair<Long, Long> getCommitId() {
+    public Pair<int64_t, int64_t> getCommitId() {
         return commitId;
     }