Multiple layer of group by

hello all:
I learned how to use coherence Aggregator functions, this is an example:
GroupAggregator aggregator = GroupAggregator.createInstance(prop, new BigDecimalAverage(target));
Map<Object, Object> ret = aggregate(filter, aggregator);it works fine, the problem is that if I want to group by on more than one property, what is the best practise? Say, I want to group by on "date" and "currency", to figue out the average of "cash", and what is the proper data structure to hold the result?
Thanks,
John

Johnny_hunter wrote:
Robert: Thanks for the response. You are right, my aggregate method threw an exception showing I was wrong using DecimalSum ( or other Decimal-prefix aggregation)
java.io.IOException: decimal value exceeds IEEE754r 128-bit rangeI was wondering why this exception go silent until I used a try/catch block around the suspicious code? Is it a runtime exception or checked exception?
Thanks,
JohnHi John,
It is a checked exception, but exceptions from serialization are wrapped into a RuntimeException because the NamedCache methods do not declare checked exceptions, as any exception occuring during those methods indicate abnormal conditions.
In this case, you were trying to use a BigDecimal which could not be represented with 128bit. There is a problem that you are not able to substitute your own serializers for BigDecimal and BigInteger at the moment because they are handled as special cases, thus you cannot provide a serializer which would not be restricted by using the POF T_DECIMAL128 and T_INT128 types which POF uses for BigDecimal and BigInteger.
I filed an improvement request filed for it a while ago which got the JIRA id COH-5308 and which when implemented would allow you to use your own PofSerializers for BigDecimal and BigInteger, but I believe it is not implemented/released yet and I believe it is not scheduled for 3.7.x.
As your test shows, some other out-of-the-box functionality which cannot be worked around (out-of-the-box BigDecimal aggregators) is hindered by it, so it makes it a bit more serious than just not being able to transmit user created BigDecimals, so if you file a service request to release the fix for COH-5308 in a patch to 3.7, you may be able to get it. But don't take that as a promise, that is just my opinion that if you have an actual use case for it, it may raise the prioritization of it.
It is possible to override type resolution for objects so you could plug in your own ConfigurablePofContext subclass instead of ConfigurablePofContext which handles these two classes as a special case before falling back to the super implementation but it would be a bit less performant than if Coherence handled it on its own without an additional method delegation.
Best regards,
Robert
Edited by: robvarga on Apr 18, 2012 4:19 PM
Edited by: robvarga on Apr 18, 2012 4:23 PM

