Packages

case class Crime(crimeID: Option[BigInt], month: String, reportedBy: String, fallsWithin: String, longitude: Option[Double], latitude: Option[Double], location: String, lsoaCode: String, lsoaName: String, crimeType: String, lastOutcomeCategory: String, context: String) extends Product with Serializable

This example of table parsing is based on the Kaggle data set: Metropolitan Crime Data

The file under resources is an edited version of the Metropolitan Crime Statistics 2023-01 (only the first 5,000 rows)

crimeID

(optional BigInt in hexadecimal notation) see Kaggle.

month

see Kaggle.

reportedBy

see Kaggle.

fallsWithin

see Kaggle.

longitude

(optional Double) the longitude of the incident.

latitude

(optional Double) the latitude of the incident.

location

see Kaggle.

lsoaCode

see Kaggle.

lsoaName

see Kaggle.

crimeType

see Kaggle.

lastOutcomeCategory

see Kaggle.

context

see Kaggle.

Annotations
@deprecated
Deprecated

(Since version 1.7.0) Example code: it moves out of the library, into the tests, in 2.0.0

Linear Supertypes
Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Crime
  2. Serializable
  3. Product
  4. Equals
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Crime(crimeID: Option[BigInt], month: String, reportedBy: String, fallsWithin: String, longitude: Option[Double], latitude: Option[Double], location: String, lsoaCode: String, lsoaName: String, crimeType: String, lastOutcomeCategory: String, context: String)

    crimeID

    (optional BigInt in hexadecimal notation) see Kaggle.

    month

    see Kaggle.

    reportedBy

    see Kaggle.

    fallsWithin

    see Kaggle.

    longitude

    (optional Double) the longitude of the incident.

    latitude

    (optional Double) the latitude of the incident.

    location

    see Kaggle.

    lsoaCode

    see Kaggle.

    lsoaName

    see Kaggle.

    crimeType

    see Kaggle.

    lastOutcomeCategory

    see Kaggle.

    context

    see Kaggle.

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 brief: Option[CrimeLocation]
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  7. val context: String
  8. val crimeID: Option[BigInt]
  9. val crimeType: String
  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. val fallsWithin: String
  12. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  14. val lastOutcomeCategory: String
  15. val latitude: Option[Double]
  16. val location: String
  17. val longitude: Option[Double]
  18. val lsoaCode: String
  19. val lsoaName: String
  20. val month: String
  21. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  22. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  23. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  24. def productElementNames: Iterator[String]
    Definition Classes
    Product
  25. val reportedBy: String
  26. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  27. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  28. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  29. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped