/** * sets the number of tweets to return per page, up to a max of 100 * * @param count the number of tweets to return per page * @return the instance * @since Twitter4J 2.1.0 */ public Query count(int count) { setCount(count); return this; }
public TwitterPullRecordReader(Twitter twitter, String keywords, int requestInterval) { this.twitter = twitter; this.requestInterval = requestInterval; this.query = new Query(keywords); this.query.setCount(100); this.record = new CharArrayRecord(); }
query.setMaxId(Long.parseLong(params.get("max_id"))); if(params.containsKey("count")) query.setCount(Integer.parseInt(params.get("count"))); if(params.containsKey("geocode")) { String[] parts=params.get("geocode").split(",");
query.setCount(count);
query.setCount(endpoint.getProperties().getCount());