Retrieve the unique property of Pof object

Is it possible to easily extract a single property of an object of POF?
For example, suppose I have a person object that has an age, a name and a bunch of other properties.
I want to find the names of all the people who are over 18, but want all the other properties of the person.

I prefer not to get the entire object, and then iterate to the breast to extract the name for each of them and throwing the rest of the object. This seems to be an unnecessary overhead.

I see that you can do this by using EntryProcessors and get the PofValue with the PofValueParser, but the data entry processors lock and unlock the cache entries, this felt like an unnecessary overhead for a read-only operation.

I feel like there is almost a way, but do not see it.

Someone at - it ideas

Thank you
Steve

FWIW:

You can use the extractors to drive the "select" as well as list the ' where clause ' in point 3.6. I was curious to know how the CohQL in 3.6 a tool does do that, and one of these Oracle here people posted the answer ('see the development plan' in the tool command line with the query to execute to display the details.) So, this is the approach I followed - that is what the plan of living room exits, just translated into API calls):

For example:

Select instrumentId, positionType positions where the bookId = and keys (game) = "TRADING".

The equivalent API code:

The "list of selection...". »
Aggregator ReducerAggregator = new ReducerAggregator (new MultiExtractor ("getInstrumentId, getPositionType"));

The ' where clause '...
Filter filter = QueryHelper.createFilter ("" bookId = ' "+ bookId +" ' and the keys (game) = "TRADING" "");
          
The final query...
Map positionsMap = cache.aggregate (card) (filter, aggregator);

There are questions stirring POF extractors to CohQL, so I avoided the and let it default using the ReflectionExtractors normal, even if my data in a distributed format POF cache, I found not the extractors of POF loss which would be huge a deal from a performance perspective, and I don't like the much simpler syntax of the CohQL. Look at the syntax 'point' to access the embedded child objects.

Not sure if the above, that's what you're looking for, but it works for me.

See you soon,.

Steve

Tags: Fusion Middleware

