object File

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. File
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  10. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  11. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  12. def load[T](fileName: String): T

    Load a scala object from a local/hdfs/s3 path.

    Load a scala object from a local/hdfs/s3 path.

    Notice: S3 path should be like s3a://bucket/xxx.

    See (hadoop aws)[http://hadoop.apache.org/docs/r2.7.3/hadoop-aws/tools/hadoop-aws/index.html] for details, if you want to load model from s3.

    fileName

    file name.

  13. def loadFromHdfs[T](fileName: String): T

    Load file from HDFS

  14. def loadTorch[T](fileName: String): T

    Load torch object from a torch binary file

    Load torch object from a torch binary file

    fileName

    file name.

    returns

    An instance of T

  15. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  17. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  18. def readBytes[T](fileName: String): Array[Byte]
  19. def readHdfsByte(fileName: String): Array[Byte]

    load binary file from HDFS

  20. def save(obj: Serializable, fileName: String, isOverwrite: Boolean = false): Unit

    Save scala object into a local/hdfs/s3 path

    Save scala object into a local/hdfs/s3 path

    Notice: S3 path should be like s3a://bucket/xxx.

    See (hadoop aws)[http://hadoop.apache.org/docs/r2.7.3/hadoop-aws/tools/hadoop-aws/index.html] for details, if you want to save model to s3.

    obj

    object to be saved.

    fileName

    local/hdfs output path.

    isOverwrite

    if overwrite.

  21. def saveBytes(bytes: Array[Byte], fileName: String, isOverwrite: Boolean = false): Unit
  22. def saveToHdfs(obj: Serializable, fileName: String, overwrite: Boolean): Unit

    Write file to HDFS.

  23. def saveTorch(source: Any, fileName: String, objectType: TorchObject, overWrite: Boolean = false): Unit

    Save scala object into a torch binary file

    Save scala object into a torch binary file

    source

    The object to be saved.

    fileName

    file name to saving.

    objectType

    The object type.

    overWrite

    If over write.

  24. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  25. def toString(): String
    Definition Classes
    AnyRef → Any
  26. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped