implicit final class GridStoreExtensions extends AnyVal
Grid Store Extensions
- Alphabetic
- By Inheritance
- GridStoreExtensions
- AnyVal
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
##(): Int
- Definition Classes
- Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
chunkCollectionFuture(): Promise[Collection]
Retrieve this file’s chunks collection.
Retrieve this file’s chunks collection.
- Annotations
- @inline()
-
def
closeFuture(): Promise[Any]
Saves this file to the database.
Saves this file to the database. This will overwrite the old entry if it already exists. This will work properly only if mode was initialized to “w” or “w+”.
- Annotations
- @inline()
-
def
collectionFuture(): Promise[Any]
Retrieves the file collection associated with this object.
Retrieves the file collection associated with this object.
- Annotations
- @inline()
-
def
getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
-
def
getcFuture(): Promise[String]
Retrieves a single character from this file.
Retrieves a single character from this file.
- Annotations
- @inline()
- val gridStore: GridStore
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
openFuture(): Promise[Db]
Opens the file from the database and initialize this object.
Opens the file from the database and initialize this object. Also creates a new one if file does not exist.
- Annotations
- @inline()
-
def
putsFuture(string: String): Promise[GridStore]
Writes a string to the file with a newline character appended at the end if the given string does not have one.
Writes a string to the file with a newline character appended at the end if the given string does not have one.
- Annotations
- @inline()
-
def
readFuture[T <: Any](): Promise[Array[T]]
Retrieves the contents of this file and advances the read/write head.
Retrieves the contents of this file and advances the read/write head. Works with Buffers only.
- Annotations
- @inline()
-
def
readFuture[T <: Any](buffer: Buffer): Promise[Array[T]]
Retrieves the contents of this file and advances the read/write head.
Retrieves the contents of this file and advances the read/write head. Works with Buffers only.
- Annotations
- @inline()
-
def
readFuture[T <: Any](length: Int, buffer: Buffer): Promise[Array[T]]
Retrieves the contents of this file and advances the read/write head.
Retrieves the contents of this file and advances the read/write head. Works with Buffers only.
- Annotations
- @inline()
-
def
readlinesFuture: Promise[Array[String]]
Reads the data of this file.
Reads the data of this file.
- Annotations
- @inline()
-
def
readlinesFuture(separator: String): Promise[Array[String]]
Reads the data of this file.
Reads the data of this file.
- Annotations
- @inline()
-
def
rewindFuture(): Promise[Any]
Deletes all the chunks of this file in the database if mode was set to “w” or “w+” and resets the read/write head to the initial position.
Deletes all the chunks of this file in the database if mode was set to “w” or “w+” and resets the read/write head to the initial position.
- Annotations
- @inline()
-
def
seekFuture(): Promise[GridStore]
Moves the read/write head to a new location.
Moves the read/write head to a new location.
- Annotations
- @inline()
-
def
seekFuture(seekLocation: Int): Promise[GridStore]
Moves the read/write head to a new location.
Moves the read/write head to a new location.
- Annotations
- @inline()
-
def
seekFuture(position: Int, seekLocation: Int): Promise[GridStore]
Moves the read/write head to a new location.
Moves the read/write head to a new location.
- Annotations
- @inline()
-
def
toString(): String
- Definition Classes
- Any
-
def
unlinkFuture(): Promise[Boolean]
Deletes all the chunks of this file in the database.
Deletes all the chunks of this file in the database.
- Annotations
- @inline()
-
def
writeFileFuture(file: String): Promise[GridStore]
Stores a file from the file system to the GridFS database.
Stores a file from the file system to the GridFS database.
- Annotations
- @inline()
-
def
writeFuture(data: String): Promise[GridStore]
Writes some data.
Writes some data. This method will work properly only if initialized with mode “w” or “w+”.
- Annotations
- @inline()
-
def
writeFuture(data: Buffer): Promise[GridStore]
Writes some data.
Writes some data. This method will work properly only if initialized with mode “w” or “w+”.
- Annotations
- @inline()
-
def
writeFuture(data: String, close: Boolean): Promise[GridStore]
Writes some data.
Writes some data. This method will work properly only if initialized with mode “w” or “w+”.
- Annotations
- @inline()
-
def
writeFuture(data: Buffer, close: Boolean): Promise[GridStore]
Writes some data.
Writes some data. This method will work properly only if initialized with mode “w” or “w+”.
- Annotations
- @inline()