Package com.clickhouse.client.grpc.impl
Class Result
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.clickhouse.client.grpc.impl.Result
- All Implemented Interfaces:
ResultOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
Result of execution of a query which is sent back by the ClickHouse server to the client.Protobuf type
clickhouse.grpc.Result- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classResult of execution of a query which is sent back by the ClickHouse server to the client.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanSet by the ClickHouse server if executing was cancelled by the `cancel` field in QueryInfo.static Resultstatic final com.google.protobuf.Descriptors.DescriptorSet by the ClickHouse server if there was an exception thrown while executing.Set by the ClickHouse server if there was an exception thrown while executing.com.google.protobuf.ByteStringbytes extremes = 3;getLogs(int index) repeated .clickhouse.grpc.LogEntry logs = 4;intrepeated .clickhouse.grpc.LogEntry logs = 4;repeated .clickhouse.grpc.LogEntry logs = 4;getLogsOrBuilder(int index) repeated .clickhouse.grpc.LogEntry logs = 4;List<? extends LogEntryOrBuilder>repeated .clickhouse.grpc.LogEntry logs = 4;com.google.protobuf.ByteStringOutput of the query, represented in the `output_format`.getOutputColumns(int index) The names and types of columns of the result written in `output`.intThe names and types of columns of the result written in `output`.The names and types of columns of the result written in `output`.getOutputColumnsOrBuilder(int index) The names and types of columns of the result written in `output`.List<? extends NameAndTypeOrBuilder>The names and types of columns of the result written in `output`.The format in which `output`, `totals` and `extremes` are written.com.google.protobuf.ByteStringThe format in which `output`, `totals` and `extremes` are written.com.google.protobuf.Parser<Result>.clickhouse.grpc.Progress progress = 5;.clickhouse.grpc.Progress progress = 5;string query_id = 9;com.google.protobuf.ByteStringstring query_id = 9;intgetStats().clickhouse.grpc.Stats stats = 6;.clickhouse.grpc.Stats stats = 6;string time_zone = 10;com.google.protobuf.ByteStringstring time_zone = 10;com.google.protobuf.ByteStringbytes totals = 2;final com.google.protobuf.UnknownFieldSetbooleanSet by the ClickHouse server if there was an exception thrown while executing.inthashCode()boolean.clickhouse.grpc.Progress progress = 5;booleanhasStats().clickhouse.grpc.Stats stats = 6;protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanstatic Result.Builderstatic Result.BuildernewBuilder(Result prototype) protected Result.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static ResultparseDelimitedFrom(InputStream input) static ResultparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ResultparseFrom(byte[] data) static ResultparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ResultparseFrom(com.google.protobuf.ByteString data) static ResultparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ResultparseFrom(com.google.protobuf.CodedInputStream input) static ResultparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ResultparseFrom(InputStream input) static ResultparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ResultparseFrom(ByteBuffer data) static ResultparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Result>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
-
Field Details
-
QUERY_ID_FIELD_NUMBER
public static final int QUERY_ID_FIELD_NUMBER- See Also:
-
TIME_ZONE_FIELD_NUMBER
public static final int TIME_ZONE_FIELD_NUMBER- See Also:
-
OUTPUT_FORMAT_FIELD_NUMBER
public static final int OUTPUT_FORMAT_FIELD_NUMBER- See Also:
-
OUTPUT_COLUMNS_FIELD_NUMBER
public static final int OUTPUT_COLUMNS_FIELD_NUMBER- See Also:
-
OUTPUT_FIELD_NUMBER
public static final int OUTPUT_FIELD_NUMBER- See Also:
-
TOTALS_FIELD_NUMBER
public static final int TOTALS_FIELD_NUMBER- See Also:
-
EXTREMES_FIELD_NUMBER
public static final int EXTREMES_FIELD_NUMBER- See Also:
-
LOGS_FIELD_NUMBER
public static final int LOGS_FIELD_NUMBER- See Also:
-
PROGRESS_FIELD_NUMBER
public static final int PROGRESS_FIELD_NUMBER- See Also:
-
STATS_FIELD_NUMBER
public static final int STATS_FIELD_NUMBER- See Also:
-
EXCEPTION_FIELD_NUMBER
public static final int EXCEPTION_FIELD_NUMBER- See Also:
-
CANCELLED_FIELD_NUMBER
public static final int CANCELLED_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()- Specified by:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getQueryId
string query_id = 9;- Specified by:
getQueryIdin interfaceResultOrBuilder- Returns:
- The queryId.
-
getQueryIdBytes
public com.google.protobuf.ByteString getQueryIdBytes()string query_id = 9;- Specified by:
getQueryIdBytesin interfaceResultOrBuilder- Returns:
- The bytes for queryId.
-
getTimeZone
string time_zone = 10;- Specified by:
getTimeZonein interfaceResultOrBuilder- Returns:
- The timeZone.
-
getTimeZoneBytes
public com.google.protobuf.ByteString getTimeZoneBytes()string time_zone = 10;- Specified by:
getTimeZoneBytesin interfaceResultOrBuilder- Returns:
- The bytes for timeZone.
-
getOutputFormat
The format in which `output`, `totals` and `extremes` are written. It's either the same as `output_format` specified in `QueryInfo` or the format specified in the query itself.
string output_format = 11;- Specified by:
getOutputFormatin interfaceResultOrBuilder- Returns:
- The outputFormat.
-
getOutputFormatBytes
public com.google.protobuf.ByteString getOutputFormatBytes()The format in which `output`, `totals` and `extremes` are written. It's either the same as `output_format` specified in `QueryInfo` or the format specified in the query itself.
string output_format = 11;- Specified by:
getOutputFormatBytesin interfaceResultOrBuilder- Returns:
- The bytes for outputFormat.
-
getOutputColumnsList
The names and types of columns of the result written in `output`.
repeated .clickhouse.grpc.NameAndType output_columns = 12;- Specified by:
getOutputColumnsListin interfaceResultOrBuilder
-
getOutputColumnsOrBuilderList
The names and types of columns of the result written in `output`.
repeated .clickhouse.grpc.NameAndType output_columns = 12;- Specified by:
getOutputColumnsOrBuilderListin interfaceResultOrBuilder
-
getOutputColumnsCount
public int getOutputColumnsCount()The names and types of columns of the result written in `output`.
repeated .clickhouse.grpc.NameAndType output_columns = 12;- Specified by:
getOutputColumnsCountin interfaceResultOrBuilder
-
getOutputColumns
The names and types of columns of the result written in `output`.
repeated .clickhouse.grpc.NameAndType output_columns = 12;- Specified by:
getOutputColumnsin interfaceResultOrBuilder
-
getOutputColumnsOrBuilder
The names and types of columns of the result written in `output`.
repeated .clickhouse.grpc.NameAndType output_columns = 12;- Specified by:
getOutputColumnsOrBuilderin interfaceResultOrBuilder
-
getOutput
public com.google.protobuf.ByteString getOutput()Output of the query, represented in the `output_format`.
bytes output = 1;- Specified by:
getOutputin interfaceResultOrBuilder- Returns:
- The output.
-
getTotals
public com.google.protobuf.ByteString getTotals()bytes totals = 2;- Specified by:
getTotalsin interfaceResultOrBuilder- Returns:
- The totals.
-
getExtremes
public com.google.protobuf.ByteString getExtremes()bytes extremes = 3;- Specified by:
getExtremesin interfaceResultOrBuilder- Returns:
- The extremes.
-
getLogsList
repeated .clickhouse.grpc.LogEntry logs = 4;- Specified by:
getLogsListin interfaceResultOrBuilder
-
getLogsOrBuilderList
repeated .clickhouse.grpc.LogEntry logs = 4;- Specified by:
getLogsOrBuilderListin interfaceResultOrBuilder
-
getLogsCount
public int getLogsCount()repeated .clickhouse.grpc.LogEntry logs = 4;- Specified by:
getLogsCountin interfaceResultOrBuilder
-
getLogs
repeated .clickhouse.grpc.LogEntry logs = 4;- Specified by:
getLogsin interfaceResultOrBuilder
-
getLogsOrBuilder
repeated .clickhouse.grpc.LogEntry logs = 4;- Specified by:
getLogsOrBuilderin interfaceResultOrBuilder
-
hasProgress
public boolean hasProgress().clickhouse.grpc.Progress progress = 5;- Specified by:
hasProgressin interfaceResultOrBuilder- Returns:
- Whether the progress field is set.
-
getProgress
.clickhouse.grpc.Progress progress = 5;- Specified by:
getProgressin interfaceResultOrBuilder- Returns:
- The progress.
-
getProgressOrBuilder
.clickhouse.grpc.Progress progress = 5;- Specified by:
getProgressOrBuilderin interfaceResultOrBuilder
-
hasStats
public boolean hasStats().clickhouse.grpc.Stats stats = 6;- Specified by:
hasStatsin interfaceResultOrBuilder- Returns:
- Whether the stats field is set.
-
getStats
.clickhouse.grpc.Stats stats = 6;- Specified by:
getStatsin interfaceResultOrBuilder- Returns:
- The stats.
-
getStatsOrBuilder
.clickhouse.grpc.Stats stats = 6;- Specified by:
getStatsOrBuilderin interfaceResultOrBuilder
-
hasException
public boolean hasException()Set by the ClickHouse server if there was an exception thrown while executing.
.clickhouse.grpc.Exception exception = 7;- Specified by:
hasExceptionin interfaceResultOrBuilder- Returns:
- Whether the exception field is set.
-
getException
Set by the ClickHouse server if there was an exception thrown while executing.
.clickhouse.grpc.Exception exception = 7;- Specified by:
getExceptionin interfaceResultOrBuilder- Returns:
- The exception.
-
getExceptionOrBuilder
Set by the ClickHouse server if there was an exception thrown while executing.
.clickhouse.grpc.Exception exception = 7;- Specified by:
getExceptionOrBuilderin interfaceResultOrBuilder
-
getCancelled
public boolean getCancelled()Set by the ClickHouse server if executing was cancelled by the `cancel` field in QueryInfo.
bool cancelled = 8;- Specified by:
getCancelledin interfaceResultOrBuilder- Returns:
- The cancelled.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Result parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Result parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Result parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Result parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Result parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Result parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Result parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Result parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Result parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Result.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-