@ -11,8 +11,8 @@ import java.util.*;
/ * *
/ * *
* ColumnFamilyOptions to control the behavior of a database . It will be used
* ColumnFamilyOptions to control the behavior of a database . It will be used
* during the creation of a { @link org . rocksdb . RocksDB } ( i . e . , RocksDB . open ( ) ) .
* during the creation of a { @link org . rocksdb . RocksDB } ( i . e . , RocksDB . open ( ) ) .
*
* < p >
* As a descende nt of { @link AbstractNativeReference } , this class is { @link AutoCloseable }
* As a descenda nt of { @link AbstractNativeReference } , this class is { @link AutoCloseable }
* and will be automatically released if opened in the preamble of a try with resources block .
* and will be automatically released if opened in the preamble of a try with resources block .
* /
* /
public class ColumnFamilyOptions extends RocksObject
public class ColumnFamilyOptions extends RocksObject
@ -24,7 +24,7 @@ public class ColumnFamilyOptions extends RocksObject
/ * *
/ * *
* Construct ColumnFamilyOptions .
* Construct ColumnFamilyOptions .
*
* < p >
* This constructor will create ( by allocating a block of memory )
* This constructor will create ( by allocating a block of memory )
* an { @code rocksdb : : ColumnFamilyOptions } in the c + + side .
* an { @code rocksdb : : ColumnFamilyOptions } in the c + + side .
* /
* /
@ -34,13 +34,13 @@ public class ColumnFamilyOptions extends RocksObject
/ * *
/ * *
* Copy constructor for ColumnFamilyOptions .
* Copy constructor for ColumnFamilyOptions .
*
* < p >
* NOTE : This does a shallow copy , which means comparator , merge_operator , compaction_filter ,
* NOTE : This does a shallow copy , which means comparator , merge_operator , compaction_filter ,
* compaction_filter_factory and other pointers will be cloned !
* compaction_filter_factory and other pointers will be cloned !
*
*
* @param other The ColumnFamilyOptions to copy .
* @param other The ColumnFamilyOptions to copy .
* /
* /
public ColumnFamilyOptions ( ColumnFamilyOptions other ) {
public ColumnFamilyOptions ( final ColumnFamilyOptions other ) {
super ( copyColumnFamilyOptions ( other . nativeHandle_ ) ) ;
super ( copyColumnFamilyOptions ( other . nativeHandle_ ) ) ;
this . memTableConfig_ = other . memTableConfig_ ;
this . memTableConfig_ = other . memTableConfig_ ;
this . tableFormatConfig_ = other . tableFormatConfig_ ;
this . tableFormatConfig_ = other . tableFormatConfig_ ;
@ -707,7 +707,7 @@ public class ColumnFamilyOptions extends RocksObject
}
}
@Override
@Override
public ColumnFamilyOptions setBloomLocality ( int bloomLocality ) {
public ColumnFamilyOptions setBloomLocality ( final int bloomLocality ) {
setBloomLocality ( nativeHandle_ , bloomLocality ) ;
setBloomLocality ( nativeHandle_ , bloomLocality ) ;
return this ;
return this ;
}
}
@ -742,9 +742,7 @@ public class ColumnFamilyOptions extends RocksObject
}
}
@Override
@Override
public ColumnFamilyOptions
public ColumnFamilyOptions setMemtableHugePageSize ( final long memtableHugePageSize ) {
setMemtableHugePageSize (
long memtableHugePageSize ) {
setMemtableHugePageSize ( nativeHandle_ ,
setMemtableHugePageSize ( nativeHandle_ ,
memtableHugePageSize ) ;
memtableHugePageSize ) ;
return this ;
return this ;
@ -756,7 +754,8 @@ public class ColumnFamilyOptions extends RocksObject
}
}
@Override
@Override
public ColumnFamilyOptions setSoftPendingCompactionBytesLimit ( long softPendingCompactionBytesLimit ) {
public ColumnFamilyOptions setSoftPendingCompactionBytesLimit (
final long softPendingCompactionBytesLimit ) {
setSoftPendingCompactionBytesLimit ( nativeHandle_ ,
setSoftPendingCompactionBytesLimit ( nativeHandle_ ,
softPendingCompactionBytesLimit ) ;
softPendingCompactionBytesLimit ) ;
return this ;
return this ;
@ -768,7 +767,8 @@ public class ColumnFamilyOptions extends RocksObject
}
}
@Override
@Override
public ColumnFamilyOptions setHardPendingCompactionBytesLimit ( long hardPendingCompactionBytesLimit ) {
public ColumnFamilyOptions setHardPendingCompactionBytesLimit (
final long hardPendingCompactionBytesLimit ) {
setHardPendingCompactionBytesLimit ( nativeHandle_ , hardPendingCompactionBytesLimit ) ;
setHardPendingCompactionBytesLimit ( nativeHandle_ , hardPendingCompactionBytesLimit ) ;
return this ;
return this ;
}
}
@ -779,7 +779,8 @@ public class ColumnFamilyOptions extends RocksObject
}
}
@Override
@Override
public ColumnFamilyOptions setLevel0FileNumCompactionTrigger ( int level0FileNumCompactionTrigger ) {
public ColumnFamilyOptions setLevel0FileNumCompactionTrigger (
final int level0FileNumCompactionTrigger ) {
setLevel0FileNumCompactionTrigger ( nativeHandle_ , level0FileNumCompactionTrigger ) ;
setLevel0FileNumCompactionTrigger ( nativeHandle_ , level0FileNumCompactionTrigger ) ;
return this ;
return this ;
}
}
@ -790,7 +791,7 @@ public class ColumnFamilyOptions extends RocksObject
}
}
@Override
@Override
public ColumnFamilyOptions setLevel0SlowdownWritesTrigger ( int level0SlowdownWritesTrigger ) {
public ColumnFamilyOptions setLevel0SlowdownWritesTrigger ( final int level0SlowdownWritesTrigger ) {
setLevel0SlowdownWritesTrigger ( nativeHandle_ , level0SlowdownWritesTrigger ) ;
setLevel0SlowdownWritesTrigger ( nativeHandle_ , level0SlowdownWritesTrigger ) ;
return this ;
return this ;
}
}
@ -801,7 +802,7 @@ public class ColumnFamilyOptions extends RocksObject
}
}
@Override
@Override
public ColumnFamilyOptions setLevel0StopWritesTrigger ( int level0StopWritesTrigger ) {
public ColumnFamilyOptions setLevel0StopWritesTrigger ( final int level0StopWritesTrigger ) {
setLevel0StopWritesTrigger ( nativeHandle_ , level0StopWritesTrigger ) ;
setLevel0StopWritesTrigger ( nativeHandle_ , level0StopWritesTrigger ) ;
return this ;
return this ;
}
}
@ -812,7 +813,8 @@ public class ColumnFamilyOptions extends RocksObject
}
}
@Override
@Override
public ColumnFamilyOptions setMaxBytesForLevelMultiplierAdditional ( int [ ] maxBytesForLevelMultiplierAdditional ) {
public ColumnFamilyOptions setMaxBytesForLevelMultiplierAdditional (
final int [ ] maxBytesForLevelMultiplierAdditional ) {
setMaxBytesForLevelMultiplierAdditional ( nativeHandle_ , maxBytesForLevelMultiplierAdditional ) ;
setMaxBytesForLevelMultiplierAdditional ( nativeHandle_ , maxBytesForLevelMultiplierAdditional ) ;
return this ;
return this ;
}
}
@ -823,7 +825,7 @@ public class ColumnFamilyOptions extends RocksObject
}
}
@Override
@Override
public ColumnFamilyOptions setParanoidFileChecks ( boolean paranoidFileChecks ) {
public ColumnFamilyOptions setParanoidFileChecks ( final boolean paranoidFileChecks ) {
setParanoidFileChecks ( nativeHandle_ , paranoidFileChecks ) ;
setParanoidFileChecks ( nativeHandle_ , paranoidFileChecks ) ;
return this ;
return this ;
}
}
@ -931,7 +933,8 @@ public class ColumnFamilyOptions extends RocksObject
}
}
@Override
@Override
public ColumnFamilyOptions setSstPartitionerFactory ( SstPartitionerFactory sstPartitionerFactory ) {
public ColumnFamilyOptions setSstPartitionerFactory (
final SstPartitionerFactory sstPartitionerFactory ) {
setSstPartitionerFactory ( nativeHandle_ , sstPartitionerFactory . nativeHandle_ ) ;
setSstPartitionerFactory ( nativeHandle_ , sstPartitionerFactory . nativeHandle_ ) ;
this . sstPartitionerFactory_ = sstPartitionerFactory ;
this . sstPartitionerFactory_ = sstPartitionerFactory ;
return this ;
return this ;
@ -967,9 +970,9 @@ public class ColumnFamilyOptions extends RocksObject
* for reads . See also the options min_blob_size , blob_file_size ,
* for reads . See also the options min_blob_size , blob_file_size ,
* blob_compression_type , enable_blob_garbage_collection , and
* blob_compression_type , enable_blob_garbage_collection , and
* blob_garbage_collection_age_cutoff below .
* blob_garbage_collection_age_cutoff below .
*
* < p >
* Default : false
* Default : false
*
* < p >
* Dynamically changeable through
* Dynamically changeable through
* { @link RocksDB # setOptions ( ColumnFamilyHandle , MutableColumnFamilyOptions ) } .
* { @link RocksDB # setOptions ( ColumnFamilyHandle , MutableColumnFamilyOptions ) } .
*
*
@ -990,9 +993,9 @@ public class ColumnFamilyOptions extends RocksObject
* for reads . See also the options min_blob_size , blob_file_size ,
* for reads . See also the options min_blob_size , blob_file_size ,
* blob_compression_type , enable_blob_garbage_collection , and
* blob_compression_type , enable_blob_garbage_collection , and
* blob_garbage_collection_age_cutoff below .
* blob_garbage_collection_age_cutoff below .
*
* < p >
* Default : false
* Default : false
*
* < p >
* Dynamically changeable through
* Dynamically changeable through
* { @link RocksDB # setOptions ( ColumnFamilyHandle , MutableColumnFamilyOptions ) } .
* { @link RocksDB # setOptions ( ColumnFamilyHandle , MutableColumnFamilyOptions ) } .
*
*
@ -1008,9 +1011,9 @@ public class ColumnFamilyOptions extends RocksObject
* alongside the keys in SST files in the usual fashion . A value of zero for
* alongside the keys in SST files in the usual fashion . A value of zero for
* this option means that all values are stored in blob files . Note that
* this option means that all values are stored in blob files . Note that
* enable_blob_files has to be set in order for this option to have any effect .
* enable_blob_files has to be set in order for this option to have any effect .
*
* < p >
* Default : 0
* Default : 0
*
* < p >
* Dynamically changeable through
* Dynamically changeable through
* { @link RocksDB # setOptions ( ColumnFamilyHandle , MutableColumnFamilyOptions ) } .
* { @link RocksDB # setOptions ( ColumnFamilyHandle , MutableColumnFamilyOptions ) } .
*
*
@ -1029,9 +1032,9 @@ public class ColumnFamilyOptions extends RocksObject
* alongside the keys in SST files in the usual fashion . A value of zero for
* alongside the keys in SST files in the usual fashion . A value of zero for
* this option means that all values are stored in blob files . Note that
* this option means that all values are stored in blob files . Note that
* enable_blob_files has to be set in order for this option to have any effect .
* enable_blob_files has to be set in order for this option to have any effect .
*
* < p >
* Default : 0
* Default : 0
*
* < p >
* Dynamically changeable through
* Dynamically changeable through
* { @link RocksDB # setOptions ( ColumnFamilyHandle , MutableColumnFamilyOptions ) } .
* { @link RocksDB # setOptions ( ColumnFamilyHandle , MutableColumnFamilyOptions ) } .
*
*
@ -1046,9 +1049,9 @@ public class ColumnFamilyOptions extends RocksObject
* Set the size limit for blob files . When writing blob files , a new file is opened
* Set the size limit for blob files . When writing blob files , a new file is opened
* once this limit is reached . Note that enable_blob_files has to be set in
* once this limit is reached . Note that enable_blob_files has to be set in
* order for this option to have any effect .
* order for this option to have any effect .
*
* < p >
* Default : 256 MB
* Default : 256 MB
*
* < p >
* Dynamically changeable through
* Dynamically changeable through
* { @link RocksDB # setOptions ( ColumnFamilyHandle , MutableColumnFamilyOptions ) } .
* { @link RocksDB # setOptions ( ColumnFamilyHandle , MutableColumnFamilyOptions ) } .
*
*
@ -1066,9 +1069,9 @@ public class ColumnFamilyOptions extends RocksObject
* Get the size limit for blob files . When writing blob files , a new file is opened
* Get the size limit for blob files . When writing blob files , a new file is opened
* once this limit is reached . Note that enable_blob_files has to be set in
* once this limit is reached . Note that enable_blob_files has to be set in
* order for this option to have any effect .
* order for this option to have any effect .
*
* < p >
* Default : 256 MB
* Default : 256 MB
*
* < p >
* Dynamically changeable through
* Dynamically changeable through
* { @link RocksDB # setOptions ( ColumnFamilyHandle , MutableColumnFamilyOptions ) } .
* { @link RocksDB # setOptions ( ColumnFamilyHandle , MutableColumnFamilyOptions ) } .
*
*
@ -1083,9 +1086,9 @@ public class ColumnFamilyOptions extends RocksObject
* Set the compression algorithm to use for large values stored in blob files . Note
* Set the compression algorithm to use for large values stored in blob files . Note
* that enable_blob_files has to be set in order for this option to have any
* that enable_blob_files has to be set in order for this option to have any
* effect .
* effect .
*
* < p >
* Default : no compression
* Default : no compression
*
* < p >
* Dynamically changeable through
* Dynamically changeable through
* { @link RocksDB # setOptions ( ColumnFamilyHandle , MutableColumnFamilyOptions ) } .
* { @link RocksDB # setOptions ( ColumnFamilyHandle , MutableColumnFamilyOptions ) } .
*
*
@ -1103,9 +1106,9 @@ public class ColumnFamilyOptions extends RocksObject
* Get the compression algorithm to use for large values stored in blob files . Note
* Get the compression algorithm to use for large values stored in blob files . Note
* that enable_blob_files has to be set in order for this option to have any
* that enable_blob_files has to be set in order for this option to have any
* effect .
* effect .
*
* < p >
* Default : no compression
* Default : no compression
*
* < p >
* Dynamically changeable through
* Dynamically changeable through
* { @link RocksDB # setOptions ( ColumnFamilyHandle , MutableColumnFamilyOptions ) } .
* { @link RocksDB # setOptions ( ColumnFamilyHandle , MutableColumnFamilyOptions ) } .
*
*
@ -1122,7 +1125,7 @@ public class ColumnFamilyOptions extends RocksObject
* relocated to new files as they are encountered during compaction , which makes
* relocated to new files as they are encountered during compaction , which makes
* it possible to clean up blob files once they contain nothing but
* it possible to clean up blob files once they contain nothing but
* obsolete / garbage blobs . See also blob_garbage_collection_age_cutoff below .
* obsolete / garbage blobs . See also blob_garbage_collection_age_cutoff below .
*
* < p >
* Default : false
* Default : false
*
*
* @param enableBlobGarbageCollection true iff blob garbage collection is to be enabled
* @param enableBlobGarbageCollection true iff blob garbage collection is to be enabled
@ -1142,7 +1145,7 @@ public class ColumnFamilyOptions extends RocksObject
* relocated to new files as they are encountered during compaction , which makes
* relocated to new files as they are encountered during compaction , which makes
* it possible to clean up blob files once they contain nothing but
* it possible to clean up blob files once they contain nothing but
* obsolete / garbage blobs . See also blob_garbage_collection_age_cutoff below .
* obsolete / garbage blobs . See also blob_garbage_collection_age_cutoff below .
*
* < p >
* Default : false
* Default : false
*
*
* @return true iff blob garbage collection is currently enabled
* @return true iff blob garbage collection is currently enabled
@ -1158,7 +1161,7 @@ public class ColumnFamilyOptions extends RocksObject
* where N = garbage_collection_cutoff * number_of_blob_files . Note that
* where N = garbage_collection_cutoff * number_of_blob_files . Note that
* enable_blob_garbage_collection has to be set in order for this option to have
* enable_blob_garbage_collection has to be set in order for this option to have
* any effect .
* any effect .
*
* < p >
* Default : 0 . 25
* Default : 0 . 25
*
*
* @param blobGarbageCollectionAgeCutoff the new blob garbage collection age cutoff
* @param blobGarbageCollectionAgeCutoff the new blob garbage collection age cutoff
@ -1178,7 +1181,7 @@ public class ColumnFamilyOptions extends RocksObject
* where N = garbage_collection_cutoff * number_of_blob_files . Note that
* where N = garbage_collection_cutoff * number_of_blob_files . Note that
* enable_blob_garbage_collection has to be set in order for this option to have
* enable_blob_garbage_collection has to be set in order for this option to have
* any effect .
* any effect .
*
* < p >
* Default : 0 . 25
* Default : 0 . 25
*
*
* @return the current blob garbage collection age cutoff
* @return the current blob garbage collection age cutoff
@ -1194,12 +1197,12 @@ public class ColumnFamilyOptions extends RocksObject
* the blob files in question , assuming they are all eligible based on the
* the blob files in question , assuming they are all eligible based on the
* value of { @link # blobGarbageCollectionAgeCutoff } above . This option is
* value of { @link # blobGarbageCollectionAgeCutoff } above . This option is
* currently only supported with leveled compactions .
* currently only supported with leveled compactions .
*
* < p >
* Note that { @link # enableBlobGarbageCollection } has to be set in order for this
* Note that { @link # enableBlobGarbageCollection } has to be set in order for this
* option to have any effect .
* option to have any effect .
*
* < p >
* Default : 1 . 0
* Default : 1 . 0
*
* < p >
* Dynamically changeable through the SetOptions ( ) API
* Dynamically changeable through the SetOptions ( ) API
*
*
* @param blobGarbageCollectionForceThreshold new value for the threshold
* @param blobGarbageCollectionForceThreshold new value for the threshold
@ -1223,9 +1226,9 @@ public class ColumnFamilyOptions extends RocksObject
/ * *
/ * *
* Set compaction readahead for blob files .
* Set compaction readahead for blob files .
*
* < p >
* Default : 0
* Default : 0
*
* < p >
* Dynamically changeable through
* Dynamically changeable through
* { @link RocksDB # setOptions ( ColumnFamilyHandle , MutableColumnFamilyOptions ) } .
* { @link RocksDB # setOptions ( ColumnFamilyHandle , MutableColumnFamilyOptions ) } .
*
*
@ -1252,9 +1255,9 @@ public class ColumnFamilyOptions extends RocksObject
/ * *
/ * *
* Set a certain LSM tree level to enable blob files .
* Set a certain LSM tree level to enable blob files .
*
* < p >
* Default : 0
* Default : 0
*
* < p >
* Dynamically changeable through
* Dynamically changeable through
* { @link RocksDB # setOptions ( ColumnFamilyHandle , MutableColumnFamilyOptions ) } .
* { @link RocksDB # setOptions ( ColumnFamilyHandle , MutableColumnFamilyOptions ) } .
*
*
@ -1270,7 +1273,7 @@ public class ColumnFamilyOptions extends RocksObject
/ * *
/ * *
* Get the starting LSM tree level to enable blob files .
* Get the starting LSM tree level to enable blob files .
*
* < p >
* Default : 0
* Default : 0
*
*
* @return the current LSM tree level to enable blob files .
* @return the current LSM tree level to enable blob files .
@ -1282,9 +1285,9 @@ public class ColumnFamilyOptions extends RocksObject
/ * *
/ * *
* Set a certain prepopulate blob cache option .
* Set a certain prepopulate blob cache option .
*
* < p >
* Default : 0
* Default : 0
*
* < p >
* Dynamically changeable through
* Dynamically changeable through
* { @link RocksDB # setOptions ( ColumnFamilyHandle , MutableColumnFamilyOptions ) } .
* { @link RocksDB # setOptions ( ColumnFamilyHandle , MutableColumnFamilyOptions ) } .
*
*
@ -1301,7 +1304,7 @@ public class ColumnFamilyOptions extends RocksObject
/ * *
/ * *
* Get the prepopulate blob cache option .
* Get the prepopulate blob cache option .
*
* < p >
* Default : 0
* Default : 0
*
*
* @return the current prepopulate blob cache option .
* @return the current prepopulate blob cache option .