several layer of Group of

Hi all:

I learned to use the aggregator of coherence, it 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 practice? Say, I want to group by 'date' and 'currency', the fig, the average of the 'species', and what is the appropriate data structure to hold the result?

Thank you
John

Hi John,.

Assuming that your value object has attributes: salary, age, State; using aggregator of group, you can find the group average according to the age and condition as below:

Aggregator of GroupAggregator = GroupAggregator.createInstance (new MultiExtractor (new ValueExtractor [] {new ReflectionExtractor ("getState"), new ReflectionExtractor ("getAge")}), new BigDecimalAverage("getSalary"));
Object result = cache.aggregate (AlwaysFilter.INSTANCE, aggregator);

I hope this helps!

See you soon,.
NJ

Tags: Fusion Middleware

Similar Questions

  • Gel layer in group folders

    I would freeze a layer of control. This layer is sometimes repeated several times and can also be within many subfolders in layer groups.

    Currently, it is not a recursive function and I don't know how to add a.

    This is what I currently have

    if(app.documents.length>0){
        app.activeDocument.suspendHistory ('Hide Check Layers', 'HideCheckLayers()');
    }
    function HideCheckLayers(){
      var doc = app.activeDocument;
      var hideLayer = "Check Layer"; // Layer name to freeze
    
      for (var i=0; i < doc.artLayers.length; i++){
      if(doc.artLayers[i].name==hideLayer){
      doc.artLayers[i].visible = false;
      }
      }
    }
    

    Make these changes:

    #target photoshop
    if(app.documents.length>0){
            var doc = app.activeDocument;
            app.activeDocument.suspendHistory ('Hide Check Layers', 'HideCheckLayers(doc)');
        }
        function HideCheckLayers(lay){
          var hideLayer = "Check Layer"; // Layer name to freeze  
    
          for (var i=0; i < lay.layers.length; i++){
              var currentLayer = lay.layers[i]
              try{
              if(currentLayer.layers.length>0){HideCheckLayers (currentLayer)}
              }
          catch(e){}
          if(currentLayer.name==hideLayer){
         currentLayer.visible = false;
          }
          }
        }
    
  • User in several Windows/ACS group. Deny a permit

    I have several groups on ACS each tied to a group of AD windows.

    I have a VPN concentrator and a wireless Lan controller.

    I use ACS to authenticate access to the time, but I would like some VPN users have wireless users too, not all.

    If I use NAR to limit the "VPN users" to access WLC device all users with access to the VPN is not wireless, even those who are in the wireless group.

    Is - it there anyway to operate?

    This is how it works.

    Lets say you have three different groups on ad for NetworkAdmin, RouterAdmin,.

    Wireless.

    Go to the external user database == database group mappings == Windows NT/2000 == select the field

    to which you log == Add mapping.

    Select the ad NetworkAdmin group and ciscosecure Group 1 card select the ad RouterAdmin group and map it to ciscosecure Group 2

    Select the ad wireless Group and map it to ciscosecure Group 3

    Mappings of working groups in the order in which they are defined, first set up mapping is

    considered first and then second, third and so on. If a user is in AD Group NetworkAdmin and

    which is mapped to the ACS 1 group and it's the first configured mapping is

    First of ALL (if there is a user in the Group NetworkAdmin, it is always mapped to ciscosecure

    1 and NO further mappings for this user group is enabled and the user is authenticated or

    rejected)

    Scenario: If you have a user called cisco, group NetworkAdmin, cisco1 in RouterAdmin

    Group and cisco2 wireless. They will be always dynamically mapped to group 1, 2 ACS

    and 3 respectively as above mappings.

    You can see the mappings on authentication passed to users as to which group are

    they are mapped to.

    SCENARIO:

    Now if you want a NetworkAdmin user to authenticate to the NetworkAdmin devices and not

    devices or wireless RouterAdmin you should apply NARs for Group 1 because

    NetworkAdmin users connect to this group. Which will allow you access on the Group

    basis for a particular NetworkAdmin NDG or NetworkAdmin individual NAS device.

    NOTE:

    If you are applying NARs for VPN or wireless devices, you must configure two IP

    Base AND CLI/DNIS founded together as NARs were originally designed for cisco IOS for

    routers and switches.

    IMPORTANT: If a user authenticates successfully to the database AD once, his user name is cached on the database of ACS (NOT password) the only way to remove the previously cached user name is to go to usersetup find this user and manually remove it.

    ACS will not support the following configuration:

    * A user active directory which is a member of the 3 AD groups (groups A, B and C) * 3 people

    groups are mapped within FAC as follows-> A Group1, Group2-> B and group 3-> C.

    * The user is in the 3 groups, however it will be always authenticated by Group 1 because

    This is the first group, it appears in, even if there is a configured NAR summons

    the group-specific AAA clients.

    However there are if your maps are below order...

    Groups NT groups ACS

    A, B, C ===> Group 1

    A ===> group 2

    B ===> group 3

    C ===> Group 4.

    You can create a rule DIFFERENT for users a, B, C by configuring the NARS in Group1.

    This rule applies for use ONLY if it is present in ALL three groups (A, B and C).

    You can create a rule for users in Group A (Group 2)

    You can create a rule for users in Group B (Group 3)

    You can create a rule for users in Group C (Group 4)

    Here I am also attaching links related to the group mapping in the user guide:

    Order of group mapping:

    http://www.Cisco.com/univercd/CC/TD/doc/product/access/acs_soft/csacs4nt/acs33/user/QG.htm

    #wp940485

    Kind regards

    ~ JG

    Note the useful messages

  • Layer mask groups converted from work plans to the size of the artboard in older versions of Photoshop

    I wanted to start this post as an idea, but I couldn't choose communities (it wouldn't let me), so here it is posted...

    ----

    Just came across this with a customer...

    I use for a mobile design project work plans, and I just got a screenshot with some texts asking why among work plans were really great. Way bigger than a phone. (I'm under NDA and cannot post the screenshot, but imagine there are a lot of iPhone size work plans and two of them seem to be at a right angle)

    I opened the file and on my end, everything is the right size. Remembering the weeks ago to tell the customer that they need to update their version of Photoshop for all this work correctly, I have take a look at the screenshot and see that they are on CC2014 - none of the work plans.

    What I'm asking here, is that, since we have data, plans of work are objects of a defined size and 'alive', why not just use these data to hide layer groups at the opening of the PSD / PSB (PSB in my case) in older versions of Photoshop?

    It could save you a TON of hassle and confusion.

    Hi Zack,

    High level to your query response is: no, there is no conduct business case for a general solution to what you are suggesting. So I don't see what is happening.

    I say that as someone who likes to give back and forth and backward compatibility.

    There are two parts of the problem that you raise. They are related and somewhat intertwined.

    1. Having the version previous (2014) do something reasonable with the data from the version the most recent (2015). Either the old version should be taught on the most recent data so it can make a decision about what to do, or the newer version must put additional data in the file format for consumption by the older version.
    2. Back and forth between versions. As you say, a much more difficult problem. In fact, we do a good job of that today. But we must be sure that whatever we do for (1) not to damage and back the wrong way.

    Let's be very clear: 2014 will not be touched, except for critical bugs, absolutely. And even before 2015 is released, it would have not been corrected to make it behave better with work plans. There is no way that I could see what is happening. So all we have done for better backward compatibility had to be entirely done within 2015.

    For the round trip, the general problem is something like this: we want to 2014 to read an object that has properties of 2015, he does not understand. While we might learn ch to keep these properties as opaque property, must also have rules for when these properties are not valid and thrown on the floor. Probably, if the object is changed. But not always. And sometimes when another object parent is changed. And so on. Right now, we destroy them unknown content from their reading in the old version. Make us and record what we understand. As a user, you receive an alert telling you that we are do this. It's the safest thing to do.

    There are special cases where a developer can see an opportunity to preserve a level of backward compatibility and back and forth. We try to do if we believe that it is safe. But this scenario happens only occasionally.

    In the case of work plans, made us really think about this: If we added a mask to the group for backward compatibility, it should do something with this mask reading around 2015. And what would happen if the user edited this mask in 2014 and opened upward in 2015 - and who edited mask do not align with the structures of the artboard? Things started to get dark quickly. We started to see traps. The workflow together to sheath special round trip had to be tested and verified. The cost was rising and this expense must be filtered through a cost/value trade-off. And then what happens when we add a new property to the structure of work plan? At these efforts for nothing?

    So we compromised with what you have today. Work plans become groups in 2014. The Group and the layer structure remains intact. Doesn't secretly add us and remove masks for the round trip. You can safely change the groups to your heart's content. When return you this document in 2015, you redo the work plans of the groups. Was not clear and safe way to do more than that given the time that we had.

    Take a step back and think about your problem, it doesn't seem to be a value to a script that converts group work plans + layer masks for your workflow to have your documents that is consumed by the customers of 2014. This would be carried out in 2015 because she would need understand the work plans. And maybe vice versa from 2014 to 2015, assuming that the documents were not published in a hostile way. We're not likely to write such a script as a generic tool, but someone competent with script might be able to do this.

    More that I intend to write, but hopefully, it gives you additional insight in the compromises that we have faced.

  • Commissioning of Applications using security groups - by application, or several apps by group?

    I was curious how most was assigning applications.  Would you recommend the creation of a group by the application or by using a group for several applications.  The reason that I ask is that we have a group called "Basic Thinapp" which includes standard applications for all users, such as adobe reader, mozilla, flash, quicktime and some others so that all members of Thinapp Base gets our basic fixed package of applications.

    The problem is that we want to install adobe reader locally on our virtual desktops because of the slow launch time and unable to show online them PDFs with IE.  We use thinreg so when Adobe Reader icon is removed from the directory of our icon and when they the logoff and log back in, Adobe leaves behind a non-working icon that useless and users would have to remove it manually if they wanted to get rid of it.  This does not seem the best approach.

    I know that the best way to remove the app is to remove the users outside the group, ask them to logoff and log in again for the app to disappear.  However, users would lose all basic applications.  We could then put back them in the Group and forced to logoff and log back in again and they would get the base once again.  That seems a lot to ask of users.

    Creating a group by application seems to be more directors as well as all users will need to be placed in each groups.

    Is there a better way to do this?

    We mainly use the Application - approach of a group, but have a few groups with multiple applications.

    With your case, I would do the following:

    1. create a new group and put there also: all users in your group of basic thinapp

    2 rebuild the thinapp adobe so that it uses this group

    3. After all users have logged off at least once from step 2, replace your thinapp with the newly rebuilt thinapp

    4. now, the Adobe Reader software works on his own group, you can delete users from this group, and after their next log off / log icon should disappear, because they are no longer allowed.

    The only problem is that you need the thinapp riffle proberly file, so the thinapp must be in the file system until all users are connected at least once. And with the local profiles, connected only once on each computer with a profile of them.

    Andreas

  • Why can't copy several layers and groups in a new PSD file?

    I created a bunch of new files PSD w / they must be the pixel dimensions. But I can't copy over 1 layer in these new files in a source file (w / all of my work). Why is this? Does anyone know?

    Go to Image > Mode for each file type and check that they are both RGB, or the two etc. CMYK. An adjustment layer, such as a curve or a Hue/Saturation, which is setting red, green, and blue pixel in an RGB document, cannot be moved in a CMYK document (or grayscale, etc.) because the color channels, that layer is adjusted are not there. This means that your new PSD files should be replaced by the same color mode as the documents you want to duplicate adjustment layers of.

    Steve

  • A script to add several layer text names

    Hello world

    I am quite new to this, so I hope you don't mind if my question is maybe a bit simple for the pros...

    Basically, I'm looking for a way to add multiple names of layers in the form of text boxes. I found this script below pixxxelschubser, which already ensures the task.

    Re: Script to add the name of the layer to the artboard in text form

    However, this script updates all the text boxes in a position to (0,0). I'm looking for a way to change this, until the first box (0,0), the second area is (0.10), third (0.20) and so on.

    I guess it's sort of a loop thing, but I'm really not familiar with this, so just a little hint would be great

    Thanks in advance!

    Marco

    If you want to get into writing scripts, check out the official guides here

    Illustrator script | Adobe Developer Connection

    Adobe assumes that you are already familiar with javascript, so you need to learn javascript separately, you can start here

    JavaScript | DND

    Here is a version of the pixxxel script that moves the vertical position

    // LayersnamesInUpperLeftCorner.jsx
    // https://forums.adobe.com/thread/1546630
    // write layers names in upper left corner of the active artboard
    // required: opened document, no toplevel layers locked, all layers visible
    // regards pixxxelschubser
    var aDoc = app.activeDocument;
    var theLayers = aDoc.layers;
    var x = 0;
    var y = 0;
    var verticalOffset = 10;
    
    for (i=0; i		   
  • Need a script to create standard vSwitch with virtual and several computer port group VLAN

    I want to create standard vSwitch for all hosts in the cluster for virtual machine port group and add one or more groups of ports VLAN for the same standard vswitch.

    Kind regards

    Shan

    Try something like this

    $clusterName = "mycluster.

    $nics = "vmnic0", "vmnic1.

    $vlans = 123456789

    foreach ($esx in (Get-Cluster-name $clusterName |)) Get - VMHost)) {}

    $sw = New - VirtualSwitch - name swX - VMHost $esx - Nic $nics - confirm: $false

    $vlans | %{

    New-VirtualPortGroup-name "PG $($_)" - VLanId $_ - VirtualSwitch $sw - confirm: $false

    }

    }

  • Is it possible to have several buttons send grouped with different fields in the subforms on a single page?

    Hello world

    I have a form with two sections. Each section is a subform (the green boxes represent subforms in the screenshot) and each subform contains three required fields and a release button (the button submit to an e-mail address). The problem is that I can't seem to keep them separate. If I fill in the fields required in Subform1 and then click on the button 'Submit to regional HR', he took over the fields required in the subform 2. Is there a way to 'point' or 'group' these fields to each Submit button in their respective subforms?

    I can not be understanding the appropriate function or expects subform correctly. I learned designer of the life cycle on my own and with the help of this forum. Thank you very much for your help. -Chris

    submit_different_subforms_question.png

    I'm an amateur, but I decided to start helping as much as possible on these forums.

    I had a similar problem in the past and found a solution. I can't say with certainty that it is the best solution, but since each button has only 3 mandatory fields, it's a workable solution.

    So this is complicated but also somewhat simple solution that works. Please keep in mind my script experience is limited.

    For the first submit button allow the script to remain in its natural state. Make sure that your email presentation is correct. You will create a second button which will be a standard button. Change the text to be the same as the text for the first submit button. Within this button, the click event, puts a script like this.

    (

    If

    Required.Field.1.rawValue == null or

    Required.FIeld.2.rawValue == null or

    Required.FIeld.3.rawValue is nothing

    then

    xfa.host.messageBox = ("If you please fill all required fields")

    on the other

    Submit.Button.execEvent ("mouseUp")

    endif

    Repeat this step for the second button on the subform.

    now do the real hidden submit button and place the second button in its place. He will check the required fields have entered values and if they entered it will be then press the button to send real otherwise it will put in place the error message. This method requires that the mandatory fields are not marked as required by the value tab. They must be optional, if not built in scripts will interfere with the written order. This is a work around, but I found that it allows better control of the required fields. You can add a floating asterisk or perhaps a border coloured fields so that users are aware of what fields are mandatory.

    I really hope this helps. I know this can be confusing, but I understand that sometimes it can be difficult to get a response, so if I can be useful, I'll try.

  • How do the sum of several columns with grouping different criteria

    Currently I am doing a project where I needed to generate the report which retrieved from the table. the table as shown below

    CURRENCY_A AMOUNT_A CURRENCY_B AMOUNT_B CURRENCY_C AMOUNT_C

    USD 100 EURO 100 POUNDS 100

    EURO 200 BOOKS 200 200 USD

    BOOKS USD EURO 300 300 300

    My expectations is the grand total of the Group (AMOUNT_A + AMOUNT_B + AMOUNT_C) currency

    USD:

    EURO:

    BOOKS:

    Is it possible to do this output in oracle alone?

    Hello

    UNPIVOT before consolidation / summary:

    SELECT currency, flat

    DE)

    SELECT CASE WHEN 1 THEN currency_a n

    WHEN 2 THEN currency_b

    WHEN 3 currency currency_c end THEN

    CASE WHEN 1 THEN amount_a

    WHEN 2 THEN amount_b

    WHEN 3 amount of end of amount_c THEN

    From your_table

    CROSS JOIN (select column_value table n (sys.odcinumberlist (1,2,3))) t

    )

    GROUP BY currency

  • Windows Server 2008 Standard: Several concerns: update group policy inconsistent on client PC, frequent disconnections of readers of card and the remote connection

    Hi This is my first time to ask a question here, in this community.

    I'm a sysadmin here at my job and we have some problems on some servers that we are dealing with. Network in our office is stable and we have determined that this is not a problem on the connection.

    • First number - one of our domain controller constantly falls on our directory server and saying that it is not available.
    • Second edition - unable to ping hostname but IP address works very well. (Sometimes the host name is ok, but very intermittent)
    • Third question - connection is unstable card readers causes disconnect

    If anyone can provide any assistance in this respect, it would be a great help.

    This issue is beyond the scope of this site and must be placed on Technet or MSDN

    http://social.technet.Microsoft.com/forums/en-us/home

    http://social.msdn.Microsoft.com/forums/en-us/home

  • The combination of several AD ACS 4.2 security groups

    Hello

    Our ACS is used for AAA for the wireless, the IOS CLI access and access to the unix server. For net admins and administrators unix, there are two levels, so indeed, we have 5 groups of individual devices that a user can be granted access.

    User groups are defined in Active Directory.

    I am looking for a way to combine information from several AD security groups to determine what a user can access. For example, a net administrator may or may not be a unix admin as well.

    Is it possible to do other than to have to have a large number of ad groups with one for each combination of authorization privileges?

    Thank you

    Luke

    HI Luke,.

    Definition of mapping of the hybrid is the best way to achieve this.

    Kind regards

    ~ JG

    Note the useful messages

  • Motion of Photoshop Workspace Import/layer group

    Rather than having hundreds of layers in a movie file, I want to change (rough trim, sound no matter what), save or copy these sections or chapters in separate files, then import these video groups (even if it is flattened like a dot PSD file) in the timeline file film distinct to organize together and final assembly.

    Obviously a cant just Ctrl C, Ctrl V a layer or group because copies and plunges the clip original raw not the edited clip in the timeline.

    There is probably a simple answer, but I can't seem to import a PSD to point to another file. What I can do is make a video file, which means the selection of codecs and output parameters, and then import this file. Gets quite difficult to handle.

    Does anyone have advice. IM on Photoshop whatever they claim the monthy tenant and its fine for what I do. I don't have a Prime Minister pro.

    Thank you

    Just in case where someone has the same investigation and an apology Im only new to this.

    Edit your clips and and file save in a selected folder, you can easily keep track of. Photoshop will assign the file save a .psd (which is the default format it converts when he reads the file from your camera in photoshop) If you want to still edit later by default leave "layers" checked in your backup routine.

    When you want to bring your clips in your movie editing, save the edited clips (as copies, whatever) but uncheck "layers" in the Save dialog box and it will flatten the clip .psd file.

    In your movie file its probably safer to create a new group of video / add media items / your folder and tick 'all formats. In mine, "all sizes" are the last in the list and for some strange reason, hides the bottom of the page. That is, if you do not, select any format, to half way down to spread it, and then select your format again and the list will read this final selection down to reveal "all the Formats.

    You can change all your clips the camera safely and then put them in your film without first making it on a video format and waste hours of time. Photoshop is not stupid.

    Until I mentioned flatten clips edited, if you forget to uncheck "layers" on registration of your edited clip, it will always be important the clip of .psd not flattened without showing the layers in the layers panel, and you will be able to see and play. But as soon as you touch it, you will get an error message and it will disappear.

  • Several groups of radio button

    I use Dreamweaver CS4 and I'm creating a purchase order on my site and I have added several radio button groups, but whenever you select one, it cancels the other. Example: I

    t-shirts: 1 2 3 4 5

    caps: 1 2 3 4 5

    etc., whenever you chose 2 caps, it cancels your order of t-shirt etc. How can I fix? Who would have thought forms would be so difficult. And then try to make a work form... sheesh. I spent too many hours on it wayyyyy. Can anyone pleaseeeeee help me. I am eternally grateful

    Exactly what I said.  The name attribute on each of these groups of radio are all 'amount '.  You must name them stuff like "Quantity_Tshirts" and "Quantity_Caps" for each group.  Otherwise, the HTML code reads all groups as a place of distinct groups.

    In the properties of the window now for each group, go through the options and the value to the far left is the name.  Make sure that each group has the same name in this field.

    In the future when you add a group of Radio make buttons that each name you give is unique on this page, otherwise it will treat you just as if it was the same group.

  • Actions for (fx) styles do not work on several layers.

    Hello!

    I have three buttons (as pictured) btns.jpg on the sheet and I made an action to one of them to choose a color as overlay gradient. I get by the group 'layer style' in the tab 'gradient overlay '. Then I copy the layer by recorded action style and paste the style buttons, but run so the action does not seem to stick these remaining buttons styles. 'Degraded style' is not changed, so green gradient overlay does not meet these reddish buttons.

    I wonder if I can copy and past several layer styles through the 'actions' I wanted to create a model with set of buttons and change the color of them with a click. Great idea, but who cannot yet accomplish.

    Thanks for any thoughts.

    Kinder Pawel

    Save the style in the palette styles, evoke the style in action.

    Mylenium

Maybe you are looking for