DUE TO SPAM, SIGN-UP IS DISABLED. Goto Selfserve wiki signup and request an account.
...
Limit lines to 100 characters.
Indentation
Use 2-space indentation in general. For function declarations, use 4 space indentation for its parameters when they don't fit in a single line. For example:
| Code Block | ||||
|---|---|---|---|---|
| ||||
// Correct:
if (true) {
println("Wow!")
}
// Wrong:
if (true) {
println("Wow!")
}
// Correct:
def newAPIHadoopFile[K, V, F <: NewInputFormat[K, V]](
path: String,
fClass: Class[F],
kClass: Class[K],
vClass: Class[V],
conf: Configuration = hadoopConfiguration): RDD[(K, V)] = {
// function body
}
// Wrong
def newAPIHadoopFile[K, V, F <: NewInputFormat[K, V]](
path: String,
fClass: Class[F],
kClass: Class[K],
vClass: Class[V],
conf: Configuration = hadoopConfiguration): RDD[(K, V)] = {
// function body
}
|
Code documentation style
Use Java docs style instead of Scala docs style.
...