property

Sets the property that can be used using ${key}, which gfsh expands with the matching value.

gfsh:/>property foo.bar

foo.bar=null

gfsh:/>property foo.bar=boo.far

gfsh:/>property foo.bar        

foo.bar=boo.far

gfsh:/>echo "Property foo.bar has value: ${foo.bar}"

"Property foo.bar has value: boo.far"

Other examples:

gfsh:/>property proele=/Products/Electronics

gfsh:/>cd ${proele}

gfsh:/Products/Electronics>select * from ${proele}              

Row  Name                  Id       Price  MfgDate
---  ----                  --       -----  -------
1    X1 LED TV y32         ELEX102  450.0  Sun Jun 14 11:22:03 IST 2009
2    Gaming Console S400   ELEX204  150.0  Thu Jun 03 11:22:03 IST 2010
3    X1 LCD TV y32         ELEX101  250.0  Sat Jan 24 11:22:03 IST 2009
4    Micro SD 2GB          ELEX303  15.0   Sat Feb 12 11:22:03 IST 2011
5    A1 LED TV x40         ELEX103  500.0  Sun Jan 04 11:22:03 IST 2009
6    USB 4GB               ELEX304  50.0   Sun Feb 13 11:22:03 IST 2011
7    SmarterPhone S2P01    ELEX201  295.0  Sat Jul 31 11:22:03 IST 2010
8    Gaming Console NW040  ELEX205  120.0  Thu Aug 05 11:22:03 IST 2010
9    SSD 1TB SSD12         ELEX302  100.0  Fri Sep 17 11:22:03 IST 2010
10   Gaming Console X1040  ELEX203  218.0  Fri Jul 02 11:22:03 IST 2010
11   Hard Disk 250GB HD31  ELEX301  50.0   Sun Aug 15 11:22:03 IST 2010
12   SmartPhone SP02       ELEX104  200.0  Sat Jun 13 11:22:03 IST 2009
13   GPS Device GD05       ELEX202  120.0  Thu Jul 01 11:22:03 IST 2010

Class: data.Product
Fetch size: 50, Limit: 1000
   Results: 13, Returned: 13/13
elapsed (msec): 8

gfsh:/Products/Electronics>property myquery=select * from /Customers

gfsh:/Products/Electronics>${myquery}                               

Row  Address  Name        Id
---  -------  ----        --
1    Delhi    V Ahmad     CUST17891
2    Karpen   Michael S   CUST96874
3    Pune     Vishal R    CUST10401
4    Tokyo    Yuki T      CUST34571
5    Oviedo   Fernando A  CUST13541

Class: data.Customer
Fetch size: 50, Limit: 1000
   Results: 5, Returned: 5/5
elapsed (msec): 8