Преглед на файлове

[livy] Add some documentation

Erick Tryzelaar преди 10 години
родител
ревизия
68df878817
променени са 1 файла, в които са добавени 6 реда и са изтрити 0 реда
  1. 6 0
      apps/spark/java/livy-repl/src/main/scala/com/cloudera/hue/livy/repl/Interpreter.scala

+ 6 - 0
apps/spark/java/livy-repl/src/main/scala/com/cloudera/hue/livy/repl/Interpreter.scala

@@ -26,10 +26,16 @@ import _root_.scala.concurrent._
 import _root_.scala.concurrent.duration.Duration
 
 trait Interpreter {
+  /** The Interpreter's state */
   def state: State
 
+    /**
+     * Execute the code and return the result as a Future as it may
+     * take some time to execute.
+     */
   def execute(code: String): Future[JValue]
 
+  /** Shut down the interpreter. */
   def close(): Unit
 
   @throws(classOf[TimeoutException])