public final class MemoryIDMigrator extends AbstractIDMigrator implements UpdatableIDMigrator
Constructor and Description |
---|
MemoryIDMigrator() |
Modifier and Type | Method and Description |
---|---|
void |
initialize(Iterable<String> stringIDs)
Make the mapping aware of the given string IDs.
|
void |
storeMapping(long longID,
String stringID)
Stores the reverse long-to-String mapping in some kind of backing store.
|
String |
toStringID(long longID) |
hash, refresh, toLongID
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
toLongID
refresh
public void storeMapping(long longID, String stringID)
UpdatableIDMigrator
UpdatableIDMigrator.initialize(Iterable)
) for every String that might be encountered
in the application, or else the mapping will not be known.storeMapping
in interface UpdatableIDMigrator
longID
- long IDstringID
- string ID that maps to/from that long IDpublic String toStringID(long longID)
toStringID
in interface IDMigrator
public void initialize(Iterable<String> stringIDs)
UpdatableIDMigrator
initialize
in interface UpdatableIDMigrator
Copyright © 2008–2017 The Apache Software Foundation. All rights reserved.