Similar Messages

  • How can I send a message to multiple contacts using "groups".

    How can I send a message to multiple contacts using "groups".
    It was easy on my sony ericssonn....do i need to download an app?

    There is no group send option like you are looking for.
    To send to a group you have to pick each person you want to send to and send as a group that way. Then don't delete that SMS thread and you can reuse it again later.
    As for an app, well SMS works via your carrier and the OS, not something an App can do unless the app send the data to them (a third party) and then they relay it to the carrier. Do you really want to be sending your SMS to some 3rd party first?

  • Replication of Customer from ECC to CRM --- Multiple A/c Groups

    Hi Experts,
    I am trying to replicate customer master data from ECC6.0 to CRM7.0 and vice versa. Replication is up and running right now for only one Account Group (GEN-Z created for business) in ECC.This A/C Group (GEN) is mapped to BP Classification "Customer" in PIDE.
    Now, I want to replicate customers with 5 other A/c  groups to CRM as well. In PIDE, I have maintained a total of 6 entries for a/c groups to classifications (ECC to CRM). All 6 A/c groups are mapped to "Customer" classification.
    This "customer" classification generates customers in role "Sold-to-party". For STP role mandatory fields have been matched to GEN A/c Group.
    My main issue is how do I make sure there is no mismatch of customer fields in ECC and CRM as All other a/c groups that have also been mapped to the same "Customer" classification in the same way as A/c Group GEN. Problem would crop up because, there are diff set of fields kept mandatory for different a/c groups.
    From CRM to ECC, I can select the relevant a/c group from "Classification" tab in role Sold-to-party.
    But, there would be the same problem of mismatch of mandatory fields between Sold-to-party and all other a/c groups.
    Is there a solution to this problem. How can I make sure replication works for multiple A/C Groups too.
    Thanks and Regards
    Varun Taneja

    Hi Robert,
    I read that in some other post too, it worked for someone. But here it is, I would like some advice from you...
    Suppose, I have 2 A/c Groups... X and Y, both with different mandatory field settings in ECC.
    Now, In BP field grouping on CRM side, I have made field settings(mandatory etc.) according to X A/C group. So when I select, X from classification tab during BP creation, replication would be successful.
    And, if I select Y from classification tab, it would give an error "Fill in required mandatory fields" since fields have not been synchronized with Y. How can I take care of this issue.
    Also, for ECC to CRM, how do I select multiple classifications, it doesn't allow for more than one entry for one classification.
    I hope I am clear about my requirement.
    Please share your feedback.
    Thanks and Regards
    Varun Taneja

  • Photoshop CC 2014 hangs for nearly 15 seconds when using Layer Group Layers or Layer Palette Group from Layers commands.

    Photoshop hangs for nearly 15 seconds when using Layer > Group Layers or Layer Palette > Group from Layers commands. NOT on creating new group and creating layers and drag-n-dropping layers into group manually in Layer Palette. Got a UI design file with nearly 800 layers and lot of groups. This doesn't occur in smaller files. Using OS X Mavericks, Photoshop CC 2014.2.2, Mid 2014 15-inch Retina Macbook Pro.
    I understand that the solution would be just to cut the file into smaller files and design each UI view in a separate file but that would be painful. And it does not seem to be a very hard task to just group layers.

    Does the document also have a lot of layer comps?
    And can you post that document or send me a copy of it so we can see exactly why it is hanging?

  • I suggest maintaining the "Layer" and "Group" concept as in Photoshop

    Another one I see many people asking about is the ability to "Name" the boxes. Box. Box, Box, Box, is not too intuitive.
    I am also going to suggest maintaining the "Layer" and "Group" concept as in Photoshop to soften the learning curve for new users.
    I currently have boxes that are NOT grouped, but behaving like a group if I try to move them. Kinda frustrating.

    You can double click on a Div in the DOM panel to rename any 'layer' or 'group'
    You can also degroup and regroup grouped elements by clicking on the little grouped icon which might be why your group isn't behaving like a group.

  • Since Last CC Update Photoshop has lost the ability to CTRL click on layer within group??

    Weird little glitch is happening since the latest update of CC. Can anyone else confirm that they are having this issue:
    1. Create a group with a bunch of different layers
    2. Select any tool (besides the direct selection tool)
    3. Now press CTRL to try and select a layer and move it within the group.
    You will notice that it moves the whole group and not just the selected layer...it does not select the layer. My Direct Selection Tool is set to "Layer" not "group"....so that is not the issue here.
    This is annoying...does adobe know about this?

    Okay, found the fix.
    With the Move tool selected, go to the Options toolbar at the top (below file menu) and change the drop down menu to Layer instead of Group. Voila!

  • Can one apple ID belong to multiple family sharing groups?

    I'm interested in starting a family sharing group with my siblings (surprise).  They have children of their own, however, so if I invite them to my new group, will they also be able to create a different group for themselves with their children?
    My thought is that my siblings can more easily share information and photos.  I wasn't interested in approving app purchases for their children however so I thought they could create a separate group with their same parent ID for themselves with their children.  If I'm thinking of this right, and ID needs the capability of belonging to multiple groups.  Is that possible?
    Thanks kindly.
    Bill

    Hi Mdbarnharts, 
    Thanks for visiting Apple Support Communities. 
    It sounds like your family members are using the same Apple ID to share purchases, and now you're receiving messages sent and received by your kids. 
    You can set up and manage Apple IDs for your children through the Family Sharing feature. 
    You can find more information about Family Sharing and setting up an Apple ID for your kids at these resources:
    Start or join a family group using Family Sharing - Apple Support
    Family Sharing and Apple IDs for kids - Apple Support
    All the best,
    Jeremy 

  • How do I use just 1 click with move tool (command v) to select layer within group?

    I'm on Snow Leopard 10.6.8, Photoshop CS3 10.0.
    Is there a way to click just once with "command V" to select a layer within a group?
    I used to be able to do it, and on my laptop I can do it now (same OS and Photoshop) but the mac I use for my design work won't do it...I have to also right click and select the layer that is highlighted. I have a many multilayered Photoshop document with lots of groups, and it's an extra time consuming step.
    Is there some preference I can turn on? Or some other simple keystroke?
    Thanks so much!

    Glad I could help, Emily

  • Need for multiple ASM disk groups on a SAN with RAID5??

    Hello all,
    I've successfully installed clusterware, and ASM on a 5 node system. I'm trying to use asmca (11Gr2 on RHEL5)....to configure the disk groups.
    I have a SAN, which actually was previously used for a 10G ASM RAC setup...so, reusing the candidate volumes that ASM has found.
    I had noticed on the previous incarnation....that several disk groups had been created, for example:
    ASMCMD> ls
    DATADG/
    INDEXDG/
    LOGDG1/
    LOGDG2/
    LOGDG3/
    LOGDG4/
    RECOVERYDG/
    Now....this is all on a SAN....which basically has two pools of drives set up each in a RAID5 configuration. Pool 1 contains ASM volumes named ASM1 - ASM32. Each of these logical volumes is about 65 GB.
    Pool #2...has ASM33 - ASM48 volumes....each of which is about 16GB in size.
    I used ASM33 from pool#2...by itself to contain my cluster voting disk and OCR.
    My question is....with this type setup...would doing so many disk groups as listed above really do any good for performance? I was thinking with all of this on a SAN, which logical volumes on top of a couple sets of RAID5 disks...the divisions on the disk group level with external redundancy would do anything?
    I was thinking of starting with about half of the ASM1-ASM31 'disks'...to create one large DATADG disk group, which would house all of the database instances data, indexes....etc. I'd keep the remaining large candidate disks as needed for later growth.
    I was going to start with the pool of the smaller disks (except the 1 already dedicated to cluster needs) to basically serve as a decently sized RECOVERYDG...to house logs, flashback area...etc. It appears this pool is separate from pool #1...so, possibly some speed benefits there.
    But really...is there any need to separate the diskgroups, based on a SAN with two pools of RAID5 logical volumes?
    If so, can someone give me some ideas why...links on this info...etc.
    Thank you in advance,
    cayenne

    The best practice is to use 2 disk groups, one for data and the other for the flash/fast recovery area. There really is no need to have a disk group for each type of file, in fact the more disks in a disk group (to a point I've seen) the better for performance and space management. However, there are times when multiple disk groups are appropriate (not saying this is one of them only FYI), such as backup/recovery and life cycle management. Typically you will still get benefit from double stripping, i.e. having a SAN with RAID groups presenting multiple LUNs to ASM, and then having ASM use those LUNs in disk groups. I saw this in my own testing. Start off with a minimum of 4 LUNs per disk group, and add in pairs as this will provide optimal performance (at least it did in my testing). You should also have a set of standard LUN sizes to present to ASM so things are consistent across your enterprise, the sizing is typically done based on your database size. For example:
    300GB LUN: database > 10TB
    150GB LUN: database 1TB to 10 TB
    50GB LUN: database < 1TB
    As databases grow beyond the threshold the larger LUNs are swapped in and the previous ones are swapped out. With thin provisioning it is a little different since you only need to resize the ASM LUNs. I'd also recommend having at least 2 of each standard sized LUNs ready to go in case you need space in an emergency. Even with capacity management you never know when something just consumes space too quickly.
    ASM is all about space savings, performance, and management :-).
    Hope this helps.

  • [solved] Pulseaudio, multiple users, audio group?

    Hello!
    I'm trying to get pulseaudio working for multiple users. According to the pulseaudio documentation, no user should be in the audio group which should theoretically make it work. I think I've also seen that information in a file distributed with the official archlinux package somewhere... But without users in that group, I'm not getting any sound at all.
    $ ls -l /dev/snd
    total 0
    drwxr-xr-x 2 root root 60 5. Okt 23:13 by-path
    crw-rw----+ 1 root audio 116, 7 5. Okt 23:13 controlC0
    crw-rw----+ 1 root audio 116, 6 5. Okt 23:13 hwC0D0
    crw-rw----+ 1 root audio 116, 5 6. Okt 21:12 pcmC0D0c
    crw-rw----+ 1 root audio 116, 4 6. Okt 21:11 pcmC0D0p
    crw-rw----+ 1 root audio 116, 3 5. Okt 23:15 pcmC0D1p
    crw-rw----+ 1 root audio 116, 2 5. Okt 23:13 pcmC0D2c
    crw-rw----+ 1 root audio 116, 1 5. Okt 23:13 seq
    crw-rw----+ 1 root audio 116, 33 5. Okt 23:13 timer
    That should - according to pusleaudio docu - mean, that HAL and/or polkit will be handling user switching & stuff but it can be overridden by the audio group...? Well it does not seem to be working that way.
    So... where do I start? Can't find any relevant information... everything on the subject seems to be either obsolete or just not working...
    Thanks!
    Last edited by whoops (2012-11-03 13:21:52)

    I log into a tty and let xfce handle the rest. Which means the first user's X gets started by startxfce4, the second user by xinit + xfce4-session (because I don't know how to make startxfce4 use another display).
    I thought those two should handle everything correctly? I took a look at the sources a while back - looked pretty complicated to me: the scripts were checking for the status of needed stuff + trying to launch everything correctly.
    But I'll try it manually again next time I get to it to make sure, that ck-launch-stuff is really handled correctly. Thanks for the hint!
    Last edited by whoops (2012-10-08 07:22:51)

  • Apex Charts - Pass Multiple Variables & Using GROUP BY

    Hi, I'm using Apex 3.2.1 and have generated a chart with the following query -
    select NULL link, PROXY label, count(*) value
    from "INVENT_OWNER"."LMT_SPACE_EMAILS"
    where RESPONSE = 'NO'
    group by PROXY
    This works fine.
    I now want to link the 'PROXY' column to a new page but I can not get the query correct even if I use Apex to generate the chart query.
    Apex generates it as -
    select 'f?p=&APP_ID.:4:'||:app_session||'::::P4_REF,P4_PROXY:'||REF||','||PROXY||':' link, PROXY label, COUNT(REF) value
    from "INVENT_OWNER"."LMT_CHECKS"
    group by PROXY
    but this will not parse and I get the error 'ORA-00979: not a GROUP BY expression'
    Can anyone please help ?
    Thanks in advance

    I am currently working on my first chart creation in apex 4.
    I am creating a 3D bar chart that shows the '%Complete' by Project and by Task by Project Title.
    There is one Project for Project Title but there can be multiple Tasks for each Project Title.
    My first series is called project -- and the series query is:
    SELECT NULL LINK,
    "F**"."PROJECT_TITLE" LABEL,
    "F**"."%_COMPLETED" VALUE
    FROM "F**"
    where "F**"."PROJECT_LEVEL" = 'Project'
    This works fine and returns the % complete for each Project.
    But for the next series I use the series query below and it only returns one Task - even if there are mutiple tasks for the Project Title.
    SELECT NULL LINK,
    "F**"."PROJECT_TITLE" LABEL,
    "F**"."%_COMPLETED" VALUE
    FROM "F**"
    where "F**"."PROJECT_LEVEL" = 'Task'
    How do I show multiple tasks on the graph for each Project Title?
    Thanks,
    Joan

  • Multiple Network Device Groups when importing to ISE using template

    I have a question about importing a group of network devices into ISE using the template provided. The template only has a single column for Network Device Groups - is there a way to import devices and include more than one NDG? For instance, the NDG's we use are "Device Type" and "Location". I'd like to include both when doing my import and I've tried multiple ways to seperate the two strings within the column (comma's colons, semi-colons, spaces, pipes, tabs, etc), but i always get an error message that "NDG group does not exist". I also tried adding a new column into the template, but that just plain failed to import.
    If there is any way to do this, I would appreciate any advice on how - I have to add about 40 devices per week to our ISE deployment and I'd rather not have to go in and add any parameters manually if it can be helped. Thanks very much!
    Ross
    BTW, we are running ISE ver 1.1.2 in case it is relevant.             

    Yes, you can do it. You have to use the pipe "|" to separate the groups. But please notice you must create the network device groups in advance.
    For example, I have the following groups in my csv file to import a lot of network devices
    Device Type#All Device Types#SWITCHES#375O-X|Location#All Locations#PERU#LIMA
    But as a pre-requisite I have to create the network device groups.
    If you have lots of network device groups, you can mass import them instead of creating them one by one.
    Please rate if it helps

  • New Document with Layer Comp & Groups Link ?

    I'd like to create a script that creates a new photoshop document that automatically creates a set of layer comps with specific names that are linked with groups with identical names or the same name. I don't know whether to create this in Adobe Configurator but since I want to create a 'new' document that does this automatically I don't know if Adobe Configurator is the best route to go ?
    An added bonus it would be benifical to select the layer comp, and save only the selected layer comp or an option to save the entire composition or a layer comp.

    What good are Layer Comps that show Groups if one is to add Layers only
    later on or should Layers in the Groups be created right away?
    In Photoshop when you create a new document File -> New it would create the following layer comps and layer groups.
    The layer comps would be linked to the layer groups with the same name or identical name if allowed, for example if the Layer Group name is not Layer Comp A, rather CompyDesignA the script would know to still link it to Layer Comp A.
    I don't know how many layers I would add to the layer group so the script wouldn't create these layers, the script would then export the layer comp with the selected layer group.
    For example, I select Layer Comp A which is tied to the Layer Group, Layer Group A / or similiar name if I select the layer comp Layer Comp A it would know to save only the Layer Group 'Layer Group A / or similar name' automatically, with the option to save the entire composition with all layer comps and all layer groups, understand ?
    I suppose that upon creating the new composition/document each layer group would have a layer created called 'background' and the first layer created above that background layer would have a screen blend mode applied, automate the task.

  • Unable to create multiple transport target groups in SLD

    We have multiple R/3 QA systems but just 1 XI QA system and we need to test interfaces with all R/3 QA client at the same time. My XI development team has asked to explore whether its possible to create multiple target systems.
    Currenlty R3_dev has R3_QA1 as target business system, we would like to add R3_QA2 as target system for R3_dev.
    There is a "add/change" option in Transport tab and there is a grid which seems to imply that multilple entries are possible.
    I have added R3_QA2 to the Group "Qa_Bus_Group" and was able to  replace
    R3_QA1  with R3_QA2 however I was unable to create multiple target systems.
    I was wondering if anyone ran into this issue and any suggestions are welcome. Thanks in advance.

    Hi Syed,
               You can create multiple target systems only for different business system groups.If all the business systems like R3_QA1,R3_QA2, R3_QA3 belong to the same business group "QA_BUS_GROUP" , then you can have only one among the three system as target.
               So R3_DEV  can have only one system as target either R3_QA1 Or R3_QA2 or R3_QA3 since they belong to the same business group "QA_BUS_GROUP".
                If there are three different business system groups then you can have 3 target systems that correspond to their respective business system groups ,in this case source business system can be assigned to the 3 target systems that belong to different business system groups .
               Since that is not the case with your scenario, you cannot create multiple target systems.
    Regards,
    Laawanya

  • Single or separate users owning multiple Oracle Resource Groups?

    Being an infrastructure DBA, I have a question which I'm trying to sort out with my sys admin:
    - We're trying to setup multiple Oracle 11g (non-RAC) instances on a two-node Solaris 10 cluster.
    - each 'database' would have its own resource group, filesystem, binaries, and listener
    - In order to fully separate the two instances, the SA actually gave us two different oracle accounts to control each resource group.
    ie. a different oracle user (ie. oracle1, oracle2, oracle3) owns each resource group (/rg1, /rg2, /rg3)
    - to patch/startup/shutdown each instance, we have to login as a separate user
    - no user can run/touch the other's files (they're in completely different groups (dba/oinstall, dba2/oinstal2, dba3/oinstal3)
    - to run patch/installing, we use a separate inventorypointer flag which points to that particular db's oraInventory (ie. ./runInstaller -invPtrLoc /var/opt/oracle/oraInst.loc.<resource_group_name>)
    I asked why couldn't one user own all resource groups, and was told:
    ...Oracle uses the shared memory, semaphores and queues to exchange information. Each IPC object has an identifier and access information, similar to files (owner, ,group, mode). If you use the single oracle account in different RGs, you or system might accidentally destroy the IPC object which belongs to other Resource Group.
    Is this true? I could have sworn I've seen other solaris setups (albeit with Veritas Resource Groups) setups which have multiple resource groups owned/managed by a single oracle user, but I don't know enough about semaphores and shared memory to truly understand his argument.
    The way I was hoping to work would be:
    - a single oracle user owning several resource groups
    - each resource group mapping to a filesystem tree, ie:
         /home
              /oracle
         /rg1
              /opt
                   /oracle
         /rg2
              /opt
                   /oracle
         /rg3
              /opt
                   /oracle- shared /var/opt/oracle/oratab
    - to switch between instances, the oracle user simply does the same '. oraenv' command as regular.
    I understand it can be done, just that I need something to counter my SA's argument that there would be potential IPC/shared memory/semaphore collisions.

    I've marked the question as answered, to a degree: I can agree that there are successful implementations out there with one person running multiple solaris zones, I just couldn't explain it to the SA in an articulate manner. I've gone to Oracle Metalink with a service request and will post references to the notes that the support person gave me on the subject. It's good for research in this area:
    Note 15654.1 TECH: Calculating Oracle's SEMAPHORE Requirements
    Note 70688.1 Location and Display of kernel parameters - Solaris
    Note 33244.1 SOLARIS: Shared Memory and Semaphore Kernel Parameters on Solaris (SPARC) Servers
    Note 153961.1 Semaphores and Shared Memory - An Overview
    We've ruled out local zones at the time, for other implementation reasons. What I think we're looking at is the trade-off between Sysadmin's management complexity (separate zones) and DB Admin's management complexity (separate users).

Maybe you are looking for

  • 13inch VS 15inch For College

    Ok guys so I am going to college soon and I dont know what Mac I should get... This is going to be my first mac. This is my preference: Macbook Pro 13inch: 2280$ after tax and student discount dual core i7 512GB hard drive 16GB RAM Macbook Pro 15inch

  • SubTabLayout problem with PPR (bug?)

    Hello, I'm using JDev10.1.2 and found out that subTabLayout does not respond to the partial page rendering (PPR) as one would expect. In my example there is simple subtabs switching that does not renders both subtabs, only upper one is changing. Corr

  • Color Settings & Printing

    Hi guys, is there any difference when printing if my images are in CMYK in different colour modes? I will be printing in Spain and i would like to know if there is one more suitable than other. For example, US Web Coated or Japan Color 2001. Any idea

  • Prodcution support doubt?

    hai i have doubt that we do process chain monitoring.if problmes comes and we want to do correction manually , to which screen we should go Plz let me know secreen shots of that step by step. bye srinu

  • Find a Pathname to an external drive

    Hallo to you all! I am using MAVERICKS on a Mac. One of my disk-drives is an external drive (Promise), which is connected via Tunderbolt. How can i find the complete, pathname (i will copy via terminal!) to copy files from my home-dir on the internal