public enum Wires extends Enum<Wires>
| Modifier and Type | Field and Description |
|---|---|
static net.openhft.chronicle.core.ClassLocal<SerializationStrategy> |
CLASS_STRATEGY |
static List<Function<Class,SerializationStrategy>> |
CLASS_STRATEGY_FUNCTIONS |
static int |
END_OF_DATA |
static boolean |
GENERATE_TUPLES |
static int |
LENGTH_MASK |
static int |
META_DATA |
static net.openhft.chronicle.bytes.Bytes<?> |
NO_BYTES |
static int |
NOT_COMPLETE |
static int |
NOT_COMPLETE_UNKNOWN_LENGTH |
static int |
NOT_INITIALIZED |
static int |
NOT_READY
Deprecated.
|
static int |
SPB_HEADER_SIZE |
static int |
UNKNOWN_LENGTH |
| Modifier and Type | Method and Description |
|---|---|
static @NotNull net.openhft.chronicle.bytes.Bytes |
acquireAnotherBytes() |
static @NotNull Wire |
acquireBinaryWire() |
static @NotNull net.openhft.chronicle.bytes.Bytes<?> |
acquireBytes() |
static boolean |
acquireLock(@NotNull net.openhft.chronicle.bytes.BytesStore store,
long position) |
static StringBuilder |
acquireStringBuilder() |
static @NotNull CharSequence |
asText(@NotNull WireIn wireIn) |
static @NotNull BinaryWire |
binaryWireForRead(net.openhft.chronicle.bytes.Bytes in,
long position,
long length) |
static @NotNull BinaryWire |
binaryWireForWrite(net.openhft.chronicle.bytes.Bytes in,
long position,
long length) |
static <T> T |
copyTo(Object source,
T target) |
static <T extends Marshallable> |
deepCopy(T marshallable) |
static boolean |
dtoInterface(Class clazz) |
static boolean |
exceedsMaxLength(long length) |
static FieldInfo |
fieldInfo(@NotNull Class aClass,
String name) |
static @NotNull Map<String,FieldInfo> |
fieldInfoMap(@NotNull Class aClass) |
static @NotNull List<FieldInfo> |
fieldInfos(@NotNull Class aClass) |
static String |
fromAlignedSizePrefixedBlobs(@NotNull net.openhft.chronicle.bytes.Bytes bytes) |
static String |
fromSizePrefixedBlobs(@NotNull net.openhft.chronicle.bytes.Bytes bytes)
This decodes some Bytes where the first 4-bytes is the length.
|
static String |
fromSizePrefixedBlobs(@NotNull net.openhft.chronicle.bytes.Bytes<?> bytes,
long position,
long length) |
static String |
fromSizePrefixedBlobs(@NotNull net.openhft.chronicle.bytes.Bytes bytes,
boolean abbrev) |
static String |
fromSizePrefixedBlobs(@NotNull net.openhft.chronicle.bytes.Bytes bytes,
long position) |
static String |
fromSizePrefixedBlobs(@NotNull DocumentContext dc) |
static String |
fromSizePrefixedBlobs(@NotNull WireIn wireIn) |
static String |
fromSizePrefixedBlobs(@NotNull WireIn wireIn,
boolean abbrev) |
static <T> T |
getField(@NotNull Object o,
String name,
Class<T> tClass) |
static @Nullable long |
getLongField(@NotNull Object o,
String name) |
static void |
init() |
static boolean |
isData(int len) |
static boolean |
isData(long len)
Deprecated.
|
static boolean |
isEndOfFile(int num) |
static boolean |
isEquals(@NotNull Object o1,
@NotNull Object o2) |
static boolean |
isInternal(@NotNull Object value) |
static boolean |
isKnownLength(int len) |
static boolean |
isNotComplete(int header) |
static boolean |
isNotInitialized(int len) |
static boolean |
isReady(int header) |
static boolean |
isReadyData(int header) |
static boolean |
isReadyMetaData(int len) |
static int |
lengthOf(int len) |
static <E> E |
object0(ValueIn in,
E using,
@Nullable Class clazz) |
static <E> E |
objectDate(ValueIn in,
E using) |
static <E> E |
objectMap(ValueIn in,
E using,
@Nullable Class clazz,
SerializationStrategy<E> strategy) |
static <E> E |
objectSequence(ValueIn in,
E using,
@Nullable Class clazz,
SerializationStrategy<E> strategy) |
static <T> T |
project(Class<T> tClass,
Object source) |
static void |
readMarshallable(@NotNull Object marshallable,
@NotNull WireIn wire,
boolean overwrite) |
static long |
readWire(@NotNull WireIn wireIn,
long size,
@NotNull ReadMarshallable readMarshallable) |
static int |
removeMaskedTidFromHeader(int header) |
static void |
reset(@NotNull Object o) |
static void |
setField(@NotNull Object o,
String name,
Object value) |
static void |
setLongField(@NotNull Object o,
String name,
long value) |
static int |
toIntU30(long l,
@NotNull String error) |
static <T> T |
tupleFor(Class<T> tClass,
String typeName) |
static String |
typeNameFor(@NotNull Object value) |
static Wires |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Wires[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
static <T extends WriteMarshallable> |
writeData(@NotNull WireOut wireOut,
T writer) |
static void |
writeKey(@NotNull Object marshallable,
net.openhft.chronicle.bytes.Bytes bytes) |
static void |
writeMarshallable(@NotNull Object marshallable,
@NotNull WireOut wire) |
static void |
writeMarshallable(@NotNull Object marshallable,
@NotNull WireOut wire,
boolean writeDefault) |
static void |
writeMarshallable(@NotNull Object marshallable,
@NotNull WireOut wire,
@NotNull Object previous,
boolean copy) |
public static final int LENGTH_MASK
public static final int NOT_COMPLETE
@Deprecated public static final int NOT_READY
public static final int META_DATA
public static final int UNKNOWN_LENGTH
public static final int NOT_COMPLETE_UNKNOWN_LENGTH
public static final int END_OF_DATA
public static final int NOT_INITIALIZED
public static final net.openhft.chronicle.bytes.Bytes<?> NO_BYTES
public static final int SPB_HEADER_SIZE
public static final List<Function<Class,SerializationStrategy>> CLASS_STRATEGY_FUNCTIONS
public static final net.openhft.chronicle.core.ClassLocal<SerializationStrategy> CLASS_STRATEGY
public static boolean GENERATE_TUPLES
public static Wires[] values()
for (Wires c : Wires.values()) System.out.println(c);
public static Wires valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static void init()
public static String fromSizePrefixedBlobs(@NotNull @NotNull net.openhft.chronicle.bytes.Bytes bytes)
bytes - to decodepublic static String fromAlignedSizePrefixedBlobs(@NotNull @NotNull net.openhft.chronicle.bytes.Bytes bytes)
public static String fromSizePrefixedBlobs(@NotNull @NotNull net.openhft.chronicle.bytes.Bytes bytes, boolean abbrev)
public static String fromSizePrefixedBlobs(@NotNull @NotNull net.openhft.chronicle.bytes.Bytes bytes, long position)
public static String fromSizePrefixedBlobs(@NotNull @NotNull DocumentContext dc)
public static String fromSizePrefixedBlobs(@NotNull @NotNull WireIn wireIn, boolean abbrev)
@NotNull public static @NotNull CharSequence asText(@NotNull @NotNull WireIn wireIn)
public static StringBuilder acquireStringBuilder()
public static int lengthOf(int len)
public static boolean isReady(int header)
public static boolean isNotComplete(int header)
public static boolean isReadyData(int header)
@Deprecated public static boolean isData(long len)
public static boolean isData(int len)
public static boolean isReadyMetaData(int len)
public static boolean isKnownLength(int len)
public static boolean isNotInitialized(int len)
public static int toIntU30(long l,
@NotNull
@NotNull String error)
public static boolean acquireLock(@NotNull
@NotNull net.openhft.chronicle.bytes.BytesStore store,
long position)
public static boolean exceedsMaxLength(long length)
public static <T extends WriteMarshallable> long writeData(@NotNull @NotNull WireOut wireOut, @NotNull T writer)
public static long readWire(@NotNull
@NotNull WireIn wireIn,
long size,
@NotNull
@NotNull ReadMarshallable readMarshallable)
@NotNull public static @NotNull net.openhft.chronicle.bytes.Bytes<?> acquireBytes()
@NotNull public static @NotNull Wire acquireBinaryWire()
@NotNull public static @NotNull net.openhft.chronicle.bytes.Bytes acquireAnotherBytes()
public static String fromSizePrefixedBlobs(@NotNull @NotNull net.openhft.chronicle.bytes.Bytes<?> bytes, long position, long length)
public static void readMarshallable(@NotNull
@NotNull Object marshallable,
@NotNull
@NotNull WireIn wire,
boolean overwrite)
public static void writeMarshallable(@NotNull
@NotNull Object marshallable,
@NotNull
@NotNull WireOut wire)
public static void writeMarshallable(@NotNull
@NotNull Object marshallable,
@NotNull
@NotNull WireOut wire,
boolean writeDefault)
public static void writeMarshallable(@NotNull
@NotNull Object marshallable,
@NotNull
@NotNull WireOut wire,
@NotNull
@NotNull Object previous,
boolean copy)
public static void writeKey(@NotNull
@NotNull Object marshallable,
net.openhft.chronicle.bytes.Bytes bytes)
@NotNull public static <T extends Marshallable> T deepCopy(@NotNull T marshallable)
@NotNull public static <T> T copyTo(Object source, @NotNull T target)
@NotNull public static @NotNull List<FieldInfo> fieldInfos(@NotNull @NotNull Class aClass)
@NotNull public static @NotNull Map<String,FieldInfo> fieldInfoMap(@NotNull @NotNull Class aClass)
public static boolean isEndOfFile(int num)
@Nullable
public static <T> T getField(@NotNull
@NotNull Object o,
String name,
Class<T> tClass)
throws NoSuchFieldException
NoSuchFieldException@Nullable
public static @Nullable long getLongField(@NotNull
@NotNull Object o,
String name)
throws NoSuchFieldException
NoSuchFieldExceptionpublic static void setField(@NotNull
@NotNull Object o,
String name,
Object value)
throws NoSuchFieldException
NoSuchFieldExceptionpublic static void setLongField(@NotNull
@NotNull Object o,
String name,
long value)
throws NoSuchFieldException
NoSuchFieldExceptionpublic static void reset(@NotNull
@NotNull Object o)
public static int removeMaskedTidFromHeader(int header)
@Nullable public static <E> E objectSequence(ValueIn in, @Nullable E using, @Nullable @Nullable Class clazz, SerializationStrategy<E> strategy)
@Nullable public static <E> E objectMap(ValueIn in, @Nullable E using, @Nullable @Nullable Class clazz, SerializationStrategy<E> strategy)
@NotNull public static <E> E objectDate(ValueIn in, @Nullable E using)
@Nullable public static <E> E object0(ValueIn in, @Nullable E using, @Nullable @Nullable Class clazz)
public static boolean dtoInterface(Class clazz)
public static boolean isInternal(@NotNull
@NotNull Object value)
@NotNull public static @NotNull BinaryWire binaryWireForRead(net.openhft.chronicle.bytes.Bytes in, long position, long length)
@NotNull public static @NotNull BinaryWire binaryWireForWrite(net.openhft.chronicle.bytes.Bytes in, long position, long length)
Copyright © 2020. All rights reserved.