Examples of countAll()


Examples of com.google.code.morphia.query.Query.countAll()

      TorrentStats torrentStats = new TorrentStats();
      torrentStats.infoHash = infoHash;
      torrentStats.seeders = (int)seedersQuery.countAll();
      torrentStats.completed = 0; // TODO: Для этого поля нам понадобится вести статистику загрузок.
      torrentStats.leechers = (int)leechersQuery.countAll();

      torrentStatsList.add(torrentStats);
    }

    ScrapeResponse.send(this.getMessageEvent(), this.getTransactionId(), torrentStatsList);
View Full Code Here

Examples of com.urbanairship.datacube.tweetcountexample.TweetCube.countAll()

  @Test
  public void test() throws Exception {
      Configuration conf = getTestUtil().getConfiguration();
      TweetCube tweetCube = new TweetCube(getHBaseHarness(conf),
        SyncLevel.BATCH_ASYNC); // Buffer DB writes and flush when needed
    tweetCube.countAll(new TweetIterator(100));
    tweetCube.flush();
    System.out.println("Total tweets: " + tweetCube.getCount());
    System.out.println("Tweets by baraneshgh: " + tweetCube.getUserCount("baraneshgh"));
    System.out.println("Tweets retweeting IranTube: " + tweetCube.getRetweetsOf("IranTube"));
    System.out.println("Retweets of omidhabibinia by DominiqueRdr: " +
View Full Code Here

Examples of net.sf.pmr.core.service.ProjectService.countAll()

        ProjectService projectService = CoreObjectFactory.getProjectService();
       
        // set the number of user in the request
        request.setAttribute("numberOfUser", userService.countAll());
        // set the number of project in the request
        request.setAttribute("numberOfProject", projectService.countAll());
       
    }

}
View Full Code Here

Examples of net.sf.pmr.core.service.UserService.countAll()

        UserService userService = CoreObjectFactory.getUserService();
        // get the project repository
        ProjectService projectService = CoreObjectFactory.getProjectService();
       
        // set the number of user in the request
        request.setAttribute("numberOfUser", userService.countAll());
        // set the number of project in the request
        request.setAttribute("numberOfProject", projectService.countAll());
       
    }
View Full Code Here

Examples of org.apache.cassandra.db.filter.ColumnCounter.countAll()

    public int liveCQL3RowCount(long now)
    {
        ColumnCounter counter = getComparator().isDense()
                              ? new ColumnCounter(now)
                              : new ColumnCounter.GroupByPrefix(now, getComparator(), metadata.clusteringColumns().size());
        return counter.countAll(this).live();
    }

    /**
     * Clones the column map.
     */
 
View Full Code Here

Examples of org.apache.cassandra.db.filter.ColumnCounter.countAll()

    public int liveCQL3RowCount(long now)
    {
        ColumnCounter counter = getComparator().isDense()
                              ? new ColumnCounter(now)
                              : new ColumnCounter.GroupByPrefix(now, getComparator(), metadata.clusteringColumns().size());
        return counter.countAll(this).live();
    }

    /**
     * Clones the column map.
     */
 
View Full Code Here

Examples of org.apache.cassandra.db.filter.ColumnCounter.countAll()

        ColumnCounter counter = filter.columnCounter(Schema.instance.getComparator(keyspace, columnFamily), now);
        while (!pager.isExhausted())
        {
            List<Row> next = pager.fetchPage(pageSize);
            if (!next.isEmpty())
                counter.countAll(next.get(0).cf);
        }
        return counter.live();
    }
}
View Full Code Here

Examples of org.apache.cassandra.db.filter.ColumnCounter.countAll()

        ColumnCounter counter = filter.columnCounter(Schema.instance.getCFMetaData(keyspace, columnFamily).comparator, now);
        while (!pager.isExhausted())
        {
            List<Row> next = pager.fetchPage(pageSize);
            if (!next.isEmpty())
                counter.countAll(next.get(0).cf);
        }
        return counter.live();
    }
}
View Full Code Here

Examples of org.apache.cassandra.db.filter.ColumnCounter.countAll()

    public int liveCQL3RowCount(long now)
    {
        ColumnCounter counter = getComparator().isDense()
                              ? new ColumnCounter(now)
                              : new ColumnCounter.GroupByPrefix(now, getComparator(), metadata.clusteringColumns().size());
        return counter.countAll(this).live();
    }

    /**
     * Clones the column map.
     */
 
View Full Code Here

Examples of org.apache.cassandra.db.filter.ColumnCounter.countAll()

    public int liveCQL3RowCount(long now)
    {
        ColumnCounter counter = getComparator().isDense()
                              ? new ColumnCounter(now)
                              : new ColumnCounter.GroupByPrefix(now, getComparator(), metadata.clusteringColumns().size());
        return counter.countAll(this).live();
    }

    /**
     * Clones the column map.
     */
 
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.