Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Memory Analyzer (MAT) » Save Value to File
Save Value to File [message #7044] Fri, 14 November 2008 00:25 Go to next message
Eclipse UserFriend
Originally posted by: cgrinds.us.ibm.com

I selected rows from a OQL result set and choose Copy > Save Value to File.
It didn't save what I expected, which was the string column.
This was my query:
SELECT toString(k.key) from objects (SELECT objects outbounds(x.table) FROM
OBJECTS 0x22eab878 x) k

As you can see, my sole column was a string but instead of writing the
string value to the file it wrote the object.

I realize this isn't exactly what SaveValueAsQuery was intended to do but
seems like a reasonable feature.

I looked at adding this option to SaveValueAsQuery but didn't make a lot of
progress since the actual object is an OQLQueryImpl.ResultSet.$1. Seems
like the cleanest way to solve this might be creating a different action
that has more intimate knowledge of OQL. Thoughts?

--
Chris Grindstaff
cgrinds@us.ibm.com
Re: Save Value to File [message #7067 is a reply to message #7044] Fri, 14 November 2008 01:31 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: cgrinds.us.ibm.com

Chris Grindstaff <cgrinds@us.ibm.com> wrote in
news:Xns9B55C58E11987chrisibm@206.191.52.34:

> I selected rows from a OQL result set and choose Copy > Save Value to
> File. It didn't save what I expected, which was the string column.
> This was my query:
> SELECT toString(k.key) from objects (SELECT objects outbounds(x.table)
> FROM OBJECTS 0x22eab878 x) k

Ah I spoke to soon, the same functionality can be achieved using Export >
to TXT.

--
Chris Grindstaff
cgrinds@us.ibm.com
Re: Save Value to File [message #7090 is a reply to message #7067] Fri, 14 November 2008 08:09 Go to previous message
Andreas Buchen is currently offline Andreas BuchenFriend
Messages: 123
Registered: July 2009
Senior Member
Hi Chris,

that _is_ confusing:
* Export to Text / CSV etc. look at the table/tree etc.
* Save Value to File looks at the heap object behind the row (the one that
is detailed in the object inspector). It does not care if you actually
display one property in a column...


Andreas.
Previous Topic:Problems checking out src
Next Topic:Minor CSVOutputter patch - 1 attachment
Goto Forum:
  


Current Time: Tue Apr 23 17:01:50 GMT 2024

Powered by FUDForum. Page generated in 0.02753 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top