PT
- The type of the records that we are probing withpublic final class InPlaceMutableHashTable.HashTableProber<PT> extends AbstractHashTableProber<PT,T>
pairComparator, probeTypeComparator
Constructor and Description |
---|
HashTableProber(TypeComparator<PT> probeTypeComparator,
TypePairComparator<PT,T> pairComparator) |
Modifier and Type | Method and Description |
---|---|
T |
getMatchFor(PT probeSideRecord) |
T |
getMatchFor(PT record,
T targetForMatch)
Searches the hash table for the record with the given key.
|
void |
insertAfterNoMatch(T record)
This method can be called after getMatchFor returned null.
|
void |
updateMatch(T newRecord)
This method can be called after getMatchFor returned a match.
|
public HashTableProber(TypeComparator<PT> probeTypeComparator, TypePairComparator<PT,T> pairComparator)
public T getMatchFor(PT record, T targetForMatch)
getMatchFor
in class AbstractHashTableProber<PT,T>
record
- The record whose key we are searching fortargetForMatch
- If a match is found, it will be written herepublic T getMatchFor(PT probeSideRecord)
getMatchFor
in class AbstractHashTableProber<PT,T>
public void updateMatch(T newRecord) throws IOException
updateMatch
in class AbstractHashTableProber<PT,T>
newRecord
- The record to override the old record with.IOException
- (EOFException specifically, if memory ran out)public void insertAfterNoMatch(T record) throws IOException
IOException
- (EOFException specifically, if memory ran out)Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.