Similar Questions

  • Connecting the node property programmatically to objects in front?

    When I right click on a property node, I see the option to connect to any object of front panel.

    Is it possible by programming? I create three charts XY and I want to know if I can control

    the color of terrain for all three charts XY with creating ONLY a property node (color graphics) and placing it inside a loop for

    and for each iteration of the loop for example, linking the property node to different XY graphs.

    See the image.

    Hello

    what you can do is to select the option 'disconnect control' when right clicking on the property node (it becomes a generic property node to pass a command reference XYGraph), place this property node in a loop for, before the loop, build an array containing references to your 3 XYGaphs (right click on each XYGraph > create > reference).

    Hope this helps

  • Remove a property of all objects in a table

    I have a relationship with a large number of custom properties added to objects in virtual machine earlier in the report.  Later in the report, I want to delete only a custom from the items property.

    Assuming that my table variable is $vms, how to remove a unique property of all objects of the virtual machine in the table?  (If possible, I prefer not to do another select statement and select only the properties that I want to keep, because it makes for a long select statement and makes the report less readable).

    Hello, TheVMinator-

    I guess that, 'do not add to start with the foreign custom property' is not a valid solution, as I assume that this custom property using one at a time.

    Another way would be to use another select statement, but without the need to explicitly list this long array of properties to select.  You can select essentially all properties _except_ "extraProperty0" with something like:

    ## for all of the output items, select all *Property types of members _except_ for the one named "extraProperty0"$arrMyOutputItems | %{    Select-Object -InputObject $_ -Property (Get-Member -InputObject $_ -MemberType *Property | ?{$_.Name -ne "extraProperty0"} | %{$_.Name})}
    

    This assumes that all of the properties that you want to 'keep' are of MemberType * property (so, NoteProperty, goods, etc.).  While this is another select statement, it avoids the part 'long list of properties to select' that you do not want.  How does do for you?

  • Retrieve the Name of the tag property

    I'm definitely a novice PowerCLI. However, I have a script which is heavily borrowed from http://www.vstrong.info/2013/10/18/vmware-powercli-script-to-query-virtual-machine-events/

    What I would like to make in addition to the values that are retrieved, also receive the Name property of the attribute of the tag.

    The script I use now is:

    $vcenterserver = "myvcenter".

    # Check if VMware Snapin is loaded, otherwise, load

    If ((Get - PSSnapin - name VMware.VimAutomation.Core - ErrorAction SilentlyContinue) - eq $null)

    {

    Add-PSSnapin VMware.VimAutomation.Core

    }

    SE connect-VIServer-Server $vcenterserver

    $CDT = get-Date

    Get-VM-name testvm | »

    Get-VIEvent-Types of information - start $CDT. AddDays(-30)-finishing $CDT | »

    Where {'}

    $_. GetType(). Name - eq "VmBeingDeployedEvent" "

    - or $_. GetType(). Name - eq "VmCreatedEvent" "

    - or $_. GetType(). Name - eq "VmRegisteredEvent"} | »

    Select the name of user, Createduserid, FullFormattedMessage, @{Name = "VM"; Expression = {$_.} Vm.Name}}, @{Name = "RC Code"; Expression = {$_.} Vm.Tag}}

    He retrieves the correct values with the exception of the tag for the virtual machine. I also tried @{Name = "RC Code"; Expression = {$_.} Vm.Tag.Name}}

    I can extract the value in a table using the following command, but can't seem to pull the Name property:

    Get-VM-name testvm | Get-TagAssignment-category RCCode | Select-Object - ExpandProperty tag

    Description of the categories of name

    ----                           --------                       -----------

    10031 technical RCCode except...

    Any help would be appreciated, thanks!

    OK, then try this. I have not yet tested, but it should do it for you:

    Select the name of user, Createduserid, FullFormattedMessage, @{Name = "VM"; Expression = {$_.} Vm.Name}}, @{Name = "RC Code"; Expression = {$vm = ($_.)} UMM name); Get-TagAssignment | where {$_.} Entity-like ("$VM")}}} | Export Csv c:\Temp\csv.csv - NoTypeInformation - UseCulture

    The issue was that as the expression of Code RC worked essentially a new request, the $_. UMM name was irrelevant for the entity. Instead I just had the previous $_. UMM name in a variable that is referenced in the cmdlet that followed. Let me know if it works for you.

  • VcHostVirtualSwitch 'portgroup' object property returns the array of channels, no objects

    Something seems a little wrong here; on a vSphere 5.5 installation, you ask a traditional vSwitch (IE not dvSwitch) for exchanges that I do not receive the table of object of type [VcHostPortGroup], but rather an array of flat strings that cannot be extended.

    This seems to break the shares provided for registration of trade as well as my own code, so I suspect that some changes in the API 5.5 can have passed unnoticed since so few people more uses vSwitches.

    Could someone check the following code and see what happens:

    var hosts=Server.findAllForType("VC:HostSystem");
    
    
    var host=hosts[0];
    var switches=host.configManager.networkSystem.networkInfo.vswitch;
    
    for (var i=0; i<switches.length; i++) {
      vswitch=switches[i];
      System.log(vswitch);
      var pglist=vswitch.portgroup;
      for (var n=0;n<pglist.length;n++) {
      var pg=pglist[n];
      System.log (pg);
    System.log("Found portgroup "+ pg.spec.name +" with vlan ID "+pg.spec.vlanId); // This breaks
      }
    }
    
    

    Okay, so I figured this out on my own.

    There is a bug in the documentation in the API of vCO HostVirtualSwitch object does not point to a group of ports, but rather returns an array of strings "flattened" with the keys (not unique, useless) to the port associated with the vSwitch groups. It is correctly stated in the vSphere API reference but incorrect in the version of vCO, which may indicate that the code real vCO is incompatible as well.

    To recover a real populated HostPortGroup object you must descend through the successful HostNetworkInfo object; the portgroup here property is an array of the appropriate type.

  • all the nodes property objects and objects grouped

    Hello

    Now position an on my GUI objects in the center of the screen using nodes property. However, I don't want to have to have a node property for each decoration, image and control. Is it possible that I can group all the objects and then use a property node to position them? I tried to use the property node all objects, but none of the clues seem to apply to my group of objects.

    Help please!

    Thank you very much.

    John

    p.s. I downloaded my vi test. The graph, the decoration and the exit button have been grouped. control over check.vi to set the object to be moved.

    Tabbed pages are a great way to group objects GUI.

    Rather than use a decoration,

    • use a tab control
    • Delete everything except the first tab
    • Hide tab
    • The value of the proprties of the tab control and control on this page is move, hide, display as well as the tab control.

    I hope this helps,

    Ben

  • Name of the dynamic property of object in the table based on the value of a variable

    I have two paintings of custom class objects

    var obj1:Object1
    var obj2:Object2
    
    var array1:Array = [obj1[0], obj1[1], ...]
    var array2:Array = [obj2[0], obj2[1], ...]
    

    Object1 has a property named. Name while Object2 has a property named. Title.

    Now I have a common function including cab accepts an array (array1 or array2) and the name of property the object ("Name" or "Title") as input and needs to access this name of the property of the objects in the array:

    function myFunction(arr:Array, fieldName:String)
    {
        arr[0].fieldName  = "xxx";
    }
    

    the problem I have this achievement does not because the code in the function assumes that the property of that object in the table is actually a string "fieldName" while I want to dynamically determine the names of the fields based on the value of this variable, but cannot understand the syntax to do!

    Don't know if I'm clear - hope that makes sense... ;-) Thank you

    Hey p3pp3r,

    I think I understood you. Try the following and see if you get good results:

    function myFunction(arr:Array, fieldName:String)
    {
        arr[0][fieldName]  = "xxx";
    }
    

    Let me know how it turns out. Good luck!

  • There the rest APIs to retrieve the metadata for entity for eloqua objects?

    There is a list of all the objects that are accessible by the REST for CRUD in this link: REST API - Documentation for kernel objects in the objects of the core section.

    For each of the objects listed in the objects of the core section are there is a metadata field in the Properties section.

    For example, for the purpose of the e-mail message, The REST API - to access Emails , under the Properties section, there entered corresponding to the fields of the object of the emails under the
    Name, Type, Description and validation topics.

    Is there a REST API to retrieve the same information, i.e. metadata field for an object programmatically eloqua?
    Otherwise, this is a serious obstacle to building systems that are the metadata engine and support for SOAP is removed...

    The closest to what you are looking for would be endpoints of assistance for a description of the fields. Example of /api/bulk/1.0/contact/fields

    {

    "items": [{}

    'name': "E-mail address",

    "internalName": "C_EmailAddress",

    'dataType': 'emailAddress;

    'hasReadOnlyConstraint': false,

    'hasNotNullConstraint': false,

    'hasUniquenessConstraint': true,

    'Déclaration': '{{Contact.Field (C_EmailAddress)}}.

    "uri": "/ contact/field/100001",

    "converted': ' / Date (-2208970800000) /"

    'updatedAt': ' / Date (-2208970800000) / ".

    },

    {

    'name': "First name",

    "internalName": "C_FirstName",

    'dataType': "string",.

    'hasReadOnlyConstraint': false,

    'hasNotNullConstraint': false,

    'hasUniquenessConstraint': false,

    'Déclaration': '{{Contact.Field (C_FirstName)}}.

    "uri": "/ contact/field/100002."

    "converted': ' / Date (-2208970800000) /"

    "updatedBy": "MgrzzzOracleCloudSupportP01E10",

    'updatedAt': ' / Date (1408993722380) / ".

    },.....

    If so, it will also include an element "defaultValue". How many characters you can store in a field (precision) is documented here: Type of data (data and Digital Formats). The same endpoint exist in bulk 2.0, and there are variants for the account fields and Objetpersonnalise. Another exists in the REST through Api/rest/2.0/assets/contact/fields?depth=complete... It does not include the declaration of ML, but there other useful information such as the type of default update and a flag 'isAccountLinkageField '.

    Similarly, if you describe a form via SOAP or REST, it also will give you the fields and their type.

    Kind regards

    Bojan

  • What is the real purpose of the accessible property in NetworkSummary data object?

    Hello

    I have a scenario where I need to monitor the ESX Server SSH connection.

    Simple way is to ping each server and get the status of individuals against a ping response.

    I found the available property in the network summary data object.

    Documentation Centre of vSphere 5.5

    Description of it is not that much succinct to get the meaning of it is only one-way.

    Is anyone aware of the purpose of this property? It will help monitor the SSH of ESX Server connectivity. (something like how iterative checking the status of ping)

    How does it work internally? He tries a ping to an individual server to confirm connectivity?

    Any help will be appreciated.

    Abhijit.

    Thanks for your reply.

    It is useful.

  • What is the dynamic property used to retrieve the IP address of the CV?

    What is the dynamic property used to retrieve the IP address of the CV?

    If we get as below as we get VM kernel Port Group

    HostSystem - & gt; HostListSummary - & gt; managementServerIp

    But how do we get Service Console port group?

    Let me know thanks in advance.

    Hello

    Is your VC a harware installed or is installed in a virtual machine?

    If it is based on a material maybe you can retrieve it with

    ->->-> HostNetworkInfo HostNetworkSystem HostConfigManager HostSystem (or config)

    There is a portgroup HostPortGroup entity, but I'm a noob and never did.

    Maybe it helps.

    Christian

  • to access the property of the child of a display object

    I need help to understand how to access a property of a child of a DisplayObject.

    within a class, I have an object with the name of the variable: btnLMain

    I assigned a name property: btnLMain.name = "btnL;

    btnLMain also has a property: btnLMain.clickNum = 0; It's the one that I need to access

    When I instantiated (btnL) class that contains this code in the parent class, I need to access the 'clickNum' property so I did this:

    var dispObj:DisplayObject = btnL.getChildByName (btnLMain);

    displayObj.clickNum ++;

    but then, I get the error: 1119: access to property may be undefined clickNum through a reference with static type flash.display:DisplayObject.

    so then I looked at the documentation and as I understand it, I am not able to access the child of the DisplayObject property as it is a static property... Please correct me if I'm wrong.

    so now, I try to understand how to access this property in the child class.

    do you have any tips for me?

    Thank you!

    For what you described, the following line is meaningless...

    var dispObj:DisplayObject = btnL.getChildByName (btnLMain);

    because you said that the name property, that you assigned to the btnLMain is btnL, which would make btnL and btnLMain representative of the same object.  Or maybe I just missed something the explanation.

    How you declare btnLMain first?  If it is defined in a way such As btnLMain... var = new Something(), then you have a direct access using the btnLMain variable and should be able to use btnLMain.clickNum

  • Error: Error #2078: cannot modify the name property of a Timeline-place object.

    Error: Error #2078: cannot modify the name property of a Timeline-place object.
    to flash. display::DisplayObject / set name()
    at RonaldTest_fla::MainTimeline/frontWheelLoadComplete()

    The code that triggers this false error is the following:

    ------------------------------------------------------------------------------------------ --------------------------------------------------------

    var frontWheelLoader:Loader = new Loader();
    frontWheelLoader.contentLoaderInfo.addEventListener (Event.COMPLETE, frontWheelLoadComplete);
    frontWheelLoader.load (new URLRequest ("FrontWheel.png"));

    function frontWheelLoadComplete(event:Event):void
    {
    var loadedImg:Bitmap = new bitmap;
    loadedImg = event.target.content;
    loadedImg.name = 'My Image loaded';          Online listening
    var kontainer:MovieClip = new MovieClip();
    kontainer.addChild (loadedImg);
    addChild (kontainer);
    }

    ------------------------------------------------------------------------------------------ --------------------------------------------------------

    Any ideas?

    Kind regards

    Ron

    The problem is that this charger adds that the information of an image loaded as an instance.

    If you want to change the name... Get the the bitmap data var BitmapData: BitmapData = Bitmap (event.target.content) .bitmapData

    and then var image: Bitmap = new Bitmap image (data); Frame.Name = "Name"

  • Do not update the content property object loader

    I have a SWF file on a server, it's a very simple animation.

    I have a SWF file on a different server, it loads the first SWF.  Here is my code base:

    Security.allowDomain ("my.central.server.com");
    var loader: Loader = new Loader(); allows you to load external SWF.
    var mcExternal:MovieClip; used to store the loaded SWF file.
    Loader.Load (new URLRequest ("http://my.central.server.com/data/FSC_Test_Automation/called.swf"));
    loader.contentLoaderInfo.addEventListener (Event.COMPLETE, swfLoaded);
    function swfLoaded(e:Event):void {}
    mcExternal = loader.getChildAt (0) as MovieClip;
    this.addChild (mcExternal);
    mcExternal.play ();
    }

    Everything works perfectly except in one case.  I use Questionmark Perception to deliver quotas online.  When the Flash containing the code above is provided as part of an assessment, the "mcExternal.play ()" does not work because mcExternal is null.  mcExternal is set to null because loader.getChildAt (0) is set to null (I also tried loader.content and loader.contentLoaderInfo.content).

    All the events fire properly.  I can even see the loaded SWF file.  The problem is that I can't start playing because I can't get a reference to it.

    My question: what is - which would allow to load external SWF file but not assign it to the content property of the loader object?

    the swf load needs the method, (allowDomain() or allowInsecureDomain()).

  • [ADF, JDev12.1.3] Object entity attribute: use the Updatable property

    Hallo,

    might explain to me who is the logic to define, in the definition of the EO, the Updatable property for an attribute?

    Thank you

    Federico

    Hello

    you define whether users should be able to update the attribute. Another option would be updated when new, which allows their only set the value when the line is new. Otherwise the attribute should be read-only. You can change the setting of Java, as well in this case you can read or change depends on a condition

    Frank

  • Example to retrieve the IP address of the virtual machine

    Hi, I would like to know if there is any sample to create a script to run to retrieve the ip address of the virtual machine instead of enter orders via the powercli console?  Thanks in advance.

    Hello, tayky-

    You can use the Guest.IpAddress of the virtual computer object property, such as:

    Get-VM myVM | select name, @{n="IPs"; e={$_.Guest.IpAddress}}
    

    In general, if you don't want to run the commands themselves sticking them in PowerShell, you can only save in a script file and run this PowerShell script.  Say, save the command above in a script file, "c:\temp\getIPsForMyVM.ps1" and then run the PowerShell script as a file:

    PS C:\> . c:\temp\getIPsForMyVM.ps1
    

    This is called "supply point" script file.  You can get more information about it by getting help on "about_operators" in PowerShell.

