T - the object typeS - the geometry typepublic final class FactoryFlatBuffers<T,S extends Geometry> extends Object implements Factory<T,S>
FactoryDefault especially for
larger maxChildren by saving Leaf objects to byte arrays and using
FlatBuffers to access the byte array.| Constructor and Description |
|---|
FactoryFlatBuffers(rx.functions.Func1<? super T,byte[]> serializer,
rx.functions.Func1<byte[],? extends T> deserializer) |
| Modifier and Type | Method and Description |
|---|---|
Entry<T,S> |
createEntry(T value,
S geometry) |
Leaf<T,S> |
createLeaf(List<Entry<T,S>> entries,
Context<T,S> context) |
NonLeaf<T,S> |
createNonLeaf(List<? extends Node<T,S>> children,
Context<T,S> context) |
rx.functions.Func1<byte[],? extends T> |
deserializer() |
rx.functions.Func1<? super T,byte[]> |
serializer() |
public Leaf<T,S> createLeaf(List<Entry<T,S>> entries, Context<T,S> context)
createLeaf in interface LeafFactory<T,S extends Geometry>public NonLeaf<T,S> createNonLeaf(List<? extends Node<T,S>> children, Context<T,S> context)
createNonLeaf in interface NonLeafFactory<T,S extends Geometry>public Entry<T,S> createEntry(T value, S geometry)
createEntry in interface EntryFactory<T,S extends Geometry>public rx.functions.Func1<? super T,byte[]> serializer()
public rx.functions.Func1<byte[],? extends T> deserializer()
Copyright © 2013–2023. All rights reserved.