MATLAB DATABASE TOOLBOX RELEASE NOTES Guía de usuario Pagina 427

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 684
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 426
Analyze Large Data Sets in a Database with MapReduce
6-85
Analyze Large Data Sets in a Database with MapReduce
This example shows how to analyze large data sets that are stored in a database. You
can access large data sets using a DatabaseDatastore object with Database Toolbox.
After creating a DatabaseDatastore, you can run algorithms on large data sets by
integrating with MapReduce.
This example uses MapReduce to calculate the mean arrival delay of a large flight
data set that is stored in a database. This example modifies the “Compute Mean
Value with MapReduce” example to use a DatabaseDatastore instead of a
TabularTextDatastore. You can similarly modify other MATLAB examples that
analyze data using MapReduce as described in Building Effective Algorithms with
MapReduce.
Create the DatabaseDatastore
The default output data type of any datastore is a table. Set the database preference
for the data return format 'DataReturnFormat' to table for consistency across data
types.
setdbprefs('DataReturnFormat','table')
The file airlinesmall.csv contains the large flight data set. Load this file into a
MySQL database table named flightdelay. This table contains 123,523 records.
Create a database connection conn using the JDBC driver. Use the Vendor name-
value pair argument of database to specify a connection to a MySQL database. This
code assumes you are connecting to a database named dbname on a database server
named sname with user name username and password pwd. dbname contains the table
flightdelay.
conn = database('dbname','username','pwd',...
'Vendor','MySQL',...
'Server','sname');
Create a DatabaseDatastore object dbds using the database connection conn and SQL
query sqlquery. This SQL query retrieves flight arrival delay data ArrDelay from the
table flightdelay.
sqlquery = 'select ArrDelay from flightdelay';
dbds = datastore(conn,sqlquery);
Vista de pagina 426
1 2 ... 422 423 424 425 426 427 428 429 430 431 432 ... 683 684

Comentarios a estos manuales

Sin comentarios

Philips VR805 Handbücher

Bedienungsanleitungen und Benutzerhandbücher für CD Spieler Philips VR805.
Wir stellen PDF-Handbücher Philips VR805 zum kostenlosen herunterladen nach Dokumenttypen zur Verfügung






Weitere Produkte und Handbücher für CD Spieler Philips

Modelle Dokumententyp
DVDQ40/022 Bedienungsanleitung    Philips DVDQ40/022 User's Manual, 26 Seiten
AZ382/12 Bedienungsanleitung   Philips AZ382/12 User's Manual, 2 Seiten
MZ1000 Bedienungsanleitung   Philips MZ1000 User's Manual, 25 Seiten
EXP4318 Bedienungsanleitung      Philips EXP4318 User's Manual, 82 Seiten
AZT3201 Bedienungsanleitung      Philips AZT3201 User's Manual, 10 Seiten
ACT 7585 Bedienungsanleitung      Philips ACT 7585 User's Manual, 65 Seiten
AZ3012/01 Bedienungsanleitung    Philips AZ3012/01 User's Manual, 8 Seiten
eXpanium EXP212 Bedienungsanleitung      Philips eXpanium EXP212 User's Manual, 2 Seiten
AZ 1565/00 Bedienungsanleitung       Philips AZ 1565/00 User's Manual, 63 Seiten
AZT3200 Bedienungsanleitung     Philips AZT3202/17 User manual, 14 Seiten
EXP2550/58 Bedienungsanleitung      Philips EXP2550/58 User manual, 2 Seiten
EXP3360 Bedienungsanleitung   Philips EXP3360 User's Manual, 12 Seiten
AZ7681 Bedienungsanleitung       Philips AZ7681 User's Manual, 132 Seiten
EXP220/01 Bedienungsanleitung   Philips EXP220/01 User manual, 5 Seiten
PORTABLE SPORT AUDIO PSA[CD Bedienungsanleitung      Philips PORTABLE SPORT AUDIO PSA[CD User's Manual, 14 Seiten
AX5311/17 Bedienungsanleitung   Philips AX5311/17 User manual, 13 Seiten
AZ7182 Bedienungsanleitung   Philips AZ7182 User's Manual, 2 Seiten
AZ2000/01 Bedienungsanleitung   Philips AZ2000/01 User's Manual, 11 Seiten
AX5301/00C Bedienungsanleitung   Philips AX5301/00C User's Manual, 2 Seiten
AZ 1145 Bedienungsanleitung      Philips AZ 1145 User's Manual, 53 Seiten