SQLite, Hashtable, or other Options?

Hello. I'm relatively new to BB dev.  You are looking for the most effective way to store and query data very simply.  A column of date and an account.  For example.

2012-10-01, 5

2012-10, 02, 1

Must be able to determine the sum of the number of months from 10 to 2012 for example.  Would rather not use SQLite, would perhaps create a hash table in a persistent storage.  Just worried about the configuration required to do things like get the number of months, etc.  Seems that should be a string, analysis, loopoing, etc to get this info if in hashtable.

What would you recommend as the best approach?  Are there other options that maybe I'm not aware of?  Thank you!

a hash table stores the objects using the hash of the key value.
If you use long as a key of a hash function is provided, but if you use a custom key you need to implement the code of hash and equals (eclipse has a nice convenience for this function).

with regard to the grouping: you do not have a complete data model so you have to write your own. functions of Hashtable are not that slow, so unless you're really in a rush in the calculation of the time you should be fine just the addition of different values.
If your table should store only the dates, you can use http://www.blackberry.com/developers/docs/7.1.0api/net/rim/device/api/util/LongHashtable.html , which should still be a little faster.

Tags: BlackBerry Developers

Similar Questions

  • Java has been blocked because of the threat, I did the update, and other options to reactivate it ie.manual update reinstalls still websites like YouTube always used to load up. Works great in Chrome & IE!

    Java has been blocked because of the threat, I did the update, and other options to reactivate it ie.manual update reinstalls still websites like YouTube always used to load up. Works great in Chrome & IE!

    Your list of plugins in "Details of the system more" Watch 1.6.0_31 of next generation Java plug-in for browsers Mozilla for Java should not be blocked.

    Could you post a link to a Web page where Java does not work for you? YouTube uses the Flash, not Java. Here is a list of the test pages of Java that you can try to verify that Java works, of http://kb.mozillazine.org/Java#Testing_Java

    Moreover, I see in your list of plugins you also the VLC media player Plugin Web 2.0.0 so, it is possible that the VLC plugin is causing a conflict if YouTube or other videos do not work. See Fix common audio and graphics problems (you may have to disable the VLC Media Player plugin in the Add-ons-> list of Plugins for some media to play).

  • My laptop and my iPad give me the access code and no other options

    I had already downloaded firefox home on my laptop and my iPad. After some problems with the app on my iPad, I decided to remove the app on my iPad and reinstall it. I did not remove the app on my phone.
    I downloaded the app on my iPad now and try to add as a new device.

    After you select 'I already have a sync account', on my laptop and iPad, both devices are give me an access code and tell me to come in on the other device. I don't give me no other options.

    I'm obviously something wrong, can you please tell me what.

    Thank you

    Hi nzluke,

    Then you previously installed sync successfully on your laptop? You may need to redefine your account and for this you will need your recovery key and the following steps

    If you do not have the recovery key, your only option is to reset the recovery key. To do this, follow these simple instructions:

    1. Click on «Set up Firefox Sync»
    2. Click on 'Connect' as I already have an account.
    3. In this window, forget the code and click on 'I don't have the camera with me' right underneath the 3 boxes.
    4. In this window, under the 'Sync key' field, there is a paragraph with a link to the end. "I lost my other device."
    5. Click on it and follow the instructions. In the end, you'll be ready to go. Just reset your Firefox Home app and that's all.

    Hope this helps!

  • How to get other options of voice other than Sam in speech recognition?

    Original title: speech synthesis
     
    I was wondering. I have Windows XP Professional and I use text-to-speech, a lot, but I only have Microsoft Sam as my voice option. The strange thing is, I could have sworn when I first implemented this XP I had a selection of voices, but now is only Sam.  Anyone know how to get other options?
    Thank you

    Hello

    Unfortunately, you can use audio only Sam in Windows XP, the default design. If you need any other voice other than SAM you can try the search in the Web site, using one of your favorite search engines.

    Warning: Using third-party software, including hardware drivers can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the use of third-party software can be solved. Software using third party is at your own risk.

    For your reference:

    http://support.Microsoft.com/kb/306901

     

    http://support.Microsoft.com/kb/306537

  • Update soundcards site says I need to install the ActiveX control, but there is no bar at the top click or any other option to download.

    Update soundcards site says I need to install the ActiveX control, but there is no bar at the top click or any other option to download.  How can I download this control so I can access the Windows Update Web site?

    See if that helps-

    How to reset the Windows Update settings?
    http://support.Microsoft.com/kb/971058

  • Screen resolution problem - is the bare min and there are no other options

    I've upgraded to Vista, a month or two ago and my screen resolution is the bare min and there are no other options better resolution. I tried to update the graphics card but it tells me that it is up-to-date.

    Update your video driver... try the following...

    If you have a portable computer... go to the support site for your computer manufacturer
    and the search for Compatible Vista video drivers updated.

    If you have a desktop computer... go to the website of your video adapter support
    manufacturer and find Compatible Vista video drivers updated.

    The following article can help you find the brand/model/driver version of
    your video card:

    Update Windows Vista graphics driver
    http://www.CGL.UCSF.edu/chimera/graphics/updatevista.html

    If you find a video updated driver... it would be a good idea to create a
    System restore point before you install it. Also be sure to follow all
    installation instructions that may be available on the download site.

    How to create a system restore point in Windows Vista
    http://www.Winhelponline.com/articles/139/1/

  • I can not get to open Paint. I see the flip option, but it has not been highlighted as the other options. I can only see the shadow of the flip icon

    I can not get to open Paint. I see the flip option, but it has not been highlighted as the other options. I don't see the shadow of the flip icon. When I click on the brush, it does not.

    Hello

    To help you with your problem of paint, we suggest to consult this topic, use the File Checker system to repair missing or corrupted system filesand follow the steps to run the tool (SFC.exe) System File Checker on this article: 929833 KB.

    Thank you

  • Areas of the site > "other Options"?

    I have the BC marketing plan and I am trying to create a record.  I saw in various documents and images that I need to go to more Options in the areas of the Site under Site settings, except that the only thing which for me is "new domain".  I see no "more options at all.  Why is it disabled and is there a way for me to allow it?

    Hi Michal,

    What you can and can't do is dependent on the configuration.

    You take a direct site and seeks to set the domain to your new site? Based on what you describe see you, which looks like the case. IF Yes, then you won't in British Colombia to set up your record. You need to go where you bought the domain or hosting service and set up recording it.

    BRITISH Colombia, configure you the field to talk about the area of BC.

    When you have all the traffic to BC (NS records method) then you'll indeed see other options once that has been implemented in your field image and again once configure you the fields in British Colombia.

  • Hi, I have bought LR6 and installed cloud creative ok, but when you go to installation of Lr, it allows only one installation of the trial version, the other options are to buy. I expect that when I pay 129 euros for the LR I can install it easily and not

    I bought LR6 and installed cloud creative ok, but when you go to installation of Lr, it allows only one installation of the trial version, the other options are to buy.

    Serialize Lightroom trial to activate like Lightroom 6 CC

    https://helpx.Adobe.com/Lightroom/KB/serialize-Lightroom-CC-trial-to-activate-as-Lightroom - 6.html

  • Hello, I need help with my photoshop, rececently the majority of my family disappeared merger options and I cant access AVC and other options ive tried reset preferences and it seems to come back but when I add an image and try add text again

    Hello, I need help with my photoshop, the majority of my family rececently disappeared options fusion and I can't access strokes and other options ive tried to reset the settings of preference and he seems to come back but when I add an image and you try to add text again, they'll only options I have are drop shadow , gradient, Chromakey, shine of satin overlay, inner (I use photoshop cc 2015) Please help, my Skype contact options are: RoblivionM8 and email:[email protected]

    Thanks for your time

    Your first screenshot shows the layer style dialog where not all types of effects are indicated on the left. Bottom left of the dialog box, you see a small icon fx with a menu arrow drop-down. Use drop down the menu and make sure all you click on show all effects or restore the default list. I don't know what you're trying the shoe on the second screen capture.

  • Other options to convert PDF scanned text document?

    I often receive PDF files where the document has been scanned as an image. I'm wasting time having to retype these. I found a way online to Google to do a conversion, but it is slow (the link below if you're curious).  What are other options to convert this type of PDF to actual text?

    http://www.labnol.org/software/convert-scanned-PDF-images-to-text-with-Google-OCR/5158/

    It is in the PDF, not somewhere else. You can then save it as a text file (or DOC) and get the text. Apparently, you use the searchable image, but could also use ClearScan which replaces the image of the text with the text where he thinks that it is successful. The text is on a different layer in the PDF file.

  • CS4 Table of contents 'Other Options' button turns into a button 'Save Style'. Help?

    Can anyone help or someone encountered this before?

    When I open the Table of contents dialog box, the 'Other Options' button is there, just under the button "Cancel". BUT the second I go over it with my mouse to click on it, it turns into the button 'save the Style... ', never to return. I tried to navigate using the tab, with the same results.

    I can't do the things formatting I want unless I can access the 'other Options '.

    So my question is twofold: one, have you seen this and how to fix this? And two, is there a way to alter to access the items in the table of contents more Options?

    Thanks in advance!

    It's the kind of strangeness that I would say is a good candidate to replace your preferences

  • 38 Firefox slow to respond or crashes without other options?

    After the latest Firefox 38.0.1, it became unusable. I tried several different suggestions found on the forum and through Google searches, but noting seems to cure my problem.

    I use MSN as my home page and at first thought it was the root cause, but using IE I don't have the issue of the suspension. I tried the resettlement, refreshing, new profile creation, to update all the drivers of video material and others etc. but can't seem to find the key...

    The only thing that seems to relieve symptoms is to use the "noscript" and "adblock more ' Add-ons.

    I added information from troubleshooting below.

    For any help or suggestion is appreciated.

    The application databases

    Name: Firefox
    Version: 38.0.1
    Build ID: 20150513174244
    Update channel: output
    User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; RV:38.0) Gecko/20100101 Firefox/38.0
    Windows multiprocessing: 0/1 (default: false)

    Reports of incidents for the last 3 days

    Report ID: bp-9544f9b6-5e25-4c62-956e-93d262150527
    Sent: 1 day ago

    All Crash reports

    Extensions

    Name: Adblock more
    Version: version 2.6.9
    Enabled: true
    ID: {d10d0bf8-f5b5-c8b4-a8b2-2b9879e08c5d}

    Name: NoScript
    Version: 2.6.9.25.1 - signed
    Enabled: true
    ID: {73a6fe31-595d-460b-a920-fcc0f8843232}

    Name: Adobe Acrobat - create a PDF file
    Version: 1.2
    Enabled: false
    ID: [email protected]

    Graphics

    Description of the adapter: Intel(r) HD Graphics 4000
    Adapter (GPU #2) Description: NVIDIA NVS 5200 M
    Drivers: igdumd64 igd10umd64 igd10umd64 igdumd32 igd10umd32 igd10umd32
    Drivers (GPU #2): nvd3dumx, nvwgf2umx, nvwgf2umx, nvd3dum, nvwgf2um, nvwgf2um
    RAM card: unknown
    Card (GPU #2) RAM: 1024
    ClearType settings: D [Gamma: Structure of 2200 pixels: ClearType R level: 100 improved contrast: 50] D [Gamma: 2200 Pixel Structure: ClearType B level: 100 improved contrast: 50]
    Device ID: 0 x 0166
    Device ID (GPU #2): 0x0dfc
    DirectWrite Enabled: false (6.2.9200.17292)
    Driver date: 20/03/2014
    Driver (GPU #2) date: 26/04/2015
    Driver version: 9.17.10.3517
    (GPU #2) driver version: 9.18.13.4807
    GPU #2 Active: false
    GPU accelerated Windows: 0/1 Basic (OMTC)
    SubSys ID: 05351028
    SubSys ID (GPU #2): 15351028
    Vendor ID: 0 x 8086
    Vendor (GPU #2) ID: 0x10de
    WebGL Renderer: Google Inc. - ANGLE (Intel(r) HD Graphics 4000 Direct3D11 vs_5_0 ps_5_0)
    windowLayerManagerRemote: true
    AzureCanvasBackend: skiing
    AzureContentBackend: Cairo
    AzureFallbackCanvasBackend: Cairo
    AzureSkiaAccelerated: 0

    Important change preferences

    Browser.cache.Disk.Capacity: 358400
    Browser.cache.Disk.smart_size.first_run: false
    Browser.cache.Disk.smart_size.use_old_max: false
    Browser.cache.frecency_experiment: 4
    browser.download.importedFromSqlite: true
    browser.places.smartBookmarksVersion: 7
    browser.sessionstore.upgradeBackup.latestBuildID: 20150513174244
    Browser.Startup.homepage: http://www.msn.com/
    Browser.Startup.homepage_override.buildid: 20150513174244
    Browser.Startup.homepage_override.mstone: 38.0.1
    dom.mozApps.used: true
    extensions.lastAppVersion: 38.0.1
    GFX. Direct2D.disabled: true
    GFX. Direct3D.last_used_feature_level_idx: 0
    layers. Acceleration.Disabled: true
    Media.GMP - th - adobe.lastUpdate: 1432767155
    Media.GMP - th - adobe.version: 9
    Media.GMP - gmpopenh264.lastUpdate: 1432767155
    Media.GMP - gmpopenh264.version: 1.4
    Media.GMP - manager .buildID: 20150513174244
    Media.GMP - manager .lastCheck: 1432767154
    network.cookie.prefsMigrated: true
    Network.Predictor.cleaned - up: true
    places.database.lastMaintenance: 1432842131
    places. History.expiration.transient_current_max_pages: 104858
    plugin.disable_full_page_plugin_for_types: application/pdf
    plugin.importedState: true
    privacy.sanitize.migrateFx3Prefs: true
    Storage.vacuum.Last.index: 0
    Storage.vacuum.Last.places.sqlite: 1432830759

    Important preferences locked

    JavaScript

    Incremental GC: true

    Accessibility

    Enabled: false
    Prevent accessibility: 0

    Versions of the library

    NSPR
    The expected minimum version: 4.10.8
    Version: 4.10.8

    NSS
    The expected minimum version: 3.18.1 based ECC
    Version: 3.18.1 based ECC

    NSSSMIME
    The expected minimum version: 3.18.1 based ECC
    Version: 3.18.1 based ECC

    NSSSSL
    The expected minimum version: 3.18.1 based ECC
    Version: 3.18.1 based ECC

    NSSUTIL
    The expected minimum version: 3.18.1
    Version: 3.18.1

    Experimental features

    These programs were reported in the accident report;

    sysfer.dll = Symantec CMC Firewall

    IPSEng32.dll = Symantec's Intrusion detection

    IPSLdr32.dll = Symantec's Intrusion detection

    Total virtual memory 4294836224

    Available virtual memory 3668897792

    System memory usage percentage 66

    Available swap file 11060457472

    Available physical memory 2870013952

    Download programs current full installation for your Norton programs and keep them.

    Download and run the Norton removal tool to uninstall your Norton product

    After restarting the computer, use a registry scanner. Then, run the installation programs.

    https://support.Norton.com

    http://community.Norton.com/

    https://support.Mozilla.org/en-us/KB/Firefox-slow-how-make-it-faster

    https://support.Mozilla.org/en-us/KB/Firefox-uses-too-many-CPU-resources-how-fix

  • Error, already open, I closed to Bishop of the task, is it often, other options does not.

    About 50% of the time after I close Firefox and then try to restart later, he hung and the error comes that the browser is open and I need to close. I call Task Manager and it does not close the task of Firefox, but it becomes a bit annoying to have to do this several times a day. I checked all the other things you like bugs on the support site, but they do not work to resolve the problem.

    Windows 8.1pro
    8 GB ram
    850 CPU I7

    From what I've read other posts on this forum, the question may
    be caused by the settings to erase history.

    Press the < Alt Key > to display the toolbar. Then Tools > Options > privacy.
    The button next to the historic, select use custom settings.

    At the bottom of the page, turn clear history when Firefox closes.
    At the extreme right, press the settings button. Activate ONLY the Cache and
    Form history and search for without touching the others turned off.

    ========================

    https://support.Mozilla.org/questions/997866?ESAB=a & s = & r = 1 & As = s {web link}
    This is not a cure but will make it easier if Firefox crashes.

  • Help! What other option I have other then using thunderbolt connection to connect the VGA monitor?

    Hello

    I really hope someone is able to help and give me cheaper workaround here. I am currently using the single port thunderbolt that I have on my Mac mini to connect my VGA monitor (with mini display port to VGA). However, I would use an audio interface of stroke of lightning and therefore need to try to free this port so you can connect it.  What are my options here (other then buying a new monitor?) are there adapters that I might be able to use?

    Any help you can offer would be greatly appreciated.

    If your Mac has HDMI port using an adopter as

    http://www.Newegg.com/product/product.aspx?item=N82E16812119556&utm_medium=email & utm_source = IGNEFL031215 & nm_mc = EMC-IGNEF...

    http://www.Newegg.com/product/product.aspx?item=N82E16812699001&nm_mc=EMC-IGNEFL 070414 & cm_mmc = EMC-IGNEFL070414-_-EMC-070...

    http://www.Newegg.com/product/product.aspx?item=N82E16812270492&nm_mc=EMC-IGNEFL 072414 & cm_mmc = EMC-IGNEFL072414-_-EMC-072...

Maybe you are looking for

  • Make your own functions

    Hi, I want to create some sort of library, I mean, I want to create a list of vi that can be loaded in the palette of functions. I've seen the LLB container but seems this isn't what I want. Any ideas what am I looking for?

  • Update video card for m9690a.

    I really want to update my current video card which is a nividia Geforce GT 130 on a m9690a MBO in my HP Pavilion. I'm pretty interested in either a NVIDIA GTX470 1280 MB Gigabyte PCIe video card or a ATI 5870 1 GB Gigabyte PCIe video Cardinal I inte

  • Error rundll32 "is not a valid integer."

    every 5-10 seconds a message appears saying rundll32 "is not a valid integer. and even if I press OK it always comes back and he won't stop.

  • Scanning problems w / HP Deskjet 1050 j410a

    I had this problem where when I double click the icon "HP Deskjet 1050 J410 series Scan" it does not load the HP scanning program. I'm literally double clicking, waiting and nothing loads. I even restarted my computer, downloaded program diagnosis sc

  • How to store default path folder image in blackberry?

    How can Hi all., I get picture of store by default path folder in blackberry JDE 4.5.0? I need to save this image on RMS... I can't use FileSystemJournalListener because I use MIDP to develop my Application... Thank you...