Questions tagged [arrayofstring]
51 questions
6
votes
2 answers
How to store array of objects in Cassandra
In cassandra DB I am planning to store an array-of-object. What is the best way to do that. object mapping to Data mapping with model class in java.
Class Test{
@Column(name = "id")
int id,
@Column(name = "name")
String name,
…

Nomad
- 751
- 4
- 13
- 34
3
votes
1 answer
Hive Query: Matching column Values from Array of string to make Flags
I have some records where every row belongs to some categories (data type - array of string) and a separate list of unique category(data type - string). I need to match every row with unique list and create flags for it.
Input:
------
ID …

codekiller
- 53
- 1
- 9
2
votes
0 answers
How to initialize object attributes from an array of strings in Python?
I am supposed to write a class which will allow the user of the script to define what attributes will it's objects have when initializing them by giving it an array of strings like this.
data = Database(tables=['distance', 'speed'])
Then it should…

FallingBrick
- 21
- 2
2
votes
0 answers
How to select a string from the drop list , and pass it's object which contains an array of strings?
How do i select a string from a drop list, and pass it to object class which is having array of string?
for example
In service class
JComboBox comboBox = new JComboBox();
for (int i = 0; i < 3; i++)
{
…

Anonymous3643
- 21
- 1
2
votes
1 answer
Storing strings in an array of pointers from another string
I'm self-learning C and I came across a problem where lines need to be sorted according to their lengths. This portion stores characters from the input stream into an array and puts each lines in an array of pointers. Then tries to print the first…

Debasis_Buxy
- 73
- 8
2
votes
1 answer
How to get specific string in XML ArrayOfString?
I have a config file generated by VS:
True
…

user2787787
- 23
- 4
1
vote
2 answers
PYTHON convert list of strings to JSON array of objects with key and value
I'm using PYTHON :
I'm trying to convert the following array of strings:
tags_list = ["one", "two", "three"]
to an array of JSON array of objects with a specific key as follows:
"tags": [
{
"name": "one"
},
…

Mohamed Abbase
- 111
- 3
- 15
1
vote
2 answers
how can I extract single column from Array in HIVE???
I have to extract timeStamp column from this Array in HIVE? [{"timeStamp":1506411499989,"status":"BROADCASTED"}]

Etisha
- 307
- 6
- 16
1
vote
1 answer
Parse ArrayOfString from SimpleXML
I am fetching a large block of XML data from a MySQL Database and attempting to parse out the relevant information. There is an ArrayOfString which I have never seen before, however I need to get the values out of it for use.
I have tried several…
user470760
1
vote
2 answers
StringBuilder method deleteCharAt not deleting the character
I'm attempting to delete the character at position 0 using the method deleteCharAt(0), and append that character (already copied) to the end. The character will append to the end, but the method deleteCharAt(0) is not executing. I can't really tell…
user5924094
1
vote
3 answers
String.Split() for a array of string and saving into a new array
So, I'm receiving an array of String and I would like to split each element and save it into a new array and I have faced a lot of problems with that and came up with a really bad solution:
String[] timeSlots = { "13:00:00 - 14:00:00", "15:00:00 -…

HSHERU
- 13
- 5
1
vote
1 answer
Using of Zend_Soap_Wsdl_Strategy_ArrayOfTypeComplex with string[]
I'm currently using Zend_Soap_AutoDiscover to generate my WSDL file, the problem is I want this wsdl to handle output of type ArrayOfString ( string[] ). so I changed the complex type strategy to Zend_Soap_Wsdl_Strategy_ArrayOfTypeSequence, it works…

Farid
- 751
- 2
- 8
- 15
0
votes
0 answers
Not able to pass array of objects in sendKeys() [in Selenium Javascript]
I'm currently trying to perform parameterised testing using Mocha in Selenium.
I'm passing multiple values into a text-box(s). When using simple arrays, I'm able to pass the array data in sendKeys() function and successfully complete the test (refer…
0
votes
3 answers
counting number of words after last occurrence of every word in an array of strings
i am working on text. I want to find the number of words after the last occurrence of a particular word in an array of strings.For instance,
String[] array={cat,rat,cat,bat,cat,cat,bat,fat,mat}
and I want to find the last occurrence of every word in…

Thirsty Crow
- 1
- 1
0
votes
1 answer
C Copy a string into an array of strings?
My problem is as follows:
I have text file from which I read all the contents into a single string. I now need to make an array of strings that divide the original string into equally sized chunks. I will be performing some operations on each of…

irti_420
- 21
- 3