Documentation bug?

Is the documentation right when it states that the getKeyPartition mathod must be in the range [0..N), where N is the value returned from PartitionedService.getPartitionCount()? I would have guessed it should be in the range [0 .. N - 1]?
/Magnus

Hi Magnus,
With the set notation on the page linked by Rob, [0..N) and [0..N-1] are equivalent (for integers).
For example, if N=3 (partitions) then:
* [0..N) represents the set {0, 1, 2}
* [0..N-1] also represents the set {0, 1, 2}
Using your example, the code should be "xxx % PartitionedService.getPartitionCount()" (or an appropriate equivalent).
Of course, that same page also points out that ")" is rarely used with integer intervals. And I agree that it would be more clear to use the closed interval notation [0..N-1]. I'll enter an enhancement request for the javadoc.
Jon Purdy
Oracle

Similar Messages

  • Documentation bug- -Djava.security.policy==weblogic.policy?

    All,
    According to the documentation, an example of invoking weblogic server
    from the command line for JDK1.2 is as follows:
    JDK 1.2 (Java 2) example
    $ java -ms64m -mx64m -classpath c:/weblogic/classes/boot
    -Dweblogic.class.path=c:/weblogic/classes;
    c:/weblogic/license;c:/weblogic/lib/weblogicaux.jar;
    c:/weblogic/myserver/serverclasses
    -Djava.security.manager
    -Djava.security.policy==c:/weblogic/weblogic.policy
    weblogic.Server
    Is the property
    -Djava.security.policy==C:/weblogic/weblogic.policy
    correct in that there are 2 equals signs? Should this be rather:
    -Djava.security.policy=C:/weblogic/weblogic.policy?
    It seems as if either works, I just wanted to clarify, as I've noticed
    our startup scripts use the former and not the latter.
    Thanks,
    Ben

    Hi Ben,
    the doc is correct, there is a semantic difference between '==' and '=',
    check
    http://java.sun.com/j2se/1.3/docs/guide/security/spec/security-spec.doc3
    .html for details.
    Daniel
    -----Ursprüngliche Nachricht-----
    Von: Benjamin D. Engelsma [mailto:bengelsm@NO_SPAM.gfs.com]
    Bereitgestellt: Mittwoch, 4. April 2001 16:30
    Bereitgestellt in: environment
    Unterhaltung: Documentation bug->
    -Djava.security.policy==weblogic.policy?
    Betreff: Documentation bug-> -Djava.security.policy==weblogic.policy?
    All,
    According to the documentation, an example of invoking weblogic server
    from the command line for JDK1.2 is as follows:
    JDK 1.2 (Java 2) example
    $ java -ms64m -mx64m -classpath c:/weblogic/classes/boot
    -Dweblogic.class.path=c:/weblogic/classes;
    c:/weblogic/license;c:/weblogic/lib/weblogicaux.jar;
    c:/weblogic/myserver/serverclasses
    -Djava.security.manager
    -Djava.security.policy==c:/weblogic/weblogic.policy
    weblogic.Server
    Is the property
    -Djava.security.policy==C:/weblogic/weblogic.policy
    correct in that there are 2 equals signs? Should this be rather:
    -Djava.security.policy=C:/weblogic/weblogic.policy?
    It seems as if either works, I just wanted to clarify, as I've noticed
    our startup scripts use the former and not the latter.
    Thanks,
    Ben

  • Apex 4 JavaScript API documentation bug

    Hi,
    JavaScript API documentation have exactly same description for functions
    $f_Hide_On_Value_Item
    $f_Show_On_Value_Item
    >
    Checks an page item's (pThis) value against a value (pValue). If it matches, a DOM node (pThat) is set to hidden. If it does not match, then the DOM node (pThat) is set to visible.
    >
    And also functions have same description
    $f_Hide_On_Value_Item_Row
    $f_Show_On_Value_Item_Row
    >
    Checks the value (pValue) of an item (pThis). If it matches, this function hides the table row that holds (pThat). If it does not match, then the table row is shown.
    >
    I think that is not correct
    http://download.oracle.com/docs/cd/E17556_01/doc/apirefs.40/e15519/javascript_api.htm#CHDHIAJB
    Somehow I recall there has been post about this, but I can not find it.
    Regards,
    Jari

    The description of these functions have been corrected. The latest updated version of this document is now available on the Oracle Technical Network (OTN).
    Thanks for reporting the bug,
    Drue Swadener
    Principal Technical Writer

  • Documentation bug - "creating an about box" in wrong topic

    I think I found a small error in the documentation for LabVIEW 2012. Under the Index tab, find 3D Surface. For some reason, the topic "Creating an About Dialog Box for a Stand-Alone Application" is listed under it, even though it has nothing to do with the 3D Surface plot. See attached image.
    Solved!
    Go to Solution.

    Hi nathand,
    Thanks for the freedback. I will make sure this bug gets reported to the correct poeple and fixed.
    TimC
    National Instruments
    Applications Engineer

  • DOCUMENTATION BUG: Broken link in APEX 4.0 API Reference

    In the See also section of the <tt>apex_util.remove_preference</tt> method, the *"Managing Session State and User Preferences"* link is dead:
    olink:AEADM110|Managing%20Session%20State%20and%20User%20Preferences

    The broken lin in APEX 4.0 API Reference has been corrected. The latest updated version of this document is now available on the Oracle Technical Network (OTN).
    Thanks for reporting the bug,
    Drue Swadener
    Principal Technical Writer

  • APEX Documentation Bug: APEX_UTIL.CLEAR_PAGE_CACHE

    For APEX Team (documentation)..
    APEX_UTIL.CLEAR_PAGE_CACHE says the parameter is p_page when it should be p_page_id.
    Martin

    Martin - Thanks.
    Scott

  • Domain.Date / Documentation Bug??

    Hi,
    The documentation for addMonths() in domain.Date states that the method overrides addMonths() in sql.Date to return a domain.Date.
    It doesn't. It still returns a sql.Date.
    Am i wrong??
    Enjoy!!

    Hi
    The domain.Date:
    addMonths
    public DATE addMonths(int months)Adds months to a date. Overrides the oracle.sql.DATE method of the same name to return a Date Domain object.
    Returns:
    new Date object initialized to the Date value added to months. Months can be negative to perform month subtraction.
    See Also:
    "oracle.sql.DATE"
    package mypackage1;
    import oracle.jbo.domain.Date;
    public class Class1
    public Class1()
    public static void main(String[] args)
    Date date1 = null;
    Date date2 = new Date();
    date1 = date2.addMonths(1);
    Error(16,28): incompatible types; found: oracle.sql.DATE, required: oracle.jbo.domain.Date
    What am i doing wrong??

  • Order Item Specification Editor Property References Tab - Documentation Bug

    Hi,
    I am trying to create a cartridge with Order Transformation Manager entities. However I'm stuck with Property References tab of order item specification in 7.2.4 DS. I checked the documentation but its not completed it seems.
    http://docs.oracle.com/cd/E49311_01/doc.724/e41610/dscom_oi_edt_propref.htm#DSCOM142
    Check the above URL under "Dynamic Parameter Property"

    I notified the appropriate writer, who replied that the Dynamic Parameter Property description should read: "Select the order item property in which dynamic parameters for the order item should be stored."
    The fix will be included in the help for the next major release.

  • Documentation bug in Jdeveloper 10.1.3.1.0 Production Release

    When I want to edit the session Facade I've created in my project, I get a message-box :
    title = 'Invalid persistence unit'
    text = 'The persistence unit (null) used by this Session Facade was not found in any persistence.xml files.'
    When I click on the help-button to get more information about this message, the following message is shown
    title = 'Help is Not Available'
    text = 'Cannot find help content for help topic f1_ejb_sessfacade_invalidpersistunit_html

    I'm getting the same error:
    I've added a NamedQuery in my Entity EJB. When I try to Edit Session Facade, I get the above message.
    My apllication is still working , but i need that NamedQuery too.
    Could you give me any ideas?
    Thanks.

  • Documentation bug: ADF Guide for Forms / 4GL Developers

    In section 34.11.1, page 1048, step 3 of the instructions for switching Embedded OC4J to JDK 1.4 reference the ORACLE_HOME/j2ee/instance/application-deployments directory. However, in both 10.1.3 and 10.1.3.1, the application-deployment directory is found only under C:\jdevstudio1013\jdev\system\oracle.j2ee.10.1.3.36.73\embedded-oc4j (for 10.1.3)
    and C:\Jdevstudio10131\jdev\system\oracle.j2ee.10.1.3.39.84\embedded-oc4j (for 10.1.3.1).

    In section 34.11.1, page 1048, step 3 of the instructions for switching Embedded OC4J to JDK 1.4 reference the ORACLE_HOME/j2ee/instance/application-deployments directory. However, in both 10.1.3 and 10.1.3.1, the application-deployment directory is found only under C:\jdevstudio1013\jdev\system\oracle.j2ee.10.1.3.36.73\embedded-oc4j (for 10.1.3)
    and C:\Jdevstudio10131\jdev\system\oracle.j2ee.10.1.3.39.84\embedded-oc4j (for 10.1.3.1).

  • APEX documentation bug: Application Builder User's Guide

    Oracle® Application Express Application Builder User's Guide Release 4.0, chapter 12
    >
    Viewing Debug Deports
    >
    Should read "Viewing Debug Reports".

    Thank you for noting this. I've passed the information along to the Application Express writers.

  • After Effects CC documentation bug and question

    When you visit the page for AE CC to see if your Mac is eligible to run After Effects you go to:
    https://creative.adobe.com/products/aftereffects
    You are told
    Optional: Graphics card from list below with at least 1GB VRAM and CUDA 5.0 for GPU acceleration of ray-traced 3D renderer
    But there is no list below. It just switches to talking about the PC.
    Can someone tell me which Graphics cards for the Mac are best to utilize the 3D ray-tracer in AE?
    Thanks!

    The effect on render time depends entirely on the project. Temporal effects require CPU, particle effects require Ram, source footage that uses a codec that is hard to decompress line all mpeg formats load up the CPU, rendering large frame sizes may bog down the whole render if the pipeline to the destination disk is plugged up or the disk is slow. Personally I would say that once the minimum ram for your largest average project size is met, for my that is 4GB per core, CPU speed is the first consideration, then, GPU last.
    Right now the only major consideration for me when considering a GPU purchase is compatibility with the Mercury playback engine used by Premiere Pro and it's inclusion in the approved for my 3D apps list.
    My careful assessment of hardware requirements for the purchase of my new Mac Pro led me to the 8 core with 32GB and the D700 GPU because I could not find enough value in the nearly 30% price difference for the 12 core 64GB setup considering my projected work load for the next 2 years. If I end up doing larger resolution projects or Adobe significantly changes the way After Effects handles MP rendering I can always trade in for more capable system. Macs retain enough of their value that this was the best business decision. I'll use the savings for more storage and a couple of new plug-ins.
    I hope this helps you make an intelligent business decision on your hardware purchase.

  • Documentation bug/typo in Apex 4 workspace export

    To someone on the Apex dev team:
    I just did a workspace export from Apex 4, and noted the following remark near the top of the generated file:
    This script can be run in sqlplus as the owner of the Oracle Apex owner.I can't make any sense of that statement. I know I can run the script as SYS, and perhaps as a used with the APEX_ADMINISTRATOR_ROLE, but I'd like the generated text in the script to be corrected/clarified.
    Thanks!
    - Morten
    http://ora-00001.blogspot.com

    Bump.
    - Morten
    http://ora-00001.blogspot.com

  • Is this a bug in the intensity map cursor?

    I'm using LabVIEW 7.1 on Windows 2000. When I pan an intensity graph, it jumps around. If there is a curosr over the map, the cursor does not jump with the map and can lead to the cursor reading from the wrong pixel. I've attached a vi that demonstrates my problem. Is this a known bug?
    Attachments:
    buggy-cursor.vi ‏707 KB

    Excellent work on the example VI! This is not a documented bug to date, but I was able to reproduce the unexpected behavior you were talking about. I will pass your example on to our R&D department to investigate and to take corrective action if necessary. Thank you so much for your feedback and hard work.
    Eric Sulzer
    Applications Engineer
    National Instruments
    http://www.ni.com/ask
    E. Sulzer
    Applications Engineer
    National Instruments

  • Data Guard Logical Standby Skip Handler bug

    Does anyone know of a documented bug concerning the skip handler not skipping a grant on a view in a schema with a SCHEMA_DDL skip handler defined?
    Here is my test case.
    On Primary:
    Create table scott.junk (x number) tablespace users; (created successfully on logical standby)
    On logical standby:
    exec dbms_logstdby.skip('SCHEMA_DDL','SCOTT','%'null,true,'\'); (created skip handler on all SCOTT objects)
    On Primary:
    grant select on scott.junk to public; (successfully skipped due to missing object)
    On Primary:
    create view scott.v_junk as select * from scott.junk; (successfully skipped on logical standby)
    On Primary:
    grant select on scott.v_junk to public; (received 'ora-00942 table or view does not exist' on logical standby and SQL Apply stopped).
    I'm running version 10.2.0.4 but have not applied the recommended patch bundle for logcal standby #7937113.8.
    If anyone knows whether this has been documented or not, please let me know. If not, I will submit an SR to get this documented.
    Thanks,
    Michael Anderson
    OCP - Bank of the West

    When I look at the syntax for the package
    http://www.morganslibrary.org/reference/dbms_logstdby.html
    what I see is:
    dbms_logstdby.skip(
    stmt        IN VARCHAR2,
    schema_name IN VARCHAR2 DEFAULT NULL,
    object_name IN VARCHAR2 DEFAULT NULL,
    proc_name   IN VARCHAR2 DEFAULT NULL,
    use_like    IN BOOLEAN  DEFAULT TRUE,
    esc         IN CHAR1    DEFAULT NULL);So looking at your code:
    exec dbms_logstdby.skip('SCHEMA_DDL','SCOTT','%'null,true,'\'); (created skip handler on all SCOTT objects)
    'SCHEMA_DDL' is your statement.
    'SCOTT' is your schema name.
    '%' indicates all objects
    and ... shouldn't there be a comma before the NULL?
    In the future don't provide values where the default's will suffice. It makes thing's far simpler.

Maybe you are looking for