asterixdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ima...@apache.org
Subject [56/85] [abbrv] incubator-asterixdb-hyracks git commit: Added a method to check current LSM component status
Date Fri, 24 Apr 2015 18:46:23 GMT
Added a method to check current LSM component status

The following commits from your working branch will be included:

commit caf3da2933ce7218492bf2c05cb9553d4686cac3
Author: hubailmor@gmail.com <mhubail@uci.edu>
Date:   Tue Nov 11 12:45:32 2014 -0800

    Added a method to check current LSM component status

Change-Id: I3a5a5a5bdc1eb02bfc78f94afc574ce8f2d12659
Reviewed-on: http://fulliautomatix.ics.uci.edu:8443/170
Reviewed-by: Young-Seok Kim <kisskys@gmail.com>
Reviewed-by: Ian Maxon <imaxon@uci.edu>
Tested-by: Jenkins <jenkins@fulliautomatix.ics.uci.edu>


Project: http://git-wip-us.apache.org/repos/asf/incubator-asterixdb-hyracks/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-asterixdb-hyracks/commit/62b22d19
Tree: http://git-wip-us.apache.org/repos/asf/incubator-asterixdb-hyracks/tree/62b22d19
Diff: http://git-wip-us.apache.org/repos/asf/incubator-asterixdb-hyracks/diff/62b22d19

Branch: refs/heads/master
Commit: 62b22d19d0c9c539b39579cc8ac8f0261caa93f4
Parents: ce8ee31
Author: hubailmor@gmail.com <mhubail@uci.edu>
Authored: Wed Nov 12 15:25:02 2014 -0800
Committer: Ian Maxon <imaxon@uci.edu>
Committed: Wed Nov 12 16:28:40 2014 -0800

----------------------------------------------------------------------
 .../hyracks/storage/am/lsm/common/api/ILSMIndexInternal.java   | 3 +++
 .../hyracks/storage/am/lsm/common/impls/AbstractLSMIndex.java  | 6 ++++++
 2 files changed, 9 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-asterixdb-hyracks/blob/62b22d19/hyracks/hyracks-storage-am-lsm-common/src/main/java/edu/uci/ics/hyracks/storage/am/lsm/common/api/ILSMIndexInternal.java
----------------------------------------------------------------------
diff --git a/hyracks/hyracks-storage-am-lsm-common/src/main/java/edu/uci/ics/hyracks/storage/am/lsm/common/api/ILSMIndexInternal.java
b/hyracks/hyracks-storage-am-lsm-common/src/main/java/edu/uci/ics/hyracks/storage/am/lsm/common/api/ILSMIndexInternal.java
index b8f590f..bf82c31 100644
--- a/hyracks/hyracks-storage-am-lsm-common/src/main/java/edu/uci/ics/hyracks/storage/am/lsm/common/api/ILSMIndexInternal.java
+++ b/hyracks/hyracks-storage-am-lsm-common/src/main/java/edu/uci/ics/hyracks/storage/am/lsm/common/api/ILSMIndexInternal.java
@@ -64,4 +64,7 @@ public interface ILSMIndexInternal extends ILSMIndex {
     public void getOperationalComponents(ILSMIndexOperationContext ctx);
 
     public void markAsValid(ILSMComponent lsmComponent) throws HyracksDataException;
+    
+    public boolean isCurrentMutableComponentEmpty() throws HyracksDataException;
+
 }

http://git-wip-us.apache.org/repos/asf/incubator-asterixdb-hyracks/blob/62b22d19/hyracks/hyracks-storage-am-lsm-common/src/main/java/edu/uci/ics/hyracks/storage/am/lsm/common/impls/AbstractLSMIndex.java
----------------------------------------------------------------------
diff --git a/hyracks/hyracks-storage-am-lsm-common/src/main/java/edu/uci/ics/hyracks/storage/am/lsm/common/impls/AbstractLSMIndex.java
b/hyracks/hyracks-storage-am-lsm-common/src/main/java/edu/uci/ics/hyracks/storage/am/lsm/common/impls/AbstractLSMIndex.java
index e8014a7..ccc1d38 100644
--- a/hyracks/hyracks-storage-am-lsm-common/src/main/java/edu/uci/ics/hyracks/storage/am/lsm/common/impls/AbstractLSMIndex.java
+++ b/hyracks/hyracks-storage-am-lsm-common/src/main/java/edu/uci/ics/hyracks/storage/am/lsm/common/impls/AbstractLSMIndex.java
@@ -252,4 +252,10 @@ public abstract class AbstractLSMIndex implements ILSMIndexInternal {
     public boolean hasMemoryComponents() {
         return true;
     }
+    
+    @Override
+    public boolean isCurrentMutableComponentEmpty() throws HyracksDataException {
+        //check if the current memory component has been modified
+        return !((AbstractMemoryLSMComponent) memoryComponents.get(currentMutableComponentId.get())).isModified();
+    }
 }


Mime
View raw message