005-scala Array operation actual combat detailed
Worksheet using interactive command execution platform Remember that each time you want to save the corresponding result array of basic operations array subscript is starting from 0 and tuple different buffer array arraybuffer (variable length) array of advanced operations Analysis of common array usage in multidimensional Arrays 1. You can generate a new array by yield and assign a value to the variable 2.for loop and also add if filters to filter the data and generate new data 3.c.filter ( _%2==0). Map (2*_) The expression method (emphasis) that is often used in the production environment 4. Arrays and buffer arrays are all methods that can be called directly to simplify operations 5. Static method 6 of a package can be called directly using the package's reference. A method may have multiple overloaded methods to invoke 7. Arrays can still be elements of an array
Welcome to the vast number of enthusiasts to learn and exchange. Also welcome to join the study enthusiasts
DT Big Data Dream Factory Exchange Group: 462923555
DT Big Data public account: Dt_spark
Video Watch Links
http://www.tudou.com/plcover/Yy5F5gsurSE/
005-scala Array Operation Practical explanation