org.allenai

datastore

package datastore

Visibility
  1. Public
  2. All

Type Members

  1. class Datastore extends Logging

    Represents a datastore

    Represents a datastore

    This is a thin layer over an S3 bucket that stores the data. Data is identified by group ("org.allenai.something"), name ("WordNet"), and version (an integer). It supports files as well as directories.

    Items are published to the datastore, and then referred to with the *path() methods. All data is cached, so access to all items should be very fast, except for the first time.

    It might make more sense to get Datastore objects from the companion object, rather than creating them here.

  2. trait Datastores extends AnyRef

    A collection of convenience methods for accessing the datastore from a class

    A collection of convenience methods for accessing the datastore from a class

    Inherit this trait in your class to get easy access to the private and the public datastore. By default, the group name for all items is the name of the package the class lives in, but you can override it by overriding the datastoreGroup member.

Value Members

  1. object Datastore extends Datastore

  2. object PrivateDatastore extends Datastore

  3. object TempCleanup extends Logging

    Remembers temporary files and directories that have to be cleaned up before the JVM exits, and cleans them up when the JVM exits.

    Remembers temporary files and directories that have to be cleaned up before the JVM exits, and cleans them up when the JVM exits. As opposed to Java's File.deleteonexit(), this can clean up non-empty directories.

Ungrouped