Examples of asList()


Examples of cascading.flow.planner.graph.IgnoreAnnotationsHashSet.asList()

          if( !uniques.add( prior ) ) // todo: setting to force failure on duplicates
            LOG.info( "re-partition rule created duplicate element graph to prior partitioner: {}, replacing duplicate result", partitioner.getRuleName() );
          }

        // order no longer preserved
        resultChildren = uniques.asList();
        }

      subGraphs.put( parent, resultChildren );
      }
View Full Code Here

Examples of com.datastax.driver.core.ColumnDefinitions.asList()

    }

    ColumnDefinitions cols = row.getColumnDefinitions();
    Map<String, Object> map = new HashMap<String, Object>(cols.size());

    for (Definition def : cols.asList()) {
      String name = def.getName();
      map.put(name, def.getType().deserialize(row.getBytesUnsafe(name)));
    }

    return map;
View Full Code Here

Examples of com.everbox4j.bean.EverBoxObject.asList()

    }
    //仍然有新的Entry? 那就是新增咯
    if(newList.size() > 0) {
      for (EverBoxObject newEntry : newList) {
        List<EverBoxObject> list = new ArrayList<EverBoxObject>();
        newEntry.asList(list);
        for (EverBoxObject ebo : list) {
          mList.add(new EverboxModify(ebo, EverboxModify.ADD, false));
          log.info("B比A多了一个文件 -- " + ebo.getPath());
        }
      }
View Full Code Here

Examples of com.foundationdb.junit.ParameterizationBuilder.asList()

        ParameterizationBuilder pb = new ParameterizationBuilder();
        pb.add("");
        pb.multiplyParametersByAppending("1", 1, "20", 20);
        pb.multiplyParametersByAppending("-LEFT", Index.JoinType.LEFT, "-RIGHT", Index.JoinType.RIGHT);
        pb.multiplyParametersByAppending("-narrow", false, "-bushy", true);
        return pb.asList();
    }

    @Override
    protected void registerTaps() {
        tapsRegexes.add("travers.*");
 
View Full Code Here

Examples of com.gemstone.gemfire.cache.query.SelectResults.asList()

  @Test
  public void testToCollectionWithSelectResults() {
    SelectResults mockSelectResults = mock(SelectResults.class, "testToCollectionWithSelectResults.SelectResults");
    List<String> expectedList = Arrays.asList("one", "two", "three");

    when(mockSelectResults.asList()).thenReturn(expectedList);

    Collection<?> actualList = repositoryQuery.toCollection(mockSelectResults);

    assertSame(expectedList, actualList);
  }
View Full Code Here

Examples of com.gemstone.gemfire.cache.query.internal.ResultsBag.asList()

  @Test
  public void testToCollectionWithResultsBag() {
    ResultsBag mockResultsBag = mock(ResultsBag.class, "testToCollectionWithResultsBag.ResultsBag");
    List<String> expectedList = Arrays.asList("a", "b", "c");

    when(mockResultsBag.asList()).thenReturn(expectedList);

    Collection<?> actualList = repositoryQuery.toCollection(mockResultsBag);

    assertSame(expectedList, actualList);
  }
View Full Code Here

Examples of com.github.jmkgreen.morphia.query.Query.asList()

        if (datesIn != null && !datesIn.isEmpty()) {
            q.filter("_id in", datesInString);
        }
        q.order("_id");

        final List<MapReduceMinMax> mapReduceResult = q.asList();
        final TimeSeries serieMin = new TimeSeries("Min");
        final TimeSeries serieMax = new TimeSeries("Max");

        for (MapReduceMinMax m : mapReduceResult) {
            try {
View Full Code Here

Examples of com.google.appengine.api.datastore.PreparedQuery.asList()

                q.setKeysOnly();

                q.addFilter(PROPERTY_EXPIRES,
                        FilterOperator.LESS_THAN_OR_EQUAL, expire);
                PreparedQuery pq = ds.prepare(q);
                List<Entity> entities = pq.asList(Builder
                        .withLimit(CLEANUP_LIMIT));
                if (entities != null) {
                    getLogger()
                            .log(Level.INFO,
                                    "Vaadin cleanup deleting {0} expired Vaadin sessions.",
View Full Code Here

Examples of com.google.appengine.api.datastore.PreparedQuery.asList()

                Query q = new Query(APPENGINE_SESSION_KIND);
                q.setKeysOnly();
                q.addFilter(PROPERTY_APPENGINE_EXPIRES,
                        FilterOperator.LESS_THAN_OR_EQUAL, expire);
                PreparedQuery pq = ds.prepare(q);
                List<Entity> entities = pq.asList(Builder
                        .withLimit(CLEANUP_LIMIT));
                if (entities != null) {
                    getLogger()
                            .log(Level.INFO,
                                    "Vaadin cleanup deleting {0} expired appengine sessions.",
View Full Code Here

Examples of com.google.appengine.api.datastore.PreparedQuery.asList()

  public List<DepartmentInformationObject> queryDepartmentByPrefix(String prefix) {
    Query q = new Query(DEPARTMENT_KIND);
    q.addFilter(DEPARTMENT_ID_PROPERTY, FilterOperator.GREATER_THAN_OR_EQUAL, prefix);
    q.addSort(DEPARTMENT_ID_PROPERTY,SortDirection.ASCENDING);
    PreparedQuery pq = datastore.prepare(q);
    List<Entity> results = pq.asList(FetchOptions.Builder.withLimit(10));
    List<DepartmentInformationObject> diol = new ArrayList<DepartmentInformationObject>();
    for(Iterator<Entity> i = results.iterator(); i.hasNext();) {
      Entity e = i.next();
      String deptId = (String)e.getProperty(DEPARTMENT_ID_PROPERTY);
      if(deptId.startsWith(prefix))
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.