CakePHP Cookbook Documentation 5.x
the data structure in a more fundamental way. For those cases, the SelectQuery object offers the mapReduce() method, which is a way of processing results once they are fetched from the database. A common structure is grouping results together based on certain conditions. For this task we can use the mapReduce() function. We need two callable functions the $mapper and the $reducer. The $mapper callable receives as second argument and finally it receives an instance of the MapReduce routine it is running: $mapper = function ($article, $key, $mapReduce) { $status = 'published'; if ($article->isDraft() ||0 码力 | 1080 页 | 939.39 KB | 1 年前3CakePHP Cookbook 3.x
is deprecated. Use getResultFormatters() instead. The getter part of Cake\Datasource\QueryTrait::mapReduce() is deprecated. Use getMapReducers() instead. The getter part of Cake\ORM\Query::contain() is deprecated change the data structure in a more fundamental way. For those cases, the Query object offers the mapReduce() method, which is a way of processing results once they are fetched from the database. A common structure is grouping results together based on certain conditions. For this task we can use the mapReduce() function. We need two callable functions the $mapper and the $reducer. The $mapper callable receives0 码力 | 1244 页 | 1.05 MB | 1 年前3CakePHP Cookbook 4.x
change the data structure in a more fundamental way. For those cases, the Query object offers the mapReduce() method, which is a way of processing results once they are fetched from the database. A common structure is grouping results together based on certain conditions. For this task we can use the mapReduce() function. We need two callable functions the $mapper and the $reducer. The $mapper callable receives as second argument and finally it receives an instance of the MapReduce routine it is running: $mapper = function ($article, $key, $mapReduce) { $status = 'published'; if ($article->isDraft() ||0 码力 | 1249 页 | 1.04 MB | 1 年前3Apache Kyuubi 1.3.0 Documentation
Examples ## # export JAVA_HOME=/usr/jdk64/jdk1.8.0_152 # export HADOOP_CONF_DIR=/usr/ndp/current/mapreduce_client/conf # export KYUUBI_JAVA_OPTS="-Xmx10g -XX:+UnlockDiagnosticVMOptions - XX:ParGCCardsPerStrideChunk=4096 Language Spark SQL Hive QL Optimizer Spark SQL Catalyst Hive Optimizer Engine up to Spark 3.x MapReduce/up to Spark 2.3/Tez Performance High Low Compatibility with Spark Good Bad(need to rebuild on0 码力 | 199 页 | 4.42 MB | 1 年前3Apache Kyuubi 1.3.1 Documentation
Examples ## # export JAVA_HOME=/usr/jdk64/jdk1.8.0_152 # export HADOOP_CONF_DIR=/usr/ndp/current/mapreduce_client/conf # export KYUUBI_JAVA_OPTS="-Xmx10g -XX:+UnlockDiagnosticVMOptions - XX:ParGCCardsPerStrideChunk=4096 Language Spark SQL Hive QL Optimizer Spark SQL Catalyst Hive Optimizer Engine up to Spark 3.x MapReduce/up to Spark 2.3/Tez Performance High Low Compatibility with Spark Good Bad(need to rebuild on0 码力 | 199 页 | 4.44 MB | 1 年前3Apache Kyuubi 1.4.1 Documentation
JAVA_HOME=/usr/jdk64/jdk1.8.0_152 # export SPARK_HOME=/opt/spark # export HADOOP_CONF_DIR=/usr/ndp/current/mapreduce_client/conf # export KYUUBI_JAVA_OPTS="-Xmx10g -XX:+UnlockDiagnosticVMOptions - XX:ParGCCardsPerStrideChunk=4096 Language Spark SQL Hive QL Optimizer Spark SQL Catalyst Hive Optimizer Engine up to Spark 3.x MapReduce/up to Spark 2.3/Tez Performance High Low Compatibility with Spark Good Bad(need to rebuild on0 码力 | 233 页 | 4.62 MB | 1 年前3Apache Kyuubi 1.4.0 Documentation
JAVA_HOME=/usr/jdk64/jdk1.8.0_152 # export SPARK_HOME=/opt/spark # export HADOOP_CONF_DIR=/usr/ndp/current/mapreduce_client/conf # export KYUUBI_JAVA_OPTS="-Xmx10g -XX:+UnlockDiagnosticVMOptions - XX:ParGCCardsPerStrideChunk=4096 Language Spark SQL Hive QL Optimizer Spark SQL Catalyst Hive Optimizer Engine up to Spark 3.x MapReduce/up to Spark 2.3/Tez Performance High Low Compatibility with Spark Good Bad(need to rebuild on0 码力 | 233 页 | 4.62 MB | 1 年前3Apache Kyuubi 1.5.1 Documentation
JAVA_HOME=/usr/jdk64/jdk1.8.0_152 # export SPARK_HOME=/opt/spark # export HADOOP_CONF_DIR=/usr/ndp/current/mapreduce_client/conf # export KYUUBI_JAVA_OPTS="-Xmx10g -XX:+UnlockDiagnosticVMOptions - XX:ParGCCardsPerStrideChunk=4096 Language Spark SQL Hive QL Optimizer Spark SQL Catalyst Hive Optimizer Engine up to Spark 3.x MapReduce/up to Spark 2.3/Tez Performance High Low Compatibility with Spark Good Bad(need to rebuild on0 码力 | 267 页 | 5.80 MB | 1 年前3Apache Kyuubi 1.5.2 Documentation
JAVA_HOME=/usr/jdk64/jdk1.8.0_152 # export SPARK_HOME=/opt/spark # export HADOOP_CONF_DIR=/usr/ndp/current/mapreduce_client/conf # export KYUUBI_JAVA_OPTS="-Xmx10g -XX:+UnlockDiagnosticVMOptions - XX:ParGCCardsPerStrideChunk=4096 Language Spark SQL Hive QL Optimizer Spark SQL Catalyst Hive Optimizer Engine up to Spark 3.x MapReduce/up to Spark 2.3/Tez Performance High Low Compatibility with Spark Good Bad(need to rebuild on0 码力 | 267 页 | 5.80 MB | 1 年前3Apache Kyuubi 1.5.0 Documentation
JAVA_HOME=/usr/jdk64/jdk1.8.0_152 # export SPARK_HOME=/opt/spark # export HADOOP_CONF_DIR=/usr/ndp/current/mapreduce_client/conf # export KYUUBI_JAVA_OPTS="-Xmx10g -XX:+UnlockDiagnosticVMOptions - XX:ParGCCardsPerStrideChunk=4096 Language Spark SQL Hive QL Optimizer Spark SQL Catalyst Hive Optimizer Engine up to Spark 3.x MapReduce/up to Spark 2.3/Tez Performance High Low Compatibility with Spark Good Bad(need to rebuild on0 码力 | 267 页 | 5.80 MB | 1 年前3
共 36 条
- 1
- 2
- 3
- 4