Trait/Object

org.locationtech.geomesa.fs.storage.api

FileSystemStorage

Related Docs: object FileSystemStorage | package api

Permalink

trait FileSystemStorage extends Compactable with Closeable

Persists simple features to a file system and provides query access. Storage implementations are fairly 'lightweight', in that all state is captured in the metadata instance

Linear Supertypes
Closeable, AutoCloseable, Compactable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. FileSystemStorage
  2. Closeable
  3. AutoCloseable
  4. Compactable
  5. AnyRef
  6. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def context: FileSystemContext

    Permalink

    Handle to the file context, root path and configuration

  2. abstract def getFilePaths(partition: String): Seq[StorageFilePath]

    Permalink

    Get the full paths to any files contained in the partition

    Get the full paths to any files contained in the partition

    partition

    partition

    returns

    file paths

  3. abstract def getReader(query: Query, partition: Option[String] = None, threads: Int = 1): CloseableFeatureIterator

    Permalink

    Get a reader for all relevant partitions

    Get a reader for all relevant partitions

    query

    query

    partition

    restrict results to a single partition

    threads

    suggested threads used for reading data files

    returns

    reader

  4. abstract def getWriter(filter: Filter, partition: Option[String] = None, threads: Int = 1): FileSystemUpdateWriter

    Permalink

    Gets a modifying writer.

    Gets a modifying writer. This method is thread-safe and can be called multiple times, although if a feature is modified multiple times concurrently, the last update 'wins'. There is no guarantee that any concurrent modifications will be reflected in the returned writer.

    filter

    the filter used to select features for modification

    partition

    restrict results to a single partition (writes will go to the appropriate partition, regardless)

    threads

    suggested threads used for reading data files

  5. abstract def getWriter(partition: String): FileSystemWriter

    Permalink

    Get a writer for a given partition.

    Get a writer for a given partition. This method is thread-safe and can be called multiple times, although this can result in multiple data files.

    partition

    partition

    returns

    writer

  6. abstract def metadata: StorageMetadata

    Permalink

    The metadata for this storage instance

    The metadata for this storage instance

    returns

    metadata

  7. abstract def compact(partition: Option[String], threads: Int): Unit

    Permalink

    Compact a partition - merge multiple data files into a single file.

    Compact a partition - merge multiple data files into a single file.

    Care should be taken with this method. Currently, there is no guarantee for correct behavior if multiple threads or storage instances attempt to compact the same partition simultaneously.

    partition

    partition to compact, or all partitions

    threads

    suggested threads to use for file system operations

    Definition Classes
    Compactable
    Annotations
    @deprecated
    Deprecated

    replaced with compact(Option[String], Option[Long], Int)

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def close(): Unit

    Permalink
    Definition Classes
    FileSystemStorage → Closeable → AutoCloseable
  7. def compact(partition: Option[String], fileSize: Option[Long] = None, threads: Int = 1): Unit

    Permalink

    Compact a partition - merge multiple data files into a single file.

    Compact a partition - merge multiple data files into a single file.

    Care should be taken with this method. Currently, there is no guarantee for correct behavior if multiple threads or storage instances attempt to compact the same partition simultaneously.

    partition

    partition to compact, or all partitions

    fileSize

    approximate target size of files, in bytes

    threads

    suggested threads to use for file system operations

    Definition Classes
    Compactable
  8. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  12. def getPartitionFilters(filter: Filter, partition: Option[String] = None): Seq[PartitionFilter]

    Permalink

    Get partitions that match a given filter.

    Get partitions that match a given filter. Each set of partitions will have a simplified filter that should be applied to that set

    If there are no partitions that match the filter, an empty list will be returned

    returns

    partitions and predicates for each partition

  13. def getPartitions(filter: Filter): Seq[PartitionMetadata]

    Permalink

    Gets a list of partitions that match the given filter

    Gets a list of partitions that match the given filter

    returns

    partitions

  14. def getPartitions: Seq[PartitionMetadata]

    Permalink

    Pass through to get all partitions from the metadata

  15. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  16. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  17. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  18. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  19. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  21. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  22. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Closeable

Inherited from AutoCloseable

Inherited from Compactable

Inherited from AnyRef

Inherited from Any

Ungrouped