GridFSDAO

dev.mongocamp.driver.mongodb.GridFSDAO
abstract class GridFSDAO(provider: DatabaseProvider, bucketName: String) extends Metadata

Attributes

Graph
Supertypes
class Metadata
class Crud
class Search
class Base
trait LazyLogging
class Object
trait Matchable
class Any
Show all

Members list

Type members

Inherited classlikes

object Chunks extends MongoDAO[Document]

Attributes

Inherited from:
Metadata
Supertypes
class MongoDAO[Document]
class Crud[Document]
class Search[Document]
class Base[Document]
trait CirceSchema
trait LazyLogging
class Object
trait Matchable
class Any
Show all
object Files extends MongoDAO[Document]

Attributes

Inherited from:
Metadata
Supertypes
class MongoDAO[Document]
class Crud[Document]
class Search[Document]
class Base[Document]
trait CirceSchema
trait LazyLogging
class Object
trait Matchable
class Any
Show all

Value members

Concrete methods

def addChangeObserver(observer: ChangeObserver[Document]): ChangeObserver[Document]
def count(filter: Bson, options: CountOptions): Observable[Long]
def createMetadataIndex(key: String, sortAscending: Boolean): SingleObservable[String]
def dropIndexForName(name: String): SingleObservable[Unit]
protected def gridfsBucket: GridFSBucket
def renameFile(id: ObjectId, newFilename: String): Observable[Unit]
def renameFile(file: GridFSFile, newFilename: String): Observable[Unit]
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any
def withChunkSizeBytes(chunkSizeBytes: Int): Unit
def withReadConcern(readConcern: ReadConcern): Unit
def withReadPreference(readPreference: ReadPreference): Unit
def withWriteConcern(writeConcern: WriteConcern): Unit

Inherited methods

def chunkSizeBytes: Int

Attributes

Inherited from:
Base
def chunksCollectionName: String

Attributes

Inherited from:
Metadata
def createMetadataKey(key: String): String

Attributes

Inherited from:
Base
def deleteOne(id: ObjectId): Observable[Unit]

Attributes

Inherited from:
Crud
def download(oid: ObjectId, outputStream: OutputStream): GridFSStreamObserver

Attributes

Inherited from:
Base
def download(id: ObjectId, file: File): GridFSStreamObserver

Attributes

Inherited from:
Base
def download(oid: ObjectId): GridFSDownloadObservable

Attributes

Inherited from:
Base
def downloadFileResult(id: ObjectId, file: File): Long

Attributes

Inherited from:
Base
def downloadStreamResult(id: ObjectId, outputStream: OutputStream): Long

Attributes

Inherited from:
Base
def drop(): Observable[Unit]

Attributes

Inherited from:
Base
def filesCollectionName: String

Attributes

Inherited from:
Metadata
def find(key: String, value: Any): GridFSFindObservable

Attributes

Inherited from:
Search
def find(filter: Bson, sort: Bson, limit: Int): GridFSFindObservable

Attributes

Inherited from:
Search
def findById(oid: ObjectId): GridFSFindObservable

Attributes

Inherited from:
Search
def findByMetadataValue(key: String, value: Any): GridFSFindObservable

Attributes

Inherited from:
Search
def insertOne(fileName: String, stream: InputStream, metadata: AnyRef, chunkSizeBytes: Int): Observable[ObjectId]

Attributes

Inherited from:
Crud
def readConcern: ReadConcern

Attributes

Inherited from:
Base
def readPreference: ReadPreference

Attributes

Inherited from:
Base
protected def streamObserverResult(observer: GridFSStreamObserver): Long

Attributes

Inherited from:
Base
def updateMetadata(oid: ObjectId, value: Any): Observable[UpdateResult]

Attributes

Inherited from:
Metadata
def updateMetadataElement(filter: Bson, key: String, value: Any): Observable[UpdateResult]

Attributes

Inherited from:
Metadata
def updateMetadataElement(oid: ObjectId, key: String, value: Any): Observable[UpdateResult]

Attributes

Inherited from:
Metadata
def updateMetadataElements(oid: ObjectId, elements: Map[String, Any]): Observable[UpdateResult]

Attributes

Inherited from:
Metadata
def updateMetadataElements(filter: Bson, elements: Map[String, Any]): Observable[UpdateResult]

Attributes

Inherited from:
Metadata
def updateMetadataElements(filter: Bson, updates: Bson*): Observable[UpdateResult]

Attributes

Inherited from:
Metadata
def upload(fileName: String, source: Observable[ByteBuffer], metadata: AnyRef, chunkSizeBytes: Int): Observable[ObjectId]

Attributes

Inherited from:
Base
def uploadFile(fileName: String, file: File, metadata: AnyRef, chunkSizeBytes: Int): Observable[ObjectId]

Attributes

Inherited from:
Base
def writeConcern: WriteConcern

Attributes

Inherited from:
Base

Concrete fields

protected var bucket: GridFSBucket
protected val databaseName: String

Inherited fields

lazy protected val logger: Logger

Attributes

Inherited from:
LazyLogging