Examples of removeAll()


Examples of org.apache.jcs.engine.control.CompositeCache.removeAll()

          for (int j = 0; j < groupCount; j++) {
            GroupId groupId = new GroupId(cacheName, groups[j]);
            cache.remove(groupId);
          }
        } else {
          cache.removeAll();
        }
      }
    } catch (Exception exception) {
      throw new CacheAccessException(exception);
    }
View Full Code Here

Examples of org.apache.mahout.cf.taste.impl.common.FastIDSet.removeAll()

    DataModel dataModel = getDataModel();
    FastIDSet possibleItemIDs = new FastIDSet();
    for (long userID : theNeighborhood) {
      possibleItemIDs.addAll(dataModel.getItemIDsFromUser(userID));
    }
    possibleItemIDs.removeAll(dataModel.getItemIDsFromUser(theUserID));
    return possibleItemIDs;
  }
 
  @Override
  public void refresh(Collection<Refreshable> alreadyRefreshed) {
View Full Code Here

Examples of org.apache.myfaces.trinidad.model.RowKeySet.removeAll()

    else if (event instanceof RowDisclosureEvent)
    {
      RowDisclosureEvent eEvent = (RowDisclosureEvent) event;
      RowKeySet set = getDisclosedRowKeys();
      set.addAll(eEvent.getAddedSet());
      set.removeAll(eEvent.getRemovedSet());
      addAttributeChange("disclosedRowKeys", set);
      broadcastToMethodExpression(event, getRowDisclosureListener());
    }
    else if (event instanceof SortEvent)
    {
View Full Code Here

Examples of org.apache.myfaces.trinidad.model.RowKeySetImpl.removeAll()

    assertTrue(set2.contains(k2));
    assertFalse(set2.contains(k3));

    // now test removeAll:
    set2.add(k3);
    set2.removeAll(set1);
    assertFalse(set2.contains(k1));
    assertFalse(set2.contains(k2));
    assertTrue(set2.contains(k3));
    assertEquals("size", 1, set2.size());
View Full Code Here

Examples of org.apache.openjpa.datacache.DataCache.removeAll()

                return num;
            } finally {
                for (ClassMetaData cmd : getAccessPathMetaDatas(q)) {
                    DataCache cache = cmd.getDataCache();
                    if (cache != null && cache.getEvictOnBulkUpdate()) {
                        cache.removeAll(cmd.getDescribedType(), true);
                    }
                }
            }
        }
View Full Code Here

Examples of org.apache.sling.event.jobs.Queue.removeAll()

        } else if ( "test".equals(cmd) ) {
            this.startTestJob();
        } else if ( "dropall".equals(cmd) ) {
            final Queue q = this.getQueue(req);
            if ( q != null ) {
                q.removeAll();
            } else {
                msg = this.getQueueErrorMessage(req, "drop all");
            }
        } else {
            msg = "Unknown command";
View Full Code Here

Examples of org.apache.stanbol.commons.indexedgraph.IndexedMGraph.removeAll()

            while(entityTriples.hasNext()){
                expected.add(entityTriples.next());
            }
        }
        MGraph notExpected = new IndexedMGraph(testData);
        notExpected.removeAll(expected);
        Assert.assertTrue(metadata.containsAll(expected));
        Assert.assertTrue(Collections.disjoint(metadata, notExpected));
    }

    private static class TestDereferencer implements EntityDereferencer {
View Full Code Here

Examples of org.apache.stanbol.commons.jobs.api.JobManager.removeAll()

     */
    @DELETE
    public Response delete(){
        log.info("Called DELETE all jobs");
        JobManager manager = getJobManager();
        manager.removeAll();
        return Response.ok("All jobs have been deleted.").build();
    }
   
    /**
     * Creates a new background job to be used to test the service.
View Full Code Here

Examples of org.apache.stanbol.entityhub.servicesapi.model.Representation.removeAll()

    }

    @Test(expected = IllegalArgumentException.class)
    public void testEmptyFieldRemoveAll() {
        Representation rep = createRepresentation(null);
        rep.removeAll("");
    }

    @Test(expected = IllegalArgumentException.class)
    public void testEmptyFieldRemoveAllNaturalText() {
        Representation rep = createRepresentation(null);
View Full Code Here

Examples of org.apache.stanbol.entityhub.servicesapi.yard.Yard.removeAll()

            throw new YardException(String.format("The Yard %s for this cache is currently not available", yardId));
        } else {
            //ensure that the baseConfig (if present) is not deleted by this
            //operation
            Representation baseConfig = yard.getRepresentation(Cache.BASE_CONFIGURATION_URI);
            yard.removeAll();
            if(baseConfig != null){
                yard.store(baseConfig);
            }
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.