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
- Alphabetic
- By Inheritance
- Crime
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- 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
- 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
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def brief: Option[CrimeLocation]
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- val context: String
- val crimeID: Option[BigInt]
- val crimeType: String
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val fallsWithin: String
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val lastOutcomeCategory: String
- val latitude: Option[Double]
- val location: String
- val longitude: Option[Double]
- val lsoaCode: String
- val lsoaName: String
- val month: String
- 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()
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- val reportedBy: String
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)