Arrays with more than 2^31-1 (2147483647) elements?

Hi,
I'm working with very large datasets and would like to be able to process arrays with more than 2^31-1 elements. This limit seems to come about because Java requires a signed integer to be passed as a parameter to an array declaration, e.g.:
Object bytes = new byte[2147483647]; // works
Object bytes = new byte[2147483648]; // failsIs there any way to get around this?
Thanks very much,
- Davi

Is there any way to get around this?What about creating a class that aggregatesseveral
arrays and implements the List API?
KajUnfortunately, many of the methods in the List
interface depend on int indexes also. You would
probably want these methods to use a long index
instead.True. I should have said that he should mimic the behaviour of the List interface, but not implement it.
Kaj

Similar Messages

  • Associative Array with more than one field - retrieving as output parameter

    Hello,
    I'm developing an C# Application that is showing a datagrid with results from a PL/SQL procedure inside a Package.
    The .net project is in .net 4 and the DB is an oracle 10g.
    I have read the odp.net sample about the associative array. I could successfully pass as an input parameter a string[] and dealing with it inside my PL/SQL procedure.
    Now it become more complex to me because I would like to return an associative array defined like this :
    TYPE r_FinalExtract IS RECORD
    RecordmyTable myTable%ROWTYPE,
    Tel1 varchar2(25),
    Tel1Libelle varchar2(50),
    Tel2 varchar2(25),
    Tel2Libelle varchar2(50),
    Tel3 varchar2(25),
    Tel3Libelle varchar2(50),
    Tel4 varchar2(25),
    Tel4Libelle varchar2(50),
    Tel5 varchar2(25),
    Tel5Libelle varchar2(50),
    Email1 varchar2(50),
    Email1Libelle varchar2(50),
    Email2 varchar2(50),
    Email2Libelle varchar2(50)
    TYPE t_FinalExtract IS TABLE OF r_FinalExtract INDEX BY BINARY_INTEGER;
    You can guess my PL/SQL stored procedure is filling this collection.
    The spec of my procedure :
    PROCEDURE P_SELECTDATA( ptab_ListRef IN t_AssocArrayVarchar2, ptab_Result OUT t_FinalExtract );
    Unfortunately, in my .net project, I don't know how to deal with that.
    I tryed to add p_Result as an output parameter but you have to define the OracleCollectionType for that parameter and the array type is not the good one because my t_FinalExtract is not a simple array...
    I searched over the internet and the only one thread I could find is someone who was doing like me... and finally reply to his own thread 3 months later and said that he had to create CSV lines and return a table of varchar2...
    This is what I will do because I'm loosing time for finding the way to do it with my associative array, but if someone has the solution I would be glad to read it.
    Thanks in advance.

    For PL/SQL records, I would recommend using User-Defined Types (UDTs), rather than associative arrays.
    You can read more on how to use ODP.NET UDTs here:
    http://docs.oracle.com/cd/E20434_01/doc/win.112/e23174/featUDTs.htm#CJAGCAID
    Strictly speaking, ODP.NET doesn't support PL/SQL Records per se. Instead, ODP.NET supports building any generic UDT in the Oracle DB, which covers the effective functionality of a Record.
    If you want to walk through the process of taking a sample DB UDT, generating a .NET custom class, then passing an instance between DB and application, here's a tutorial that shows you how to do that:
    http://www.oracle.com/webfolder/technetwork/tutorials/obe/db/dotnet/userdefinedtypes/userDefinedTypes.htm

  • Case structure with more than 200 cases, slower lab view app

    Problem Description :
    i am currently making a vi which compose of a simple case structures, a case structure with more than 200 cases, what i noticed is that the more i added cases the slower the labview reacts, it takes time for me to route wire on each of the cases.
    i dont know if there are any setting in the labview environment that i can increase the buffer size? i dont know... but its getting slow (only on the
    vi with more cases in a case structure)
    mytestautomation.com
    ...unleashed the power, explore and share ideas on power supply testing
    nissanskyline.org
    ...your alternative nissan skyline information site

    Can you clarify what you mean by "slow". Does it run more slowly or does it feel sluggish during editing?
    Could you attach the actual VI?
     Overall, I agree with the notion of local variable overuse. For example, you read the same local variable twice in the same case. Is there a need for this? Is there a chance that it varies between the two reads? Typically, you would place the terminal in front of the case structure and wire to all the locations where you need the value. This ensures that the data is consistent. Still, this should not cause any slowdown problem.
    (On a sidenote, the code in the upper left corner is inefficient. You convert the same data to lower case with each iteration, so you might want to place this before the loop and do it only once (well, if you are lucky, LabVIEW will fold the operation, but still....). Also your "index array" operation can be replaced by autoidenxing of the 2D array on the outer loop boundary.)
    LabVIEW Champion . Do more with less code and in less time .

  • Anyone with more than one iPhone 6/6+ in same order getting there phones shipped if all your phones didn't have 9-19 when you ordered?

    Our Verizon account has 10 lines and I figure we're paying over $7,000 a year, when I think of how much money total we have payed to Verizon only to be jerked around and around and lied too over and over again really does make me sick.  6 of these contracts have ended and 3 will be up in next couple months and 1 has a year left so the cancelation fees would not be that bad. And with the other big carrier I've heard it might be cheaper on monthly service. All I wanted from Verizon was for them to do whats right.
    I Ordered
    iPhone 6 16gb  gray
    iPhone 6+ 16gb gray
    iPhone 6+ 64gb gray
    iPhone 6+ 64gb silver
    all on the same order. I finished at 3:19 am est and got a date of 10/14 even though all the phones except the 6+ 16 gb gray had 9/19. Got confirmation email at 4:56 will ship by 10/14 I got worried that all the phones would not ship till 10/14 and contacted verizon thru facebook messenger. They told me my phones would ship in the order received and not be held up by a phone that wasn't available in my order. And based on the time of my order she said 9/19 for the 6 and 6+ silver, 10/7 for the 6+ 64 gray , 10/14 for 6+ 16 gray. On Monday morning my status changed to 9/19:):) in the afternoon in changed to unknown. I called 611 and rep went thru all my phones with a time sheet she had and said i should get all but the 6+ 16 gray on 9/19, she said that one you had to order by 3:00 to get on 9/19. On Wednesday my status changed to 10/14 , called 611 again and this lady told me all my phones had 10/14 listed after them. She told me she didn't know  what to tell me that Apple ships the phones and its out of Verizon's hands because they don't have the phones. then she told me to call Apple (and gave me the phone # ) and see if they ship preorders with more than 1 in a order when their available or wait till all are. I called them ( they laughed that Verizon had me call them) and they don't hold up orders . Called customer service back and guy said at least 10 times ....I ASSURE YOU VERIZON WILL NOT HOLD YOUR PHONES!!!  i said of course they're not actually putting them in a box and waiting for all, they're sending them to other people who ordered after me. I asked him if my order could be separated/ rebuilt and do a (jump the line request)  so i could get my phones when i should. He said there is no such thing at verizon....he has worked there many years and if there was he would know. Someone posted # to Internet orders so i called them Thursday morning, spoke to a very nice guy he said my phones that i should get i would and i should get an e-mail later that day and if i didnt get anything by 8:00 pm to call back. Before we hung up i asked if I didn't  get anything did he know if they could cancel/separate/rebuild and do jump the line, he said they can do that and put me on hold while he spoke with a supervisor, he came back and said if nothing happened that day they would do that with my order. I got nothing, called Internet orders back at 8:30pm... went thru my history and asked them to do the rebuild. She transferred me to supervisor who REFUSED to rebuild my order, that is only for orders that have a technical error. She was also the first person from Verizon to tell me that they DO NOT  ship orders in multiple shipments, they will only send when everything is available. She then said your order was given a delivery date of before 10/14  and that's when you'll get all your phones. I let her know that there is nothing about that confirmation that tells me that the phones that I ordered that had 9/19 deliver by dates would not be delivered then, 9/19 is before 10/14.

    Same thing happened to me!!! They made a shady business move and they should be ashamed. Placed a pre-order for an Phone 6 and an iPhone 6 Plus at 2 AM on the 12th and got my pre-order in line just like everyone else did that morning. The 6 said delivery by 9/19 and the Plus was already back ordered to 10/7 but that's fine, I expected the Plus to be harder to get anyway. Being that both phones were eligible it made sense to just place one order given this hasn't been an issue in the past. However, Verizon moved my iPhone 6 pre-order delivery to coincide with the back ordered Plus so they don't have to ship each phone separately!!! I have to wait for something on backorder while the other is ready so they can save on shipping cost. I expected the one that I pre-ordered IN TIME FOR A 9/19 delivery and waited my turn "in (on)line" like everyone else I should get that when it told me that in the checkout, THEN send the Plus when it becomes available. I even have the confirmation email that says "Deliver by 9/19"!!!  Every company you order from sends you the backorder item when it becomes in stock, they don't wait and hold the entire order for it. WHAT A BUNCH OF CRAP!!!

  • Is there a stereo bluetooth headset that can pair with more than one device at a time?

    Is there a stereo bluetooth headset that can pair, i.e. multipoint, with more than one device at a time?
    Are the MacBook and iPhone 4 capable of multipoint bluetooth technoloagy?
    The goal is for my wife to be able to watch her Korean TV soap operas on her MacBook and still receive a call on her iPhone 4 via a stereo bluetooth headset.
    I was looking at the Motorola S10-HD but after further review saw that it only pairs with one device at a time.
    Appreciate any and all input. My Googling has returned no results.
    Rick

    TeslasBB wrote:
    pairing my BB8330 with my blue tooth earphone(TM:jawbone) and my microsoft sync thats in my car simultaneously? if i pair with the car, will i have to pair my jawbone all over again?
    You can only pair one device at a time to your 8330, or any other phone for that matter.  The "pairings" are saved to the phone, you can use one or the other and you won't have to pair it again.  Once you turn your bluetooth device on and the phone is on, they will find each other again.
    Hope this helps,
    John
    Stevie Ray! 1954-1990
    ** Don't forget to resolve your post with the accepted solution.

  • Can I use a magic trackpad with more than one Mac at a time?

    I am attempting to pair a MTP with a second MacBook Pro.  So far I can't get system preferences to find the MTP.
    I am wondering whether the MTP can be paired with only one Mac at a time, and that this is why my MBP won't find it.
    The reason I am thinking this is because the little booklet that comes with the MTP says 'after you pair your MTP with a Mac, you can pair it again with a different Mac.  To do this, you first remove the existing pairing and then pair the trackpad again'.
    Can anyone advise, please?
    If it can be paired with more than one MBP at a time, any suggestions why my system preferences search for the MTP is not producing any results?
    Thanks

    Yes, your keyboard, mouse or trackpad can be paired with multiple Macs.  You can even have multiple keyboards, mice or trackpads paired with one Mac.  The caveat is that the device can only be connected to one Mac at a time.  The device can't be paired or connected with a Mac while it's currently connected to another.
    Pairing a device with 2 Macs will be troublesome if the Macs are located within 33 ft of each other.  The device will connect with the first available paired Mac and then unavailable to the second.   If the Macs are located outside the 10meter range, it's quite easy to power off the keyboard (forcing a disconnect) then walking the keyboard to Mac 2 and powering the keyboard on.   I do this with a keyboard from my iMac to a Mac Mini in another room.
    Captfred

  • Error while running spatial queries on a table with more than one geometry.

    Hello,
    I'm using GeoServer with Oracle Spatial database, and this is a second time I run into some problems because we use tables with more than one geometry.
    When GeoServer renders objects with more than one geometry on the map, it creates a query where it asks for objects which one of the two geometries interacts with the query window. This type of query always fails with "End of TNS data channel" error.
    We are running Oracle Standard 11.1.0.7.0.
    Here is a small script to demonstrate the error. Could anyone confirm that they also have this type of error? Or suggest a fix?
    What this script does:
    1. Create table object1 with two geometry columns, geom1, geom2.
    2. Create metadata (projected coordinate system).
    3. Insert a row.
    4. Create spacial indices on both columns.
    5. Run a SDO_RELATE query on one column. Everything is fine.
    6. Run a SDO_RELATE query on both columns. ERROR: "End of TNS data channel"
    7. Clean.
    CREATE TABLE object1
    id NUMBER PRIMARY KEY,
    geom1 SDO_GEOMETRY,
    geom2 SDO_GEOMETRY
    INSERT INTO user_sdo_geom_metadata (table_name, column_name, srid, diminfo)
    VALUES
    'OBJECT1',
    'GEOM1',
    2180,
    SDO_DIM_ARRAY
    SDO_DIM_ELEMENT('X', 400000, 700000, 0.05),
    SDO_DIM_ELEMENT('Y', 300000, 600000, 0.05)
    INSERT INTO user_sdo_geom_metadata (table_name, column_name, srid, diminfo)
    VALUES
    'OBJECT1',
    'GEOM2',
    2180,
    SDO_DIM_ARRAY
    SDO_DIM_ELEMENT('X', 400000, 700000, 0.05),
    SDO_DIM_ELEMENT('Y', 300000, 600000, 0.05)
    INSERT INTO object1 VALUES(1, SDO_GEOMETRY(2001, 2180, SDO_POINT_TYPE(500000, 400000, NULL), NULL, NULL), SDO_GEOMETRY(2001, 2180, SDO_POINT_TYPE(550000, 450000, NULL), NULL, NULL));
    CREATE INDEX object1_geom1_sidx ON object1(geom1) INDEXTYPE IS MDSYS.SPATIAL_INDEX;
    CREATE INDEX object1_geom2_sidx ON object1(geom2) INDEXTYPE IS MDSYS.SPATIAL_INDEX;
    SELECT *
    FROM object1
    WHERE
    SDO_RELATE("GEOM1", SDO_GEOMETRY(2001, 2180, SDO_POINT_TYPE(500000, 400000, NULL), NULL, NULL), 'MASK=ANYINTERACT') = 'TRUE';
    SELECT *
    FROM object1
    WHERE
    SDO_RELATE("GEOM1", SDO_GEOMETRY(2001, 2180, SDO_POINT_TYPE(500000, 400000, NULL), NULL, NULL), 'MASK=ANYINTERACT') = 'TRUE' OR
    SDO_RELATE("GEOM2", SDO_GEOMETRY(2001, 2180, SDO_POINT_TYPE(500000, 400000, NULL), NULL, NULL), 'MASK=ANYINTERACT') = 'TRUE';
    DELETE FROM user_sdo_geom_metadata WHERE table_name = 'OBJECT1';
    DROP INDEX object1_geom1_sidx;
    DROP INDEX object1_geom2_sidx;
    DROP TABLE object1;
    Thanks for help.

    This error appears in GeoServer and SQLPLUS.
    I have set up a completly new database installation to test this error and everything works fine. I tried it again on the previous database but I still get the same error. I also tried to restart the database, but with no luck, the error is still there. I geuss something is wrong with the database installation.
    Anyone knows what could cause an error like this "End of TNS data channel"?

  • Finding of materials in scheduling agreement with more than 150 lines

    Dear Experts,
    we are in need to find materials in scheduling agreement with more than 150 lines. In standard SAP, materials can be searched only based on item Nos. is there a way we can search by material in ME38. also we noticed that find icon is greyed out in ME38.
    Please suggest.
    One more request is, to create an uplaod program for maintaining delivery schedules for multiple SAs.
    please sugegst if this is feasible.
    Regards
    Raghavendra MS
    9886138875

    I am also curious if anyone has found a solution to this problem.
    We routinely have scheduling agreements that are hundreds of line items. Users find it difficult to find the line item they wish to work with. It would be helpful if we could search by material number or sort the line items by material.
    As Raghavendra mentioned (ctrl+F) functionality is not available in ME33L or ME38.
    Thanks.

  • Send email from SAP with more than one attachment

    Hi all,
    How can i send email with more than one attachment and different types of document(doc,pdf,etc.) from SAP to external?
    Besr regards,
    Munur

    Hi,
    I use :
    CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
    the main problem with different attachemts is to genereate the packing_list.
    the packing list is a kind of description of the data table... where ist the start  of an image, end, size...
    "Creation of the entry for the compressed attachment
            objpack-transf_bin = 'X'.                    " it could be an image
            objpack-head_num = lv_head_num_count .  " inital 1 each att  add 1
            objpack-head_start = 1.                     " fix
            objpack-body_start = gv_startnum.    " table with attachments  1. line one
            objpack-body_num = tab_lines.          " how many lines are in the table of attachment
            objpack-doc_size = tab_lines * 255.   " size of the  attachment...
           objpack-doc_type = lv_typ . " 'JPG'.
            objpack-obj_name = 'ATTACHMENT'.
            objpack-obj_descr = lv_stripped_name  " name of the JPG
       APPEND objpack.
       APPEND LINES OF lt_goscontent TO gt_maildata.  " data Table...
    bestreg
    robert

  • By subscribing to Creative Cloud(Photoshop and Lightroom), does it come with more than one license, and is it possible to install it on both Windows and Apple(if it comes with two licenses)? Thank you.

    By subscribing to Creative Cloud(Photoshop and Lightroom), does it come with more than one license, and if it does, is it possible to install on both Windows and Apple's OX? Thanks.

    A Cloud subscription provides for installing working installations on two machines.  You can have mixed operating systems (both Windows and Apple's OX).

  • When I import a cd with more than one artist iTunes separates each individual artist - how do I get it to show the album as a whole rather than individual artist?

    When I import a cd with more than one artist itunes shows each artist's song separately and won't group the album as a whole - this is incredibly frustrating something that Windows media player doesn't do. Does anyone have a simple cure for this annoyance?

    Generally all you need to do is fill in an appropriate Album Artist. For more details see my article on Grouping Tracks Into Albums, in particular the topic One album, too many covers.
    tt2

  • After soak test update, I get error messages repeatedly. The majority are "unfortunately, messaging has stopped", but you can replace messaging with "android os", or any other process, as it happens with more than just messaging. I have had numerous peopl

    After soak test update, I get error messages repeatedly. The majority are "unfortunately, messaging has stopped", but you can replace messaging with "android os", or any other process, as it happens with more than just messaging. I have had numerous people call and ask why I didn't reply to their texts...and I look, but have not received any new texts. YES, I have restarted phone. I have cleared data as well as cache on all apps. I have downloaded the vzw messaging app, which seems silly, since it happens with several different processes and apps, but all to no avail. I am missing texts from my employer, from my family. This did happen, but rarely, before this "soak test". It is now Kitkat version 19.6.3.obake_verizon.en.US. THIS is when I started having problems...like 50 times a day kind of problems! I have seen hundreds of posts all over the internet over the past 3 days. Does no one know how to fix this??? Shouldn't there be a way to revert phone to a pre-update state? and no, hard reset did NOT work!!!! I have been with verizon for well over 15 years, but I have not upgraded my lines and will not in July either. This is ridiculous. It's not like my games aren't working, it is my messaging and "android os"...my lifeline at work!

    kristinaf333,
    Oh no, I am sorry to hear your messages are not working since the software update. I greatlly appreciate doing all that troubleshooting to try and get the messaging application back in business. I know how much I rely on my messages so I can understand the urgency to get this resolved. Have you had a resolution ticket opened since you started experiencing issues with your messages? Does this happen with all contacts or just some? Please provide additional information to ensure we get to the bottom of this for you.
    KarenC_VZW
    Follow us on Twitter @VZWSupport

  • I am upgrading to Calendar Server 4.0 on NT with more than 9 nodes (or I already have) and my server won't start

    I am upgrading to Calendar Server 4.0 on NT with more than 9 nodes
    (or I already have) and my server won't start.
    <P>
    The steps are the same whether you have already upgraded or are about to.
    <P>
    Calendar Server 4.0 on the Windows NT platform can only support up to nine
    nodes on one server, while 3.51 supported up to 14. If you have a Calendar
    Server 3.51 with more than 9 nodes that you want to upgrade to Calendar Server
    4.0, Netscape recommends that you migrate the extra nodes to another Calendar
    Server 3.51 on another Windows NT system. To accomplish this:
    <OL>
    <LI>Install Calendar Server on another Windows NT machine and configure it to
    use the same directory server as your current Calendar Server.
    <LI>Stop and backup your current Calendar Server.
    <LI>Individually zip up the node directories you want to move to the new
    server. (drive:\unsers\unison\db\Nx
    where "x" is the number of the node you want to use.)
    <LI>Stop the new Calendar Server.
    <LI>Unzip the files into the new Calendar Server in the same place as they
    were on the old server.
    <LI>Edit the unison.ini
    file on the new server to add the nodes you have just migrated.
    <LI>Edit the unison.ini
    file on the old server to remove the nodes you have moved to the new server.
    <LI>Edit the nodes.ini
    file on the old server to remove the nodes you just moved and then add them
    with the new hostname. Keep in mind that you will only be able to modify the
    node network from the old host.
    <LI>Run unidbfix -export
    on both servers for all nodes.
    <LI>Edit the remotenodes.ini
    file on both servers to reflect your node topology.
    <LI>Run unidbfix -import
    to import the changes into the node databases.
    <LI>Run unidbfix -c,
    then -f,
    then -c
    again on both servers for all the nodes.
    <LI>If you don't get any errors, run uninode -test all
    to test if your nodes connections are set properly. If they are not, <B>do not</B>
    start either of the servers; instead, fix the errors and try again.
    <LI>Start both servers.
    <LI>Log in and check to see if you can see people on remote nodes.
    <LI>Notify the users on the moved nodes of their new calendar host.
    <LI>If you did this in preparation of an upgrade, you can now run the upgrade to
    4.0 since both servers contain fewer than 9 nodes.
    </OL>

    Use Disk Utility whihc is in the Utilities Folder.
    Select your Boot Disk on the left.
    Select Verify Permissions
    If any errors the do Reapir permissions.
    You might have to repeat the process.
    see this:
    Steve

  • Can you sign in with more than one apple id on an iPad?

    Can you sign in with more than one apple id on an iPad?

    Only one account can be signed in at a time (via Settings > Store), and if you turn on automatic downloads and/or download past purchases from an account then you risk tying the iPad to that account for 90 days : http://support.apple.com/kb/HT4627

  • Why is all my icloud account linked with more than one apple id?

    why is my iphone 5 merged with more than one account?

    What do you mean by "merged with more than one account" and "linked with more than one Apple ID"?  What exactly are you seeing on your phone?

Maybe you are looking for

  • My CC crashes when I try to open any application

    My CC crashes when I try to open any application - this has been happening for about a week. I installed CC over two months ago and now I cannot use any of the creative suite applications. I don't want to uninstall becuase I am afraid I won't know ho

  • Solaris 10:unable to mount a solaris root file system

    Hi All, I am trying to install Solaris 10 X86 on a Proliant DL385 Server it has a Smart array 6i, I have download the driver from the HP web site, on booting up the installation CD 1, adding the device driver, it sees the device but now says it can��

  • Ssh has stopped working - reverse mapping causes segmentation fault

    This was working on Friday, believe me. I haven't done anything that I'm aware of (apart from reboot the machine) to change things, except in trying to fix it. Briefly, ssh crashes out with a segmentation fault and a crash log (below). Poking around

  • Exporting clips from one file

    I am trying to export clips in Quicktime format onto a cd for someone else to edit. I imported a sequence from FCE that appeared as one clip in iMovie 06. I split the clips. There are 32 separate clips now. I need to copy these onto a cd so that some

  • Weblogic and ADF for Jdeveloper 11.1.2.1.0

    Hi all, My Jdeveloper Version is 11.1.2.1.0 . We have developed application using the above version. Now for configuring the Standalone Production weblogic server , what version of weblogic  &  ADF Runtime  is required. I have gone through some sites