io.realm
Implemented interfaces:
The default implementation for determining if a file should be compacted or not. This implementation will only trigger if the file is above 50 MB and more than 50% can be reclaimed.
Constructores
Constructor and Description |
|---|
Resumen del método
Modificador y Tipo | Método y descripción |
|---|---|
public booleano | This method determines if the Realm file should be compacted before opened and returned to the user. |
Inherited Methods
Métodos heredados de la clase java.lang.Object:
getClass,hashCode,equals,clone,toString,notify,notifyAll,wait,wait,wait,finalize
Constructor Detail
public DefaultCompactOnLaunchCallback () |
|---|
Detalle del método
shouldCompact
Este método determina si el archivo Realm se debe compactar antes de abrirlo y devolverlo al usuario. Se le pasa el tamaño total del archivo (datos + espacio libre) y los bytes utilizados por los datos en el archivo. Devuelve {code true} to indicate an attempt to compact the file should be made. Otherwise, the compaction will be skipped. |