Questions tagged [lookup]

Look up is related to indexes and hash tables. It is the action of accessing fastly to an item in a large collection thanks to a index (a so-called lookup table).

In computer science, a lookup table is an array that replaces runtime computation with a simpler array indexing operation. The savings in terms of processing time can be significant, since retrieving a value from memory is often faster than undergoing an 'expensive' computation or input/output operation.

The tables may be precalculated and stored in static program storage, calculated (or "pre-fetched") as part of a program's initialization phase (memoization), or even stored in hardware in application-specific platforms. Lookup tables are also used extensively to validate input values by matching against a list of valid (or invalid) items in an array and, in some programming languages, may include pointer functions (or offsets to labels) to process the matching input.

3604 questions
1
vote
1 answer

Access Secure EJB on Glassfish from Standalone Java application

I am trying to access a secure EJB (on Glassfish) from a stand-alone application(running in Eclipse). I have a JAAS login module working fine with any web project (if configured in web.xml with MyRealm etc), Now I want to…
PHP Avenger
  • 1,744
  • 6
  • 37
  • 66
1
vote
2 answers

Informatica Unconnected Lookup parse error

I am calling an unconnected lookup in Informatica and I am getting this error: ERROR : Lookup port rfb_id in lkp_V_CLAIM_ELIGBLTY_EFF_LTCG_seqid not specified in lookup override . . . Transformation Parse Fatal Error; transformation…
staples
  • 424
  • 2
  • 8
  • 24
1
vote
1 answer

ILookup store item under multiple keys

I have a situation where I have a set of objects, these objects relate to items in a database. We create a local cache of these objects along with indexes to allow fast filtering/searching of the data. The issue I am having is converting the list of…
Neaox
  • 1,933
  • 3
  • 18
  • 29
1
vote
1 answer

how to lookup cdi beans while is not stateless and localbean?

I have CDI RequestScoped bean and much more java class that are not beans. in any of these java classes, I want to use my bean but it can be injected (why? I do not know) one possible way is using this code : final Hashtable jndiProperties = new…
moosy
  • 55
  • 8
1
vote
1 answer

WorkAround create a look up column

I want to create a Look up column to bring the data of a column "Person/Group" in other library but I can´t. I found some solutions to this inconvenient, for…
Melo.Melissa
  • 11
  • 1
  • 2
1
vote
2 answers

Lookup.getDefault().lookup() returns null

What should be done if a lookup returns null? I am using Lookup.getDefault().lookup() of org.openide.util.Lookup which is used for finding instances of objects. The general pattern is to pass a Class object and get back an instance of that class or…
user1727270
  • 303
  • 1
  • 3
  • 10
1
vote
2 answers

Why is Set.contains() much faster for Point than for List of size 2?

I recently needed to do many-many lookups on a set of integer pairs for solving a problem in a programming contest. I program in Java. Normally I would use arrays for pairs of integers, but because sets in Java do not work with arrays, I decided to…
Artyom
  • 1,599
  • 12
  • 22
1
vote
1 answer

Using Vlookups, lookups, reference, to solve a small reporting assignment

I am trying to solve, which for most of you would be a simple problem (apologies) I am trying to fill the margins from the first table on the left onto the 'Col G' on the right side table. (in actuality, this table is very large). Now if you note,…
Ash
  • 33
  • 1
  • 5
1
vote
1 answer

MySQL Select Query using criteria from external file?

I'm not sure if what I'm trying to do is possible at all. I'd like to be able to run a query in MySQL that does a simple Select, but uses the search criteria / select criteria from an external file to do the select on. e.g. SELECT * FROM…
Coops
  • 13
  • 3
1
vote
2 answers

Word matching in corpus of text is very slow

I have two tables. In Table 1, I have around 400K rows where each row includes a paragraph of text that can be up to 50 sentences. In Table 2 I have a lexicon of 80k words with a score that I need for the coding of each word of each paragraph. The…
user1029296
  • 609
  • 8
  • 17
1
vote
1 answer

Using Perl to select 1 from@db_link where db_link comes from each entries of a lookup table

I want to read a table in Oracle which contains database links for checking availability of each database link and return only the bad results for each database link and error message. I want to fetch this lookup table into an array, and pass the…
Paul
  • 11
  • 1
1
vote
0 answers

1 Billion Entities in an In-Memory Collection

I am trying to build a Lookup Data Structure in C# for huge data. The current plan is for it to able to scale to 1 Billion entities without affecting performance. The search performance should be in nanoseconds. Currently, I have experimented with…
Raheel
  • 163
  • 1
  • 6
1
vote
2 answers

LOOKUP by string on every element of a column and add the values found on the current row

I have an excel question that i was not able to figure out, i'm sorry to say but my experience with Excel is limited to cell filling and maybe a couple of graphs and functions. I'm now facing a task on which i have to nest some formulas ... I have…
Tzoma
  • 43
  • 1
  • 6
1
vote
6 answers

Why store lookup values (combobox values) in the database instead of having them on the html page?

What are the typical arguments in support of storing combo-box values (static lookup values (strings etc.) for an application) in database vs storing them right into the html page itself ?
Robin Bajaj
  • 2,002
  • 4
  • 29
  • 47
1
vote
1 answer

What is this so called lookup in namespace function definition?

§3.4.1/9 in the C++11 Standard says: Name lookup for a name used in the definition of a friend function (11.3) defined inline in the class granting friendship shall proceed as described for lookup in member function definitions. If the friend …
Wake up Brazil
  • 3,421
  • 12
  • 19