I am interested in writing a simplistic navigation application as a pet project. After searching around for free map-data I have settled on the US Census Bureau TIGER ... |
Basically the situation we have is we need to be able to take data from an arbitrary data source (database, flat file, it could be anything really), morph the data so ... |
I am using JibX as a Java Object to XML Binding tool.
With it, I want to have the following output:
<?xml version="1.0" encoding="UTF-8"?>
<FEAPService>
<Request>
...
|
I'm using XPath 1.0 to process incoming web services messages. This can be quite hard to get right if schema data types are used, because XPath 1.0 ... |
So I'm writing a Java app, and I've got an ESRI Shapefile which contains the borders of all the U.S. states. What I need is to be able to determine ... |
We have to lookup some data based on three input data fields. The lookup has to be fast. There are only about 20 possible lookup combinations. We've implemented ... |
I have an expensive computation, the result of which I'd like to cache. Is there some way to make a map with two keys? I'm thinking of something like Map<(Thing1, Thing2), ... |
|
I'm looking for a common data sctructure that has the capabilities of a Map<K, List<V>>
Currently what I do is something like
public class MapOfLists <K,V>{
private Map<K, List<V>> ...
|
I need a data structure to store users which should be retrieved by id.
I noticed there are several classes that implement the Map interface. Which one should be my default choice? ... |
I'm looking for a Java built-in data structure that would be the best at handling adjacent rooms.
I have a grid/floor divided into randomly generated rooms like so:
+ + + + ...
|
In an application of mine I have to display locations and great circle paths in a map which is rendered to PNG and then displayed on the web. For this I ... |
I'm trying to simulate a directly mapped cache in java. Any ideas on which data structure to use to represent the cache?
|
I have a set of data which needs to be imported from a excel sheet, lets take the simplest example. Note: the data might eventually support uploading any locale.
e.g. assuming one ... |
In Java I'm looking for a way to map multiple keys to the same value. Let's say I have the numbers 0-9 as keys, and "x", "y" and "z" as values ... |
The MultiValueMap class (Apache commons collections) makes it easy to work with a Map whose values are Collections. I'm looking for a a class that makes it easy to ... |
I need help defining what approach to use. I have a SOAP response giving me an xml file. I need to end-up with 3 correlated lists displayed on screen. When you ... |
I am having problems mapping this data
1 35
...
|
I am using IKVM to transform my java .jar file to a .NET .dll file.
I can create a property from the getter and setters of integer types ..
But am not able ... |
I have a situation where i want to store data in an object with a key and its value. The key name is the same, but the value is changed. i ... |
My app uses a TreeMap to keep data sorted and have log(n) lookups & inserts. This works great in the general case while the app is running, but when ... |
We have to store data from some flat files that is created using IBM's Ab-Initio product. They have their own datatypes that I need to map to java data-types while I ... |
I'm doing a school project in Java and I the following question have arisen:
I have an entity with attributes - id, name, phone.. with id as the unique primary key. I ... |
my application reads bigram collocation (pairs) from a .txt file. they are to be read as key-value pairs. a single key can have multiple values (So, any kind of a Map ... |
So I'm creating a basic 2d game (well a game engine) and I've currently been developing the file formats for my data. Of course, for this game to run, I will ... |
What types of data types are admissible to use as keys in maps in java? Is it ok to use a double? How about a String?
|
I am trying to sort a TreeMap on key. Key is some custom DataStructure having int, List, String, etc.
The member on which I am expecting a sort has some duplicates. Let's ... |
I have a rather large text file (~4m lines) I'd like to parse and I'm looking for advice about a suitable data structure in which to store the data. The file ... |
Hi experts, I need to save information from a treeMap that has as a key a GregorianCalendar and as a value a vector of a certain object. When I wanted to implements is, I got the following error: Error: can not write to file!Error: can not write to file!Error: theBills.Bill that is in fact an exception!! Here are the pieces of ... |
Does anyone have any information or tutorials on mapping relational data to web pages to create dynamic web pages? I've been trying something on my own, and I just want to know if I'm doing this right. I spent a good deal of time designing the database, and now I'm not sure how to extract that info to include it dynamically ... |
Dear All, Back, into this forum, after quite a long time. Now, I have a scenario, where some information is stored in Database. I fetch the information, and store the data in a Map. Later at some point of time, I need information, which would be a sub-set of what is in the Map. Now, would it be wise, to use ... |
|
Can someone recommend to me a framework or anything off the shelf that can take some of the hand cranking out of developing some data mapping software. I trawled the apache web site half expecting someone working on one of their projects to have produced something I could reuse, unfortunately this doesn't appear to be the case. Chris |
I can not get the find button to return the data from the hash map. I have tried everything I can think of with using the key, get, from the hashmap. If more code is need let me know. public void actionPerformed (ActionEvent e) { Map myObjects = new HashMap(); Button buttonObj = (Button) e.getSource(); if (buttonObj == addButton) { delButton.setEnabled(false); ... |
[Post New]posted Today 12:45:40 AM private message Quote [Up] i have 3 values such as personname,category and favorites but i need to store them as key value pairs in an data structure in java and invoking the methods on that data structure. i have the data like this personname category favorite Tom food pista Tom car Toyata arun car benz arun ... |
I'm talking about something like this: Map projectHolder; // is that even possible? there would only be one projectName but this would have to be able to hold multiple devices and channels... Or would it be better just to make a ProjectHolder object to hold these three things? I could then bind the object to a list of ... |
|
For some reason when it writes to the text it does not loop through the original map details. here is all the code I think is important if(ae.getSource() == addButton) { TreeMap pBook= new TreeMap(); pBook = readFile(); String fName = aFNameField.getText(); String lName = aLNameField.getText(); String phone = aPhoneField.getText(); String pName = fName+lName; Person p = new Person(fName,lName, ... |
I have two Entities named STUDENT and TEACHER and a many-to-many relationship between them. So to maintain this relationship I have a map table STUDENT_TEACHER_MAP. STUDENT(STUDENT_PK, STUDENT_NAME) --- 30,000 records TEACHER(TEACHER_PK, TEACHER_NAME) --- 25 records STUDENT_TEACHER_MAP(STUDENT_PK,TEACHER_PK) --- 30,000 records Now I have a query to display the records of STUDENT_TEACHER_MAP table but results should show STUDENT_NAME and TEACHER_NAME. Query is: select ... |
|
Hello please help me with this.. I have a log file,... i want to read the data from the log file which shows how many requests are there ... the code must be in such a way that there should be an hourly stats mapped to a database , typically an oracle database... The req. is to take the data from ... |
Hi id like to do something similar to this www.pininthemap.com As a basic starting point Id like to have a world map graphic where anyone can add a flag to a location on the map and then type a comment which will be linked to that flag. Users can view the map with all the added flags on and choose to ... |
|
ejp wrote: I don't see how to specify the buffer the data is coming from. You don't. You specify the channel the data is coming from. My base problem is that I don't know the fastest way to move data from memory, where it will be deposited every 3-6 seconds, to disk. nio map appears to create a file and reserve ... |
Hi I have a data structure set up to hold nodes of a map, and all the parsed map data from an open streetmap xml file. I also have JXMapViewer which is conncecting the openstreetmap server to retrieve the maps. I also have code that retrieves data from the gps receiver, parses it and has it ready to be accessed. How ... |
|
I'm creating a simple class which is required to hold a hardware store's inventory. The inventory needs to hold the product name, the quantity on hand and the unit price. I realise I could created two HashMaps (or similar), with the product name as the key of each (can assume the product name is unique) a la a relational database, but ... |
Hi All, I am new to java and I am working on a project to create a data structure that would map a database search result(got from flat files) to in memory, so that I have to just call the mapped structure to retrieve my search result(that would be time efficient). Could someone help me by giving ideas /code how to ... |
Gday all, long time lurker first time poster. I've got a problem at the moment whereby I have a lot of items stored in my system that need to be displayed in a list. Now, I don't really want to display 100,000 all at once in a JComboBox, so I've been looking at a solution whereby a text box backed onto ... |
can anyone help me plz.... if someone knows gml(geography markup language) then he can easily understand what i m trying to say... actually gml data contains only coordinates x and y.n it shows in the form of map so i require that coordinates in java after performing some operation on that data again in the form of gml...can someone post code ... |
|
Hi, i intend to store names with phone numbers under the following constraint: 1.If the same person has two different phone numbers then the latest one gets stored. 2.If two different persons have the same phone number then both the entries should not appear in the list 3.If there are two similar entries, then only one of them should appear. I ... |