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, toLongIDclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittoLongIDrefreshpublic void storeMapping(long longID,
String stringID)
UpdatableIDMigratorUpdatableIDMigrator.initialize(Iterable)) for every String that might be encountered
in the application, or else the mapping will not be known.storeMapping in interface UpdatableIDMigratorlongID - long IDstringID - string ID that maps to/from that long IDpublic String toStringID(long longID)
toStringID in interface IDMigratorpublic void initialize(Iterable<String> stringIDs)
UpdatableIDMigratorinitialize in interface UpdatableIDMigratorCopyright © 2008–2017 The Apache Software Foundation. All rights reserved.