Class TestFilePathStringPool
java.lang.Object
org.apache.hadoop.hbase.io.hfile.bucket.TestFilePathStringPool
Tests for
FilePathStringPool-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final HBaseClassTestRuleprivate org.apache.hadoop.hbase.io.hfile.bucket.FilePathStringPool -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetUp()voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoid
-
Field Details
-
CLASS_RULE
-
pool
-
-
Constructor Details
-
TestFilePathStringPool
public TestFilePathStringPool()
-
-
Method Details
-
setUp
-
testSingletonPattern
-
testBasicEncodeDecodeRoundTrip
-
testEncodeReturnsSameIdForSameString
-
testEncodeDifferentStringsGetDifferentIds
-
testEncodeNullStringThrowsException
-
testDecodeNonExistentIdReturnsNull
-
testContainsWithId
-
testContainsWithString
-
testRemoveExistingString
-
testRemoveNonExistentStringReturnsFalse
-
testRemoveNullStringReturnsFalse
-
testClear
-
testSizeTracking
-
testGetPoolStats
-
testConcurrentEncoding
- Throws:
InterruptedException
-
testConcurrentEncodingSameStrings
- Throws:
InterruptedException
-
testConcurrentRemoval
- Throws:
InterruptedException
-
testBidirectionalMappingConsistency
-