How can a get() return the POF bytes without deserializing?

Is it possible to perform a get() from the cache without deserializing an object, anmd instead request the POF bytes directly?
The use case is a middle tier server that is an extend client. It supports legacy downstream clients that should receive part or all of the byte[] directly.
The objective is to be able to transfer data and avoid a deserialization step:
  cache ---(POF)---> mid tier extend client ---(POF)---> downstream client This would need to work from a .NET or C++ extend client.
Thanks,
phil

Hi Phil,
This can be easily achieved using an entry processor, as long as you want to return the whole value. Something along the lines of the following should do the trick:
public Object process(InvocableMap.Entry entry) {
    return ((BinaryEntry) entry).getBinaryValue().toByteArray();
}The things are a bit trickier if you want to extract a single property only from the value but it is doable:
public Object process(InvocableMap.Entry entry) {
    BinaryEntry binEntry = (BinaryEntry) entry;
    PofValue value = PofValueParser.parse(binEntry.getBinaryValue(), (PofContext) binEntry.getSerializer());
    AbstractPofValue property = (AbstractPofValue) value.getChild(index);
    return property.getSerializedValue().toByteArray();
}Sorry I don't have time to test the code above, but off the top of my head I don't see a reason it shouldn't work.
Regards,
Aleks

Similar Messages

  • How can I get on the apps store without a debit/credit card or an itunes gift card?

    How can I get on the apps store without a debit/credit card or an itunes gift card?
    I can't get any of these, it's impossible for me to.
    HELP PLEASE.

    Create a NEW account using these instructions. Make sure you follow the instructions. Many do not and if you do not you will not get the None option. You must use an email address that you have not used with Apple before.
      Creating an iTunes Store, App Store, iBookstore, and Mac App Store account without a credit card

  • Verizon iphone. how can i get to the home screen without activating it on a plan

    how can i get to the home screen without activating it on a plan

    Unless it is a 3rd party cord, there is no cord that just goes from the phone to the wall. However, you will need a cord that connects to the computer and the phone. The device is in recovery mode and you will need to restore it. See this support document for the instructions. http://support.apple.com/kb/HT1808

  • How can I get into the options menu without clicking?

    I installed the Fx4 theme, and removed both the menu bar and the App button. As a result, I can't seem to find any way to access the File, View, or Tools menus. I googled for a list of keyboard shortcuts, but there doesn't seem to be one for any of these options (and no, pressing Alt does not unhide the menu bar, as it does in some other things).
    Do I need to reinstall?
    == User Agent ==
    Opera/9.80 (Windows NT 6.1; U; en) Presto/2.5.29 Version/10.60

    Unfortunately, that doesn't work. I can't get into safe mode -- there's no Mozilla Firefox folder in All Programs, and running "firefox -safe-mode" from the Start Search just starts up regular Firefox.
    I'm running Windows 7 Home Premium, 32-bit, using Firefox 3.6.4.

  • How can I get return to 10.6? Uninstall yosemite

    How can I get return to 10.6? Uninstall yosemite

    Clean Install of Snow Leopard
    Be sure to make a backup first because the following procedure will erase
    the drive and everything on it.
         1. Boot the computer using the Snow Leopard Installer Disc or the Disc 1 that came
             with your computer.  Insert the disc into the optical drive and restart the computer.
             After the chime press and hold down the  "C" key.  Release the key when you see
             a small spinning gear appear below the dark gray Apple logo.
         2. After the installer loads select your language and click on the Continue
             button. When the menu bar appears select Disk Utility from the Utilities menu.
             After DU loads select the hard drive entry from the left side list (mfgr.'s ID and drive
             size.)  Click on the Partition tab in the DU main window.  Set the number of
             partitions to one (1) from the Partitions drop down menu, click on Options button
             and select GUID, click on OK, then set the format type to MacOS Extended
             (Journaled, if supported), then click on the Apply button.
         3. When the formatting has completed quit DU and return to the installer.  Proceed
             with the OS X installation and follow the directions included with the installer.
         4. When the installation has completed your computer will Restart into the Setup
             Assistant. After you finish Setup Assistant will complete the installation after which
             you will be running a fresh install of OS X.  You can now begin the update process
             by opening Software Update and installing all recommended updates to bring your
             installation current.
    Download and install Mac OS X 10.6.8 Update Combo v1.1.

  • I downloaded 11.1 but now can't access the store, can only view my library. I've reinstalled but still get a blank, white screen when I try to go to the itunes store. How can I get to the store for purchases?

    I downloaded 11.1 but now can't access the store, can only view my library. I've reinstalled but still get a blank, white screen when I try to go to the itunes store. How can I get to the store for purchases?

    In iTunes prefs>Store - is the Store check box unchecked?
    Did you repair pemissions with Disk Utility?
    MJ

  • How can I get just the text to resize, rather than the entire web page?

    I used to be able to re-size just text on a webpage by typing Ctrl + +. Today, the entire webpage re-sizes, and when I move to another page it reverts. (I see this mostly in Facebook.). Why did this change, and can I go back to having just the text re-size?

    ''How can I get just the text to resize -- zoom text only''
    steps
    #"Alt" if no menu bar, then
    # View > Zoom > Zoom Text Only
    Zoom text of web pages - MozillaZine Knowledge Base
    :http://kb.mozillazine.org/Zoom_text_of_web_pages
    <br><small>Please mark "Solved" one answer that will best help others with a similar problem -- hope this was it.</small>

  • When creating a book how can I get all the photos from an album to show up in the order they were in the album?

    When creating a book in iphoto, how can I get all the photos from the album I want to use to show up in the order that they are in the album?  When I tried to use the option to add my own photos instead of having the program "flow" them, they showed up all mixed up.

    iPhoto puts them in the book in chronological order.  So to get your photos from an album into an iPhoto book in the same order you will need to use the Photos ➙ Batch Change ➙ Date menu option and set them all to the same date with a 1 minute time difference between each. 
    OT

  • I have made with iweb a website on my macbook, now i want to change it, through my imac, how can I get in the program , which is on the mac book. On both computer I have Lion

    i have made with iweb a website on my macbook, now i want to change it, through my imac, how can I get in the program , which is on the mac book. On both computer I have Lion

    You need to transfer your domain.sites file from your MacBook to your iMac.  This is the file where iWeb stores all info and can be found under User/Library/Application Support/iWeb/domain.sites.
    Transfer this file from your MacBook to the same place on your iMac and double click the domain.sites file and iWeb will open it on your iMac and you can update your site from there too.

  • I downloaded pictures onto my iPhone from computer twice by mistake now when i uncheck/sync then check and sync again  i keep getting two lots of pics..how can i get just the one set again? thnx

    I downloaded pictures onto my iPhone from computer twice by mistake now when i uncheck/sync then check and sync again  i keep getting two lots of pics..how can i get just the one set again? thnx

    You're welcome.
    All photos transferred from your computer are stored in the iPhone's Photo Library regardless if you select a single album or folder of photos to be transferred or multiple albums or folders. The photos on the albums or folders of photos include a pointer to the original photos stored in the Photo Library. The photos are not duplicated taking up double the storage space. This way you can view the photos in an album or folder of photos only by selecting the album or folder, or all photos in all albums or folders by selecting Photo Library.
    Makes more sense when transferring multiple albums or folders of photos which cannot be changed when transferring only a single album or folder of photos.
    The same applies with iTunes and music playlists. A song can't be in a playlist unless it is in the main iTunes library. Placing a song in a playlist does not duplicate the song.

  • How can I get only the music I want onto my iPhone using iTunes Match

    how can I get only the music I want onto my iPhone using iTunes Match?  At present it is putting a random selection on; it has none of the same control as iTunes on my Mac.  And although I uploaded all my album artwork to iCloud, it is not transferring it back to my iPhone

    Iphone are meant to be sync to one itunes library only.
    You can copy those songs to a cd and then put a copy to your itunes media library.

  • My hard drive crashed and I have lost my Itunes library. How can I get my the music that I loaded from my own CDs back on my PC from my iPod?

    My hard drived crashed in my HP Pavilion desktop and I have installed a new one. I have Windows 2007. My Itunes library is gone. How can I get all the music that I loaded onto my iPod from my own CD's back into an Itunes library?

    The loading of audio files to iPod is designed to go one way only: computer to iPod. There are some third-party applications available which will rescue an audio library and write the files back to a PC HDD. The playlists might not copy, nor the album art work, nor videos but you might be able to recover all audio files. Some apps are open source and available for free download, for example: Senuti, Onyx. There are others which are  Windows-based; do a Google search to find out. 

  • How can I get back the other version of itunes?

    It was much easier to use and way more confortable, How can I get back the other version of itunes? It was much easier to use and way more confortable
    I can't pass playlists from itunes to my i-pod, and the sthetic of the new itunes is not a good one.
    Could I get back an older version? those were easier to use, more simplier

    Apple wisely leaves a copy of iMovie version 9 installed in the Application folder when you download version 10.

  • My friend synced a video to my ipod but it erased all my data on my ipod,but i cant figure out how to load my old libray back without deleting the movie. my friend cant tell me the password. How can I get my old library back without deleting the movie?

    My friend synced a video to my ipod but it earased all my data on my ipod,but I can't figure out how to load my old library back without deleting the movie. My friend shares a family account so she can't tell me the password. How can i get my old library back without deleting the movie?

    Linnwarner wrote:
    She does have the right because she bought the movie.
    Not true at all.
    You only buy the right to your own personal use.
    You do NOT have the right to distribute to others.
    This is illegal.  There is no doubt about it

  • HT5527 I did not move my Mobileme account to iCloud. How can I get off the iCloud mailing list?

    I did not move my Mobileme account to iCloud. How can I get off the iCloud mailing list?

    If you migrated your MobileMe account before 1 August you should have signed into System Preferences>iCloud with it, and you would be able to see your calendars, bookmarks and emails on the iCloud website. Is this the case? Did you sign into iCloud with your @me.com address?
    If you did not migrate your MobileMe account you can no longer do so.
    If you did migrate, did you do so from a full MobileMe account or from a Family Pack sub-account? the latter did not get the complimentary storage (because their iDisks were only 5GB anyway).
    If you had a full MobileMe account, check on your Mac - System Preferences>iCloud - and see whether that shows the upgrade. If it doesn't, you probably need to contact Support: if you currently happen to have AppleCare, either because you recently bought Apple hardware or have paid to extend the inititial period, you can contact them here:
    http://www.apple.com/support/icloud/contact/
    You will need the serial number of the covered hardware.
    If you are not covered by AppleCare, then - in common with other free email services - there is no free support (MobileMe Support is no longer available) and you may be asked to pay a fee: in this case you should ask them to deal with it without cost (and hope they agree).
    Note that you haven't paid anything for your MobileMe storage since your first renewal date after 6 June 2011, and iCloud costs nothing unless you specifically choose to upgrade the storage. Note also the iCloud storage is not general file storage in the manner of the iDisk but is restricted to iOS device Backup, Mail, Photo Journal and Documents.

Maybe you are looking for

  • How to create a secondary list of alv grid inside the function module

    Hi All, My requirement is to create a RFC function module to display the alv grid of one table. i have created that. while clicking on the records of the alv it should open the secondary list of another table. My problem is it is not fetching the rec

  • Error handling workflow not getting triggered

    Hi all, I'm creating a outbound IDoc. And for error handling workflow.. I created a organization structure in PPOME and assigned users. I gave this position number thus created in the partner profile in post processing permitted agent tab. But when t

  • How to transfer game data from old iPhone to new iPhone

    I know you can use iCloud backup, but it takes way to long to back up my iPhone 4s.Is there any way to use game center to get game data back to my new phone? THanks

  • Expected life from a zen xtra 3

    I own a zen xtra?30gb.. i would like to know the expected/average natural life of a HDD player..i am sure the hard disk can't work forever?or is there anything else which has a higher probability of failing before the hard disk ?

  • Cannot watch VOD HD rental

    2nd time this has happened. I go to on demand, rent an HD new release & when I go to play it it's garbled, pixelated and unwatchable. Try reminding, pausing, etc but nothing works. I've seen others post about this issue and no solutions posted in the