public class ObjectIdAggregatedStream extends ObjectIdMap
ObjectIdMap.EntryINT_MAP_CAPACITY| Constructor and Description |
|---|
ObjectIdAggregatedStream(AggregatedFileLogger aggregatedLogger,
TypeIdAggregatedStreamMap typeToId,
File outputDir)
Create an instance to record object types.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the files written by this object.
|
protected void |
onNewObject(Object o)
Register a type for each new object.
|
protected void |
onNewObjectId(Object o,
long id)
Record an object ID and its Type ID in a file.
|
capacity, getId, sizepublic ObjectIdAggregatedStream(AggregatedFileLogger aggregatedLogger, TypeIdAggregatedStreamMap typeToId, File outputDir) throws IOException
aggregatedLogger - destination logger objecttypeToId - is an object to translate a type into an integer representing a type.outputDir - location to save the object mapIOException - when failed to save object map to outputDirprotected void onNewObject(Object o)
onNewObject in class ObjectIdMapo - is the object passed to the getId method.protected void onNewObjectId(Object o, long id)
onNewObjectId in class ObjectIdMapo - is the object passed to the getId method.id - is the ID assigned to the object.public void close()
close in class ObjectIdMapCopyright © 2023. All rights reserved.