Metadata

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

Attributes

Graph
Supertypes
class Crud
class Search
class Base
trait LazyLogging
class Object
trait Matchable
class Any
Show all
Known subtypes
class GridFSDAO

Members list

Type members

Classlikes

object Chunks extends MongoDAO[Document]

Attributes

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
Self type
Chunks.type
object Files extends MongoDAO[Document]

Attributes

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
Self type
Files.type

Value members

Concrete methods

def chunksCollectionName: String
def filesCollectionName: String
def updateMetadata(oid: ObjectId, value: Any): Observable[UpdateResult]
def updateMetadataElement(oid: ObjectId, key: String, value: Any): Observable[UpdateResult]
def updateMetadataElement(filter: Bson, key: String, value: Any): Observable[UpdateResult]
def updateMetadataElements(filter: Bson, updates: Bson*): Observable[UpdateResult]
def updateMetadataElements(filter: Bson, elements: Map[String, Any]): Observable[UpdateResult]
def updateMetadataElements(oid: ObjectId, elements: Map[String, Any]): Observable[UpdateResult]

Inherited methods

def chunkSizeBytes: Int

Attributes

Inherited from:
Base
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 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 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

Inherited and Abstract methods

protected def gridfsBucket: GridFSBucket

Attributes

Inherited from:
Base

Inherited fields

lazy protected val logger: Logger

Attributes

Inherited from:
LazyLogging