Movies Collection demo in GemStone

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 GT.

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 within a GemStone extent.

The data is read from a local file and loaded into GemStone by GtRmMovieCollectionGemstoneImporter Object subclass: #GtRmMovieCollectionGemstoneImporter instanceVariableNames: '' classVariableNames: '' package: 'GToolkit-RemotePhlow-MoviesDemo-GTSpecific' .

The default session is used for importing.

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

The imported data can be seen by inspecting the default instance of GtRmMovieCollection Object subclass: #GtRmMovieCollection instanceVariableNames: 'rawData propertyNames' classVariableNames: 'DEFAULT' package: 'GToolkit-RemotePhlow-MoviesDemo' .

GtRmMovieCollection defaultInstance