class Statistics extends ContextLogging
Container for all the statistics accumulators created. All methods can be called in driver only.
- Alphabetic
- By Inheritance
- Statistics
- ContextLogging
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new Statistics(sc: SparkContext)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
accumulatorsToJson(): String
Returns accumulator names and current values as JSON, sorted by accumulator name.
- def accumulatorsToStrings(valSep: String): Iterable[String]
-
def
accumulatorsToTsv(): String
Returns accumulator names and current values as Tab Separated Values.
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- val bucketAccumulators: Map[String, BucketsAccumulator[Int]]
-
def
classForLogger: Class[_]
Override this to change the class that is displayed in logs.
Override this to change the class that is displayed in logs.
- Attributes
- protected
- Definition Classes
- ContextLogging
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
getAccumulator(bucketsLimits: Array[Int], name: String): BucketsAccumulator[Int]
Retrieve existing Bucket accumulator with given name and initial value, or create new if it doesn't exist
-
def
getAccumulator(name: String): LongAccumulator
Retrieve existing Long accumulator with given name, or create new if it doesn't exist
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
logAccumulators(): Unit
Logs all accumulators.
-
final
lazy val
logger: ContextAwareLogger
The logger to use for normal and context-aware messages.
The logger to use for normal and context-aware messages.
- Attributes
- protected
- Definition Classes
- ContextLogging
- val longAccumulators: Map[String, LongAccumulator]
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()