Maybe you are looking for

  • How can I sync music without wifi?

    If someone can tell me how to get/sync music from iTunes to my iPhone 5 with a USB cable and NOT wireless or Apple music I would be happy to hear about it. It should and used to be a simple process. Now, it seems almost impossible. I don't want more

  • Error message on important Web site

    I get this error message on my login on a website improtatnt. No one can tell me what to do, I reset my Add ons and all this a few times. I need to be on this site, I'm trying to access like yesterday so set some fast permanent would be amazing thank

  • Satellite U920T - volume keys do not work

    I have the Toshiba laptop u920t factory standard and after a reboot, the volume (F9 and F10) keys do not work.I need to run the Toshiba Software function keys and select fix that solves the problem until the next reboot. How can I fix this annoying g

  • Tecra 8100 DVD - ROM SD-C2402

    Hi, am new to the forum. I have the reader above, and while it reads DVD pressed without problems, he struggles to read and access my own written records. Some discs, DVD - R written on the same game machine very well, others do not read. The same di

  • Windows Media Center does not seem to recognize that I'm in the United Kingdom.

    I could not the skyplayer appears, and now I'm trying to get a video MSN to work but alas... No... Go into settings and download of updates does nothing. I went in the TV section and downloaded the settings of 5 MB, but it says the guide is not avail