Questions tagged [collect]

Use this tag for questions related to the act of gathering/collecting/grouping data/results from several nodes/places/computers to one (or main) resource(s).

Use this tag for questions related to the act of gathering/collecting/grouping data/results from several nodes/places/computers to one (or main) resource(s).

For example, in Distributed Computing, the slaves would do their local computation and eventually, one would like the master to collect the (local) results.

354 questions
-1
votes
1 answer

Why won't the Common LISP Return function work?

I've been working on a project in common lisp for a bit now, and I can't figure out why the loop I am using won't return a list. It will print the new list (correctly!) if I use a 'Finally' statement at the end of the loop, but it will not print…
kra361
  • 11
-1
votes
1 answer

How to collect the contents of a browser's address bar in C / C++?

Overview I wish to collect the contents of a browser's address bar opened by a function in a program in C / C++. There are a few threads here which discuss the matter. However, none seems to be helpful to me. My environment OS : Windows 7, Windows…
Morbius
  • 7
  • 1
  • 3
-1
votes
1 answer

Having trouble loading a canvas once all collectibles have been collected

UPDATED CODE In my 3d Unity game I am trying to add in a canvas once all the collectibles are collected that says "Level completed... loading next level" and then loads the next level but once all the collectibles are collected, the game still…
-1
votes
1 answer

How do you collect data from all your threads in java?

So I made a class that extends Thread class and I have a main class that calls start(). I have created 1000 threads to run my program in this way: int ThreadNum = 1000; for(int i=0; i
-1
votes
1 answer

Create a list of objects from a list of String in groovy

I am having a list of string as follows. List l = ["1","2","3"] And I have a class like as follows. class person { String name } I want to create a list of person object from List l. I have tried using groovy list collect but I am not able to…
Apoorva sahay
  • 1,900
  • 3
  • 28
  • 45
-1
votes
1 answer

php in array collect same array

I have this array in PHP: $a =…
-1
votes
1 answer

Bulk collect limit with execute immediate

For operating on millions of records I want to put a limit of 500 but the following code gives error. Error report: ORA-06550: line 6, column 49: PLS-00103: Encountered the symbol "LIMIT" when expecting one of the following: DECLARE TYPE EMP_T…
PTK
  • 307
  • 4
  • 19
-1
votes
1 answer

Getting successfully updated id's from "for all update" in oracle

I am trying to update records in bulk. After running for all update I need to call a procedure and send all successfully updated id's as one of the parameter to the procedure.All those id's for which update was not performed due to some error should…
PTK
  • 307
  • 4
  • 19
-1
votes
1 answer

collect dictionairy values in python list

I have a list which has dict values in it. I want to group by ts and collect other values. Please note that ts is common and will be there in all dictionaries in the list. But the other values like HP, BP can change in each dictionary. Please…
-1
votes
1 answer

Need to group struct type into array

I have a hive table with a column struct. I need to run a query to collect some rows of that column into array. The end result should be array of struct<....> I have tried "collect_set", but it is giving me an error that it cannot be used for…
maze2002
  • 1
  • 1
-1
votes
2 answers

Scala collectons filter and sort a sequence with objects containing a map and then iterate over it

given an object: case class GT(code: String,names: Map[String, Option[String]]) {} and a list : val gText = List(new GT("USB", Map("de" -> Some("a"), "en" -> Some("abc"), "fr" -> Some("ab"))), new GT("Switch", Map("de" ->…
ugurkocak1980
  • 143
  • 1
  • 13
-1
votes
2 answers

Garbage Collection - Mutex

Based on my research, the general rule of thumb is not to mess with GC (i.e. don't call GC.Collect()). We have a server based process that processes huge XML documents - the memory never gets released. The code looks like this: while (!abort) { …
Biz Stuff
  • 11
  • 1
-1
votes
2 answers

implementing collections or arrays in java

I have a text file, which has to be processed. The lines contains, country name and some of its states, like below. i want to make it in an array. Is there any collections available which can be implemented? if(line.contains("India")){ //add…
FirmView
  • 3,130
  • 8
  • 34
  • 50
-2
votes
3 answers

How to collect a list of doubles from a stream?

say I desire to collect a list of doubles[] from a lambda function, I have created the following example, however it do not compile given the type. What could I do as a workaround? public class CollectingStreams { public static double []…
DTK
  • 95
  • 1
  • 9
-2
votes
2 answers

Using Java stream() API to filter out single element without List

I wonder if there is a way to filter out a single element directly in Java by using stream().filter() but without the need of creating a list and getting the 0 index. My code looks something like this: String foo = stringList …
Detheuss
  • 21
  • 4
1 2 3
23
24