object Main

The Main object serves as the entry point of the application and provides functionality to parse and analyze a specified dataset of crime information.

This object: - Loads a given CSV file containing crime data. - Sets up a source for reading the data. - Configures a RawTableParser instance to parse the table data with specified predicates. - Analyzes the parsed data and prints relevant results to the console. - Demonstrates how to handle the parsing process using Scala's Try-Success-Failure mechanism.

The application expects the file to be properly located in the resources directory.

Members: - crimeFile: Specifies the file name of the dataset (located in the resources directory). - sy: Sets up a data source using the provided file. - fraction: Defines a fraction value for sampling the data when parsing. - parser: Configures and prepares the table parser with a predicate for data sampling.

Main functionalities: - Parses the source using the configured RawTableParser. - On success: Performs analysis on the parsed data and logs the first 10 rows and summary information. - On failure: Throws an exception indicating the failure reason.

Example Usage: To analyze a specific dataset, update the crimeFile variable with the correct resource file path before running the application.

Annotations
@deprecated
Deprecated

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

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

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[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  6. def doMain(triedUrl: Try[URL]): Unit

    Executes the main logic of the program, which includes reading a crime data file, setting up a table parser with a specific sampling fraction, and performing data analysis on the parsed table.

    Executes the main logic of the program, which includes reading a crime data file, setting up a table parser with a specific sampling fraction, and performing data analysis on the parsed table. The results of the analysis and a subset of the data rows are printed to the console.

    returns

    Unit - This method performs side effects (e.g., file IO, data analysis, and printing) and does not return a value.

  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  9. final def getClass(): Class[_ <: AnyRef]
    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 main(args: Array[String]): Unit
  13. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  15. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  16. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  17. def toString(): String
    Definition Classes
    AnyRef → Any
  18. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  19. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  20. 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 AnyRef

Inherited from Any

Ungrouped