@@ -107,31 +107,77 @@ public int maxWriteBufferNumber() {
107
107
return maxWriteBufferNumber (nativeHandle_ );
108
108
}
109
109
110
+ /*
111
+ * Approximate size of user data packed per block. Note that the
112
+ * block size specified here corresponds to uncompressed data. The
113
+ * actual size of the unit read from disk may be smaller if
114
+ * compression is enabled. This parameter can be changed dynamically.
115
+ *
116
+ * Default: 4K
117
+ *
118
+ * @param block size
119
+ * @see RocksDB::Open()
120
+ */
110
121
public void setBlockSize (int blockSize ) {
111
122
checkInitialization ();
112
123
setBlockSize (nativeHandle_ , blockSize );
113
124
}
114
125
126
+ /*
127
+ * Returns block size.
128
+ *
129
+ * @return block size.
130
+ * @see setBlockSize()
131
+ */
115
132
public int blockSize () {
116
133
checkInitialization ();
117
134
return blockSize (nativeHandle_ );
118
135
}
119
136
137
+ /*
138
+ * Disable compaction triggered by seek.
139
+ * With bloomfilter and fast storage, a miss on one level
140
+ * is very cheap if the file handle is cached in table cache
141
+ * (which is true if max_open_files is large).
142
+ *
143
+ * @param disable seek compaction
144
+ * @see RocksDB::Open()
145
+ */
120
146
public void setDisableSeekCompaction (boolean disableSeekCompaction ) {
121
147
checkInitialization ();
122
148
setDisableSeekCompaction (nativeHandle_ , disableSeekCompaction );
123
149
}
124
150
151
+ /*
152
+ * Returns true if disable seek compaction is set to true.
153
+ *
154
+ * @return true if disable seek compaction is set to true.
155
+ * @see setDisableSeekCompaction()
156
+ */
125
157
public boolean disableSeekCompaction () {
126
158
checkInitialization ();
127
159
return disableSeekCompaction (nativeHandle_ );
128
160
}
129
161
162
+ /*
163
+ * Maximum number of concurrent background jobs, submitted to
164
+ * the default LOW priority thread pool
165
+ * Default: 1
166
+ *
167
+ * @param maximum number of concurrent background jobs.
168
+ * @see RocksDB::Open()
169
+ */
130
170
public void setMaxBackgroundCompactions (int maxBackgroundCompactions ) {
131
171
checkInitialization ();
132
172
setMaxBackgroundCompactions (nativeHandle_ , maxBackgroundCompactions );
133
173
}
134
174
175
+ /*
176
+ * Returns maximum number of background concurrent jobs
177
+ *
178
+ * @return maximum number of background concurrent jobs
179
+ * @see setMaxBackgroundCompactions
180
+ */
135
181
public int maxBackgroundCompactions () {
136
182
checkInitialization ();
137
183
return maxBackgroundCompactions (nativeHandle_ );
0 commit comments