How to fetch the columns in a single row in reverse order with PHPCassa?
How to fetch columns in reverse order with PHPCassa
559 Views Asked by Nick At
        	2
        	
        There are 2 best solutions below
1
                 On
                        
                            
                        
                        
                            On
                            
                                                    
                    
                From phpcassa documentation
 public function get($key,
                     $columns=null,
                     $column_start="",
                     $column_finish="",
                     $column_reversed=False,
                     $column_count=self::DEFAULT_COLUMN_COUNT,
                     $super_column=null,
                     $read_consistency_level=null)
See "@param bool $column_reversed fetch the columns in reverse order" 
Setting this parameter to "true" will fetch the columns in reverse order.
You can even set this parameter for multiget, get_range and get_indexed_slices queries.
For More Detail see: phpcassa columnfamily documentation
Trick is done with empty column slice object.