Movies Collection demo in GT

This page is a demo for inspecting a GtRmMovieCollection Object subclass: #GtRmMovieCollection instanceVariableNames: 'rawData propertyNames' classVariableNames: 'DEFAULT' package: 'GToolkit-RemotePhlow-MoviesDemo' in GemStone, complementing similar demos in Python and GemStone.

Installing NeoCSV: This example requires loading NeoCSV in GT.

Metacello new
	repository: 'github://svenvc/NeoCSV/repository';
	baseline: 'NeoCSV';
	load.
  

Loading the data

The following snippets import the movie collection data.

dataFile := FileLocator gtResource 
	/ 'feenkcom' 
	/ 'gtoolkit-demos' 
	/ 'data' 
	/ 'imdb' 
	/ 'Movies.csv'.

fullData := dataFile readStreamDo: [ :aStream |
	(NeoCSVReader on: aStream)
		upToEnd ].
  
movieCollection := GtRmMovieCollection 
	fromRawData:  fullData copyWithoutFirst
	withProperties: fullData first