Package io.deephaven.kv
Class GetPrefixResponse
java.lang.Object
io.deephaven.kv.GetPrefixResponse
- All Implemented Interfaces:
KeyValuesCollection,Response<GetPrefixResponse,GetPrefix>
public final class GetPrefixResponse
extends Object
implements Response<GetPrefixResponse,GetPrefix>, KeyValuesCollection
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.deephaven.kv.KeyValuesCollection
KeyValuesCollection.Empty -
Method Summary
Modifier and TypeMethodDescriptionReturns an immutable version ofthis.asMap()Return an unmodifiable map representing this collection.describe()An unfiltered description of the Request.voidPass this response back into the request, so thatRequest.hasResponse()becomes true, andRequest.getResponse()returns this.static GetPrefixResponseof(@NotNull GetPrefix getPrefix, @NotNull Collection<KeyValue> keyValues) static GetPrefixResponsevoidtraverse(@NotNull ResponseVisitor visitor) Invokes the appropriately typedResponseVisitormethod that corresponds to the concrete type of thisResponse.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.deephaven.kv.KeyValuesCollection
containsKey, get, isEmpty, keys, keyValues
-
Method Details
-
of
public static GetPrefixResponse of(@NotNull @NotNull GetPrefix getPrefix, @NotNull @NotNull Collection<KeyValue> keyValues) -
of
public static GetPrefixResponse of(@NotNull @NotNull GetPrefix getPrefix, @NotNull @NotNull Map<KeyPath, KeyValue> map) -
asImmutable
Description copied from interface:KeyValuesCollectionReturns an immutable version ofthis. May returnthisif it is immutable. Ensures that the caller can keep around their own immutable version.- Specified by:
asImmutablein interfaceKeyValuesCollection- Returns:
- an immutable version of
this
-
asMap
Description copied from interface:KeyValuesCollectionReturn an unmodifiable map representing this collection.Note: it is not necessarily the case that this map is immutable. If an immutable map is needed, use
asImmutable().asMap().- Specified by:
asMapin interfaceKeyValuesCollection- Returns:
- the unmodifiable map
-
getRequest
- Specified by:
getRequestin interfaceResponse<GetPrefixResponse,GetPrefix>
-
traverse
Description copied from interface:ResponseInvokes the appropriately typedResponseVisitormethod that corresponds to the concrete type of thisResponse.Thus, all implementations are essentially
visitor.visit((ConcreteType)this).- Specified by:
traversein interfaceResponse<GetPrefixResponse,GetPrefix> - Parameters:
visitor- the visitor
-
describe
Description copied from interface:ResponseAn unfiltered description of the Request. Meant to be used for debugging and development purposes.- Specified by:
describein interfaceResponse<GetPrefixResponse,GetPrefix>
-
linkToRequest
public void linkToRequest()Description copied from interface:ResponsePass this response back into the request, so thatRequest.hasResponse()becomes true, andRequest.getResponse()returns this. Should be called exactly once.- Specified by:
linkToRequestin interfaceResponse<GetPrefixResponse,GetPrefix>
-