Package com.iotics.api
Interface SparqlQueryResponse.PayloadOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
SparqlQueryResponse.Payload,SparqlQueryResponse.Payload.Builder
- Enclosing class:
- SparqlQueryResponse
public static interface SparqlQueryResponse.PayloadOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionContent type of the result.intContent type of the result.Result host identifier.com.google.protobuf.ByteStringResult host identifier.booleangetLast()Indicates whether this is the last chunk from a given host, for a specific request.com.google.protobuf.ByteStringQuery result chunk, encoded according to actualType.longPosition of a chunk in result from a given host (and request).Result error status (only applicable to local results).Result error status (only applicable to local results).booleanResult error status (only applicable to local results).Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getHostId
String getHostId()Result host identifier. Indicates from which host this result chunk came from. For a local result, this field will be unset.
string hostId = 1;- Returns:
- The hostId.
-
getHostIdBytes
com.google.protobuf.ByteString getHostIdBytes()Result host identifier. Indicates from which host this result chunk came from. For a local result, this field will be unset.
string hostId = 1;- Returns:
- The bytes for hostId.
-
getSeqNum
long getSeqNum()Position of a chunk in result from a given host (and request). The first chunk has a sequence number of 0.
uint64 seqNum = 2;- Returns:
- The seqNum.
-
getLast
boolean getLast()Indicates whether this is the last chunk from a given host, for a specific request. Results for different requests can be identified by setting a unique clientRef in the request headers.
bool last = 3;- Returns:
- The last.
-
hasStatus
boolean hasStatus()Result error status (only applicable to local results). If set, this will indicate a problem with running the query (e.g. invalid syntax or content type) as opposed to a more general issue (in which case the standard gRPC error mechanism will be used and the stream terminated).
.google.rpc.Status status = 4;- Returns:
- Whether the status field is set.
-
getStatus
Status getStatus()Result error status (only applicable to local results). If set, this will indicate a problem with running the query (e.g. invalid syntax or content type) as opposed to a more general issue (in which case the standard gRPC error mechanism will be used and the stream terminated).
.google.rpc.Status status = 4;- Returns:
- The status.
-
getStatusOrBuilder
StatusOrBuilder getStatusOrBuilder()Result error status (only applicable to local results). If set, this will indicate a problem with running the query (e.g. invalid syntax or content type) as opposed to a more general issue (in which case the standard gRPC error mechanism will be used and the stream terminated).
.google.rpc.Status status = 4; -
getContentTypeValue
int getContentTypeValue()Content type of the result.
.iotics.api.SparqlResultType contentType = 5;- Returns:
- The enum numeric value on the wire for contentType.
-
getContentType
SparqlResultType getContentType()Content type of the result.
.iotics.api.SparqlResultType contentType = 5;- Returns:
- The contentType.
-
getResultChunk
com.google.protobuf.ByteString getResultChunk()Query result chunk, encoded according to actualType. Note that: - The maximum size of each chunk is host-specific.
bytes resultChunk = 6;- Returns:
- The resultChunk.
-