org.ejdb.driver
Class EJDBCollection.Options

java.lang.Object
  extended by org.ejdb.driver.EJDBCollection.Options
Enclosing class:
EJDBCollection

public static class EJDBCollection.Options
extends java.lang.Object

Collection meta information (and creation options)


Constructor Summary
EJDBCollection.Options()
           
EJDBCollection.Options(boolean compressed, boolean large, long records, int cachedRecords)
           
 
Method Summary
 long getBuckets()
           
 int getCachedRecords()
           
 boolean isCompressed()
           
 boolean isLarge()
           
 java.lang.String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EJDBCollection.Options

public EJDBCollection.Options()

EJDBCollection.Options

public EJDBCollection.Options(boolean compressed,
                              boolean large,
                              long records,
                              int cachedRecords)
Parameters:
compressed - If true collection records will be compressed with DEFLATE compression. Default: false.
large - Specifies that the size of the database can be larger than 2GB. Default: false.
records - Estimated number of records in this collection. Default: 65535.
cachedRecords - Max number of cached records in shared memory segment. Default: 0
Method Detail

getBuckets

public long getBuckets()

isCompressed

public boolean isCompressed()

isLarge

public boolean isLarge()

getCachedRecords

public int getCachedRecords()

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object