Class ModuleHashTable
java.lang.Object
com.ibm.j9ddr.vm29.j9.HashTable<com.ibm.j9ddr.vm29.pointer.generated.J9ModulePointer>
com.ibm.j9ddr.vm29.j9.HashTable_V1<com.ibm.j9ddr.vm29.pointer.generated.J9ModulePointer>
com.ibm.j9ddr.vm29.j9.ModuleHashTable
- All Implemented Interfaces:
IHashTable<com.ibm.j9ddr.vm29.pointer.generated.J9ModulePointer>
public class ModuleHashTable
extends HashTable_V1<com.ibm.j9ddr.vm29.pointer.generated.J9ModulePointer>
ModuleHashTable is used for accessing hash tables in J9Modules (e.g. readAccessHashTable)
-
Nested Class Summary
Nested classes/interfaces declared in class HashTable
HashTable.HashEqualFunction<StructType>, HashTable.HashFunction<StructType>Modifier and TypeClassDescriptionstatic interfaceEncapsulation of the equal function needed by the HashTablestatic interfaceEncapsulation of the hash function needed by the HashTable -
Field Summary
Fields declared in class HashTable
_comparatorFn, _equalFn, _hashFn, _structType, _tableModifier and TypeFieldDescriptionprotected com.ibm.j9ddr.vm29.j9.HashTable.HashComparatorFunction<com.ibm.j9ddr.vm29.pointer.generated.J9ModulePointer> protected HashTable.HashEqualFunction<com.ibm.j9ddr.vm29.pointer.generated.J9ModulePointer> protected HashTable.HashFunction<com.ibm.j9ddr.vm29.pointer.generated.J9ModulePointer> protected Class<com.ibm.j9ddr.vm29.pointer.generated.J9ModulePointer> protected com.ibm.j9ddr.vm29.pointer.generated.J9HashTablePointer -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedModuleHashTable(com.ibm.j9ddr.vm29.pointer.generated.J9HashTablePointer hashTablePointer, boolean isInline, Class<com.ibm.j9ddr.vm29.pointer.generated.J9ModulePointer> structType, HashTable.HashEqualFunction<com.ibm.j9ddr.vm29.pointer.generated.J9ModulePointer> equalFn, HashTable.HashFunction<com.ibm.j9ddr.vm29.pointer.generated.J9ModulePointer> hashFn) -
Method Summary
Modifier and TypeMethodDescriptionstatic HashTable<com.ibm.j9ddr.vm29.pointer.generated.J9ModulePointer> fromJ9HashTable(com.ibm.j9ddr.vm29.pointer.generated.J9HashTablePointer structure) Opens J9HashTable from J9HashTablePointerMethods declared in class HashTable_V1
find, getCount, getTableName, isSpaceOpt, iteratorModifier and TypeMethodDescriptioncom.ibm.j9ddr.vm29.pointer.generated.J9ModulePointerfind(com.ibm.j9ddr.vm29.pointer.generated.J9ModulePointer entry) Find an entry in the hash table.longgetCount()Returns the number of elements in a given pool.Returns the name of the tablebooleanSlotIterator<com.ibm.j9ddr.vm29.pointer.generated.J9ModulePointer> iterator()Returns an iterator over the elements in the poolMethods declared in class HashTable
fromJ9HashTable, fromJ9HashTableModifier and TypeMethodDescriptionstatic <T extends AbstractPointer>
HashTable<T> fromJ9HashTable(com.ibm.j9ddr.vm29.pointer.generated.J9HashTablePointer structure, boolean isInline, Class<T> structType, HashTable.HashEqualFunction<T> equalFn, HashTable.HashFunction<T> hashFn) Factory method to construct an appropriate hashtable handler.static <T extends AbstractPointer>
HashTable<T> fromJ9HashTable(com.ibm.j9ddr.vm29.pointer.generated.J9HashTablePointer structure, boolean isInline, Class<T> structType, HashTable.HashFunction<T> hashFn, com.ibm.j9ddr.vm29.j9.HashTable.HashComparatorFunction<T> comparatorFn) Factory method to construct an appropriate hashtable handler.
-
Constructor Details
-
ModuleHashTable
protected ModuleHashTable(com.ibm.j9ddr.vm29.pointer.generated.J9HashTablePointer hashTablePointer, boolean isInline, Class<com.ibm.j9ddr.vm29.pointer.generated.J9ModulePointer> structType, HashTable.HashEqualFunction<com.ibm.j9ddr.vm29.pointer.generated.J9ModulePointer> equalFn, HashTable.HashFunction<com.ibm.j9ddr.vm29.pointer.generated.J9ModulePointer> hashFn) throws CorruptDataException - Throws:
CorruptDataException
-
-
Method Details
-
fromJ9HashTable
public static HashTable<com.ibm.j9ddr.vm29.pointer.generated.J9ModulePointer> fromJ9HashTable(com.ibm.j9ddr.vm29.pointer.generated.J9HashTablePointer structure) throws CorruptDataException Opens J9HashTable from J9HashTablePointer- Parameters:
structure- the J9HashTablePointer- Throws:
CorruptDataException- when fails to read from structure
-