public interface ValueOut
Modifier and Type | Field and Description |
---|---|
static int |
SMALL_MESSAGE |
Modifier and Type | Method and Description |
---|---|
default WireOut |
array(boolean[] array,
int length) |
default WireOut |
array(byte[] array,
int length) |
default WireOut |
array(net.openhft.chronicle.bytes.Bytes[] array,
int length) |
default WireOut |
array(double[] array,
int length) |
default WireOut |
array(int[] array,
int length) |
default WireOut |
array(long[] array,
int length) |
default WireOut |
array(WriteValue writer,
Class arrayType) |
default WireOut |
arrayDelta(double[] array,
int length)
This write values relative to the first one using 6 digit precision
|
default WireOut |
arrayDelta(long[] array,
int length) |
default <E extends Enum<E>> |
asEnum(E e) |
WireOut |
bool(Boolean flag)
scalar data types
|
WireOut |
boolForBinding(boolean value,
net.openhft.chronicle.core.values.BooleanValue longValue) |
WireOut |
bytes(byte[] fromBytes) |
WireOut |
bytes(net.openhft.chronicle.bytes.BytesStore fromBytes) |
WireOut |
bytes(String type,
byte[] fromBytes) |
WireOut |
bytes(String type,
net.openhft.chronicle.bytes.BytesStore fromBytes) |
default WireOut |
bytesLiteral(net.openhft.chronicle.bytes.BytesStore fromBytes) |
default WireOut |
character(char c) |
default <V> WireOut |
collection(Collection<V> coll,
Class<V> assumedClass) |
default WireOut |
compress(String compression,
net.openhft.chronicle.bytes.Bytes uncompressedBytes) |
default WireOut |
compress(String compression,
String str)
Deprecated.
|
default int |
compressedSize() |
WireOut |
date(LocalDate localDate) |
WireOut |
dateTime(LocalDateTime localDateTime) |
default WireOut |
fixedFloat32(float value) |
default WireOut |
fixedFloat64(double value) |
default WireOut |
fixedInt16(short value) |
default WireOut |
fixedInt32(int value) |
default WireOut |
fixedInt64(long value) |
default WireOut |
fixedInt8(byte value) |
WireOut |
float32(float f) |
default WireOut |
float32(float f,
float previous) |
WireOut |
float64(double d) |
default WireOut |
float64(double d,
double previous) |
default WireOut |
int128forBinding(long value,
long value2) |
WireOut |
int128forBinding(long i64x0,
long i64x1,
net.openhft.chronicle.core.values.TwoLongValue value) |
default WireOut |
int16(long x) |
WireOut |
int16(short i16) |
WireOut |
int32(int i32) |
default WireOut |
int32(int i32,
int previous) |
default WireOut |
int32(long x) |
WireOut |
int32forBinding(int value) |
WireOut |
int32forBinding(int value,
net.openhft.chronicle.core.values.IntValue intValue) |
WireOut |
int64_0x(long i64) |
WireOut |
int64(long i64) |
default WireOut |
int64(long i64,
long previous) |
WireOut |
int64array(long capacity) |
WireOut |
int64array(long capacity,
net.openhft.chronicle.core.values.LongArrayValues values) |
WireOut |
int64forBinding(long value) |
WireOut |
int64forBinding(long value,
net.openhft.chronicle.core.values.LongValue longValue) |
WireOut |
int8(byte i8) |
default WireOut |
int8(long x) |
default ValueOut |
leaf()
Deprecated.
|
default ValueOut |
leaf(boolean leaf)
Deprecated.
|
default <V> WireOut |
list(List<V> coll) |
default <V> WireOut |
list(List<V> coll,
Class<V> assumedClass) |
WireOut |
map(Map map)
Deprecated.
use marshallable(map) or object(map)
|
default <K,V> WireOut |
marshallable(Map<K,V> map) |
default <K,V> WireOut |
marshallable(Map<K,V> map,
Class<K> kClass,
Class<V> vClass,
boolean leaf) |
WireOut |
marshallable(Serializable object) |
WireOut |
marshallable(WriteMarshallable object) |
default WireOut |
nu11() |
default <V> WireOut |
object(Class<V> expectedType,
V v) |
default WireOut |
object(Object value) |
default ValueOut |
optionalTyped(Class aClass)
Add an optional type i.e.
|
WireOut |
rawBytes(byte[] value) |
default void |
resetBetweenDocuments() |
void |
resetState() |
default <T> WireOut |
sequence(Iterable<T> t) |
<T> WireOut |
sequence(T t,
BiConsumer<T,ValueOut> writer) |
<T,K> WireOut |
sequence(T t,
K kls,
TriConsumer<T,K,ValueOut> writer) |
default WireOut |
sequence(WriteValue writer) |
default <T,K> WireOut |
sequenceWithLength(T t,
int length,
ObjectIntObjectConsumer<T,ValueOut> writer) |
default <V> WireOut |
set(Set<V> coll) |
default <V> WireOut |
set(Set<V> coll,
Class<V> assumedClass) |
default boolean |
swapLeaf(boolean isLeaf) |
default WireOut |
text(net.openhft.chronicle.bytes.BytesStore s) |
default WireOut |
text(char c) |
WireOut |
text(CharSequence s) |
default WireOut |
text(String s) |
default WireOut |
throwable(Throwable t) |
WireOut |
time(LocalTime localTime) |
WireOut |
typedMap(Map<? extends WriteMarshallable,? extends Marshallable> map)
Deprecated.
use typedMarshallable(map) or object(map)
|
default WireOut |
typedMarshallable(CharSequence typeName,
WriteMarshallable object) |
default WireOut |
typedMarshallable(Serializable object) |
default WireOut |
typedMarshallable(WriteMarshallable marshallable)
To be used when you know it is a typed marshallable object.
|
default WireOut |
typedScalar(Object value) |
WireOut |
typeLiteral(BiConsumer<Class,net.openhft.chronicle.bytes.Bytes> typeTranslator,
Class type) |
WireOut |
typeLiteral(CharSequence type) |
default WireOut |
typeLiteral(Class type) |
ValueOut |
typePrefix(CharSequence typeName) |
default ValueOut |
typePrefix(Class type) |
default WireOut |
uint16(long x) |
WireOut |
uint16checked(int u16) |
default WireOut |
uint32(long x) |
WireOut |
uint32checked(long u32) |
default WireOut |
uint8(int x) |
WireOut |
uint8checked(int u8) |
default WireOut |
untypedObject(Object value) |
WireOut |
utf8(int codepoint) |
WireOut |
uuid(UUID uuid) |
WireOut |
wireOut() |
ValueOut |
writeLength(long remaining) |
WireOut |
zonedDateTime(ZonedDateTime zonedDateTime) |
static final int SMALL_MESSAGE
@NotNull WireOut text(@Nullable CharSequence s)
@NotNull default WireOut nu11()
@NotNull default WireOut text(char c)
@NotNull default WireOut character(char c)
@NotNull default WireOut text(@Nullable net.openhft.chronicle.bytes.BytesStore s)
@NotNull default WireOut int8(long x)
@NotNull WireOut int8(byte i8)
@NotNull WireOut bytes(@Nullable net.openhft.chronicle.bytes.BytesStore fromBytes)
@NotNull default WireOut bytesLiteral(@Nullable net.openhft.chronicle.bytes.BytesStore fromBytes)
@NotNull WireOut bytes(String type, @Nullable net.openhft.chronicle.bytes.BytesStore fromBytes)
@NotNull WireOut rawBytes(byte[] value)
@NotNull ValueOut writeLength(long remaining)
@NotNull WireOut bytes(byte[] fromBytes)
@NotNull default WireOut uint8(int x)
@NotNull WireOut uint8checked(int u8)
@NotNull default WireOut int16(long x)
@NotNull WireOut int16(short i16)
@NotNull default WireOut uint16(long x)
@NotNull WireOut uint16checked(int u16)
@NotNull WireOut utf8(int codepoint)
@NotNull default WireOut int32(long x)
@NotNull WireOut int32(int i32)
@NotNull default WireOut int32(int i32, int previous)
@NotNull default WireOut uint32(long x)
@NotNull WireOut uint32checked(long u32)
@NotNull WireOut int64(long i64)
@NotNull default WireOut int64(long i64, long previous)
@NotNull WireOut int128forBinding(long i64x0, long i64x1, net.openhft.chronicle.core.values.TwoLongValue value)
@NotNull WireOut int64_0x(long i64)
@NotNull WireOut int64array(long capacity)
@NotNull WireOut int64array(long capacity, net.openhft.chronicle.core.values.LongArrayValues values)
@NotNull WireOut float32(float f)
@NotNull WireOut float64(double d)
@NotNull default WireOut float32(float f, float previous)
@NotNull default WireOut float64(double d, double previous)
@NotNull WireOut zonedDateTime(ZonedDateTime zonedDateTime)
@NotNull WireOut dateTime(LocalDateTime localDateTime)
@NotNull ValueOut typePrefix(CharSequence typeName)
@NotNull WireOut typeLiteral(@Nullable CharSequence type)
@NotNull WireOut typeLiteral(@NotNull BiConsumer<Class,net.openhft.chronicle.bytes.Bytes> typeTranslator, @Nullable Class type)
@NotNull WireOut int32forBinding(int value)
@NotNull WireOut int32forBinding(int value, @NotNull net.openhft.chronicle.core.values.IntValue intValue)
@NotNull WireOut int64forBinding(long value)
@NotNull default WireOut int128forBinding(long value, long value2)
@NotNull WireOut int64forBinding(long value, @NotNull net.openhft.chronicle.core.values.LongValue longValue)
@NotNull WireOut boolForBinding(boolean value, @NotNull net.openhft.chronicle.core.values.BooleanValue longValue)
@NotNull default WireOut sequence(WriteValue writer)
@NotNull <T> WireOut sequence(T t, BiConsumer<T,ValueOut> writer)
@NotNull <T,K> WireOut sequence(T t, K kls, TriConsumer<T,K,ValueOut> writer)
default <T,K> WireOut sequenceWithLength(T t, int length, ObjectIntObjectConsumer<T,ValueOut> writer)
default WireOut array(net.openhft.chronicle.bytes.Bytes[] array, int length)
default WireOut array(double[] array, int length)
default WireOut arrayDelta(double[] array, int length)
array
- to writelength
- to writedefault WireOut array(boolean[] array, int length)
default WireOut array(long[] array, int length)
default WireOut arrayDelta(long[] array, int length)
default WireOut array(int[] array, int length)
default WireOut array(byte[] array, int length)
@NotNull default WireOut array(@NotNull WriteValue writer, @NotNull Class arrayType)
@NotNull WireOut marshallable(WriteMarshallable object)
@NotNull WireOut marshallable(Serializable object)
@NotNull @Deprecated WireOut map(Map map)
map
- a java map with, the key and value type of the map must be either Marshallable,
String or Autoboxed primitives.@NotNull @Deprecated WireOut typedMap(@NotNull Map<? extends WriteMarshallable,? extends Marshallable> map)
@NotNull @Deprecated default ValueOut leaf()
@NotNull @Deprecated default ValueOut leaf(boolean leaf)
@NotNull default boolean swapLeaf(boolean isLeaf)
@NotNull default WireOut typedMarshallable(@Nullable WriteMarshallable marshallable)
marshallable
- to write@NotNull default WireOut typedMarshallable(@Nullable Serializable object)
@NotNull default WireOut typedMarshallable(CharSequence typeName, WriteMarshallable object)
@NotNull default <V> WireOut collection(Collection<V> coll, Class<V> assumedClass)
@NotNull default <K,V> WireOut marshallable(@Nullable Map<K,V> map, @NotNull Class<K> kClass, @NotNull Class<V> vClass, boolean leaf)
@NotNull default ValueOut optionalTyped(Class aClass)
aClass
- to write@NotNull default WireOut fixedFloat32(float value)
@NotNull default WireOut fixedInt8(byte value)
@NotNull default WireOut fixedInt16(short value)
@NotNull default WireOut fixedInt32(int value)
@NotNull default WireOut fixedFloat64(double value)
@NotNull default WireOut fixedInt64(long value)
@NotNull WireOut wireOut()
@NotNull default WireOut compress(@NotNull String compression, @Nullable net.openhft.chronicle.bytes.Bytes uncompressedBytes)
default int compressedSize()
@NotNull @Deprecated default WireOut compress(@NotNull String compression, @Nullable String str)
default void resetBetweenDocuments()
void resetState()
Copyright © 2018. All rights reserved.