|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.intermine.api.bag.BagOperations
public final class BagOperations
Perform logical operations on bags - combine bags to create new InterMineBags
| Field Summary | |
|---|---|
static java.lang.String |
INTERSECT
Constant representing logical intersection. |
static java.lang.String |
SUBTRACT
Constant representing logical substraction. |
static java.lang.String |
UNION
Constant representing logical union. |
| Method Summary | |
|---|---|
static java.lang.String |
getCommonBagType(java.util.Collection<InterMineBag> bags)
If all of the bags provided are of the same type return the type, otherwise return null. |
static int |
intersect(java.util.Collection<InterMineBag> bags,
java.lang.String newBagName,
Profile profile)
Create a bag that is the INTERSECTION of all the bags provided, if the intersection is the empty set then don't create the new bag. |
static int |
subtract(java.util.Collection<InterMineBag> bags,
java.lang.String newBagName,
Profile profile)
Create a bag that contains the union of the bags provided minus the intersection of those bags. |
static int |
union(java.util.Collection<InterMineBag> bags,
java.lang.String newBagName,
Profile profile)
Create a bag that is the UNION of all the bags provided, if the union is the empty set then don't create the new bag - if bags are of incompatible types or are all empty. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String UNION
public static final java.lang.String INTERSECT
public static final java.lang.String SUBTRACT
| Method Detail |
|---|
public static int union(java.util.Collection<InterMineBag> bags,
java.lang.String newBagName,
Profile profile)
throws ObjectStoreException
bags - the bags to operate onnewBagName - name of the new bag to createprofile - the user that will own the new bag
ObjectStoreException - if problems storing bag
public static int intersect(java.util.Collection<InterMineBag> bags,
java.lang.String newBagName,
Profile profile)
throws ObjectStoreException
bags - the bags to operate onnewBagName - name of the new bag to createprofile - the user that will own the new bag
ObjectStoreException - if problems storing bag
public static int subtract(java.util.Collection<InterMineBag> bags,
java.lang.String newBagName,
Profile profile)
throws ObjectStoreException
bags - the bags to operate onnewBagName - name of the new bag to createprofile - the user that will own the new bag
ObjectStoreException - if problems storing bagpublic static java.lang.String getCommonBagType(java.util.Collection<InterMineBag> bags)
bags - the bags to check
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||