public class QueryWire extends TextWire
QueryValueIn
and QueryValueOut, are used to manage the specific intricacies of the query string format.TextWire.TextValueInWireIn.HeaderTypeWireOut.EndOfWireBINARY, lineStart, readContext, TYPE_STR, writeContextsb, TYPEbytes, classLookup, commentListener, DEFAULT_USE_PADDING, parent, use8bitMARSHALLABLE_IN_INTERN_SIZE| Constructor and Description |
|---|
QueryWire(@NotNull net.openhft.chronicle.bytes.Bytes<?> bytes)
Constructs a new instance of
QueryWire using the provided bytes. |
| Modifier and Type | Method and Description |
|---|---|
@NotNull QueryWire |
addPadding(int paddingToAdd)
Adds padding to the wire.
|
void |
consumePadding()
Consumes and discards any padding that may exist between the current read position and the next piece of meaningful data.
|
protected @NotNull TextWire.TextValueIn |
createValueIn()
Creates and returns a new instance of TextValueIn.
|
protected @NotNull net.openhft.chronicle.wire.QueryWire.QueryValueOut |
createValueOut()
Creates and returns a new instance of
YamlValueOut. |
@NotNull ValueIn |
getValueIn()
Obtains the value associated with a field or event for more advanced use cases.
|
@NotNull ValueOut |
getValueOut()
Retrieves the interface for defining the output of a value
that will be written to the stream.
|
@NotNull net.openhft.chronicle.core.values.IntArrayValues |
newIntArrayReference()
Creates and returns a new
IntArrayValues. |
@NotNull net.openhft.chronicle.core.values.IntValue |
newIntReference()
Creates and returns a new
IntValue. |
@NotNull net.openhft.chronicle.bytes.ref.BinaryLongArrayReference |
newLongArrayReference()
Creates and returns a new
LongArrayValues. |
@NotNull net.openhft.chronicle.core.values.LongValue |
newLongReference()
Creates and returns a new
LongValue. |
protected @NotNull StringBuilder |
readField(@NotNull StringBuilder sb)
Reads the field from the current position of the wire and appends it to the given StringBuilder.
|
@NotNull ValueOut |
write()
Writes an empty field marker to the stream.
|
@NotNull ValueOut |
write(@NotNull CharSequence name)
Writes a CharSequence key to the stream.
|
@NotNull ValueOut |
write(@NotNull WireKey key)
Writes a WireKey to the stream.
|
@NotNull QueryWire |
writeComment(@NotNull CharSequence s)
Writes a comment to the wire.
|
acquireWritingDocument, asText, classLookup, classLookup, clear, consumeDocumentStart, consumePadding, consumeWhiteSpace, copyTo, defaultKeyClass, from, fromFile, getEscapingEndEventName, getEscapingEndOfText, getEscapingQuotes, getStrictEscapingEndOfText, hasMetaDataPrefix, initReadContext, isBinary, load, methodReaderBuilder, methodWriter, methodWriterBuilder, newBooleanReference, parseUntil, parseUntil, parseWord, peekStringIgnoreCase, read, read, read, read2, readCode, readComment, readEvent, readEventNumber, readingDocument, readingDocument, readingPeekYaml, readObject, reset, rollbackIfNotComplete, strict, strict, toString, unescape, useBinaryDocuments, useSelfDescribingMessage, useTextDocuments, writingDocument, writingIsCompleteacquireStringBuilder, addTimeStamps, addTimeStamps, append, append, appendU4, bytes, dropDefault, escape0, needsQuotes, trimFirstCurly, trimFirstCurly, writeEndEvent, writeEvent, writeObject, writeStartEventbytesComment, commentListener, endOfWire, enterHeader, forceNotInsideHeader, headerNumber, headerNumber, headNumberCheck, isInsideHeader, notCompleteIsNotPresent, notCompleteIsNotPresent, objectInput, objectOutput, parent, parent, pauser, pauser, readAndSetLength, readDataHeader, readFirstHeader, readFirstHeader, readMetaDataHeader, updateFirstHeader, updateFirstHeader, updateHeader, usePadding, usePadding, writeEndOfWire, writeFirstHeaderclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitnewYamlWireOnHeapendEvent, hasMore, hintReadInputOrder, isEmpty, isEndEvent, isNotEmptyAfterPadding, rawReadData, read, readAlignTo, readAllAsMap, readDataHeader, readDocument, readDocument, readEventName, startEventmethodReader, readBytes, readBytes, readDocument, readMap, readText, readTextpadToCacheAlign, writeAlignTo, writeAllAsMap, writeDocument, writeEventId, writeEventId, writeEventName, writeEventName, writeNotCompleteDocument, writingDocumentnewTwoLongReferencebuilder, methodWriterBuilder, recordHistory, writeBytes, writeDocument, writeDocument, writeMap, writeMessage, writeMessage, writeTextpublic QueryWire(@NotNull
@NotNull net.openhft.chronicle.bytes.Bytes<?> bytes)
QueryWire using the provided bytes.bytes - The bytes that represent the query string to be processed.@NotNull protected @NotNull net.openhft.chronicle.wire.QueryWire.QueryValueOut createValueOut()
YamlWireOutYamlValueOut.createValueOut in class YamlWireOut<TextWire>@NotNull protected @NotNull TextWire.TextValueIn createValueIn()
TextWirecreateValueIn in class TextWire@NotNull protected @NotNull StringBuilder readField(@NotNull @NotNull StringBuilder sb)
TextWirepublic void consumePadding()
WireInconsumePadding in interface WireInconsumePadding in class TextWire@NotNull public @NotNull ValueOut write()
WireOutwrite in interface WireOutwrite in class YamlWireOut<TextWire>@NotNull public @NotNull ValueOut write(@NotNull @NotNull WireKey key)
WireOutwrite in interface WireOutwrite in class YamlWireOut<TextWire>key - The WireKey to write to the stream.@NotNull public @NotNull ValueOut write(@NotNull @NotNull CharSequence name)
WireOutwrite in interface WireOutwrite in class YamlWireOut<TextWire>name - The CharSequence key to write to the stream.@NotNull public @NotNull ValueOut getValueOut()
WireOutgetValueOut in interface WireOutgetValueOut in class YamlWireOut<TextWire>@NotNull public @NotNull ValueIn getValueIn()
WireInWireIn.readEvent(Class).getValueIn in interface WireIngetValueIn in class TextWireValueIn instance.@NotNull public @NotNull QueryWire writeComment(@NotNull @NotNull CharSequence s)
WireOutwriteComment in interface WireOutwriteComment in class YamlWireOut<TextWire>s - The comment to be written to the stream.@NotNull public @NotNull QueryWire addPadding(int paddingToAdd)
WireOutaddPadding in interface WireOutaddPadding in class YamlWireOut<TextWire>paddingToAdd - The amount of padding to add.@NotNull public @NotNull net.openhft.chronicle.core.values.LongValue newLongReference()
WireCommonLongValue. The LongValue implementation that is
returned depends on the wire implementation.newLongReference in interface WireCommonnewLongReference in class TextWireLongValue@NotNull public @NotNull net.openhft.chronicle.core.values.IntValue newIntReference()
WireCommonIntValue. The IntValue implementation that is
returned depends on the wire implementation.newIntReference in interface WireCommonnewIntReference in class TextWireIntValue.@NotNull public @NotNull net.openhft.chronicle.bytes.ref.BinaryLongArrayReference newLongArrayReference()
WireCommonLongArrayValues. The LongArrayValues implementation that
is returned depends on the wire implementation.newLongArrayReference in interface WireCommonnewLongArrayReference in class TextWireLongArrayValues@NotNull public @NotNull net.openhft.chronicle.core.values.IntArrayValues newIntArrayReference()
WireCommonIntArrayValues. The IntArrayValues implementation that
is returned depends on the wire implementation.newIntArrayReference in interface WireCommonnewIntArrayReference in class TextWireIntArrayValuesCopyright © 2024. All rights reserved.