public class ValueModel extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
$$HEAP |
static String |
$$NATIVE |
| Modifier and Type | Method and Description |
|---|---|
static ValueModel |
acquire(Class<?> valueType)
Returns a
ValueModel for the given valueType, if the latter is a value
interface, or if it the heap or native implementation for some value interface, returns the
ValueModel for that value interface. |
Stream<net.openhft.chronicle.values.FieldModel> |
fields() |
Class<?> |
heapClass()
Generates (if not yet) and returns a heap implementation for this ValueModel.
|
Class<?> |
nativeClass()
Generates (if not yet) and returns a native (flyweight) implementation for this ValueModel.
|
int |
recommendedOffsetAlignment()
Returns the recommended alignment of a flyweight bytes offset, to satisfy alignments of all
the fields.
|
int |
sizeInBytes() |
public static final String $$NATIVE
public static final String $$HEAP
public static ValueModel acquire(Class<?> valueType)
ValueModel for the given valueType, if the latter is a value
interface, or if it the heap or native implementation for some value interface, returns the
ValueModel for that value interface.valueType - a value interface or the heap or native implementation class for some
value interfacevalueType is
the heap or native implementation for some value interface, returns the ValueModel of that
value interfaceIllegalArgumentException - if the given valueType is not a value interface,
or the heap or native implementation of some value interface, or the Chronicle Values library
is not able to construct a ValueModel from this interfacepublic Stream<net.openhft.chronicle.values.FieldModel> fields()
public int recommendedOffsetAlignment()
Returns a positive integer >= 1.
public int sizeInBytes()
public Class<?> nativeClass()
ImplGenerationFailedException - if generation failedpublic Class<?> heapClass()
ImplGenerationFailedException - if generation failedCopyright © 2024. All rights reserved.