SeedObject - Object that determines the instanceInstance - Instance that will be created from SeedObject.public abstract class InstanceCache<SeedObject,Instance> extends Object
| Constructor and Description |
|---|
InstanceCache() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract Instance |
makeInstance(SeedObject hv,
Set<SeedObject> seenSchemas) |
Instance |
retrieve(SeedObject hv)
Retrieve (or create if it doesn't exist) the correct Instance for this
SeedObject
|
Instance |
retrieve(SeedObject hv,
Set<SeedObject> seenSchemas)
Retrieve (or create if it doesn't exist) the correct Instance for this
SeedObject using 'seenSchemas' to resolve circular references
|
public Instance retrieve(SeedObject hv) throws AvroSerdeException
AvroSerdeExceptionpublic Instance retrieve(SeedObject hv, Set<SeedObject> seenSchemas) throws AvroSerdeException
AvroSerdeExceptionprotected abstract Instance makeInstance(SeedObject hv, Set<SeedObject> seenSchemas) throws AvroSerdeException
AvroSerdeExceptionCopyright © 2017 The Apache Software Foundation. All rights reserved.