Skip to content

Commit 7496a26

Browse files
committed
addressing javadoc, checkstyle and spotless issues
Change-Id: I49d287cddf81170514474b27a642c249a7bc79d7
1 parent 63a290a commit 7496a26

File tree

3 files changed

+12
-8
lines changed

3 files changed

+12
-8
lines changed

hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/BlockCache.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -213,9 +213,9 @@ default Optional<Boolean> shouldCacheFile(HFileInfo hFileInfo, Configuration con
213213
* not be overridden by all implementing classes. In such cases, the returned Optional will be
214214
* empty. For subclasses implementing this logic, the returned Optional would contain the boolean
215215
* value reflecting if the passed block should indeed be cached.
216-
* @param key The key representing the block to check if it should be cached.
217-
* @param timeRangeTracker the time range tracker containing the timestamps
218-
* @param conf The configuration object to use for determining caching behavior.
216+
* @param key The key representing the block to check if it should be cached.
217+
* @param maxTimeStamp The maximum timestamp for the block to check if it should be cached.
218+
* @param conf The configuration object to use for determining caching behavior.
219219
* @return An empty Optional if this method is not supported; otherwise, the returned Optional
220220
* contains the boolean value indicating if the block should be cached.
221221
*/

hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/compactions/CustomCellTieredUtils.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@
2828

2929
@InterfaceAudience.Private
3030
public class CustomCellTieredUtils {
31+
private CustomCellTieredUtils() {
32+
// Utility class, no instantiation
33+
}
3134

3235
public static void checkForModifyTable(TableDescriptor newTable) throws IOException {
3336
for (ColumnFamilyDescriptor descriptor : newTable.getColumnFamilies()) {

hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestCustomCellDataTieringManager.java

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919

2020
import static org.apache.hadoop.hbase.HConstants.BUCKET_CACHE_SIZE_KEY;
2121
import static org.apache.hadoop.hbase.io.hfile.bucket.BucketCache.DEFAULT_ERROR_TOLERATION_DURATION;
22-
import static org.apache.hadoop.hbase.regionserver.TestDataTieringManager.createHStoreFile;
2322
import static org.junit.Assert.assertEquals;
2423
import static org.junit.Assert.assertFalse;
2524
import static org.junit.Assert.assertNotNull;
@@ -81,12 +80,14 @@
8180
* This class is used to test the functionality of the DataTieringManager.
8281
*
8382
* The mock online regions are stored in {@link TestCustomCellDataTieringManager#testOnlineRegions}.
84-
* For all tests, the setup of {@link TestCustomCellDataTieringManager#testOnlineRegions} occurs only once.
83+
* For all tests, the setup of
84+
* {@link TestCustomCellDataTieringManager#testOnlineRegions} occurs only once.
8585
* Please refer to {@link TestCustomCellDataTieringManager#setupOnlineRegions()} for the structure.
86-
* Additionally, a list of all store files is maintained in {@link TestCustomCellDataTieringManager#hStoreFiles}.
86+
* Additionally, a list of all store files is
87+
* maintained in {@link TestCustomCellDataTieringManager#hStoreFiles}.
8788
* The characteristics of these store files are listed below:
88-
* @formatter:off ## HStoreFile Information
89-
*
89+
* @formatter:off
90+
* ## HStoreFile Information
9091
* | HStoreFile | Region | Store | DataTiering | isHot |
9192
* |------------------|--------------------|---------------------|-----------------------|-------|
9293
* | hStoreFile0 | region1 | hStore11 | CUSTOM_CELL_VALUE | true |

0 commit comments

Comments
 (0)