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
public final class Result extends com.google.protobuf.GeneratedMessageV3 implements ResultOrBuilder
Result of execution of a query which is sent back by the ClickHouse server to the client.
Protobuf typeclickhouse.grpc.Result- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classResult.BuilderResult 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
-
-
Field Summary
Fields Modifier and Type Field Description static intCANCELLED_FIELD_NUMBERstatic intEXCEPTION_FIELD_NUMBERstatic intEXTREMES_FIELD_NUMBERstatic intLOGS_FIELD_NUMBERstatic intOUTPUT_COLUMNS_FIELD_NUMBERstatic intOUTPUT_FIELD_NUMBERstatic intOUTPUT_FORMAT_FIELD_NUMBERstatic intPROGRESS_FIELD_NUMBERstatic intQUERY_ID_FIELD_NUMBERstatic intSTATS_FIELD_NUMBERstatic intTIME_ZONE_FIELD_NUMBERstatic intTOTALS_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)booleangetCancelled()Set by the ClickHouse server if executing was cancelled by the `cancel` field in QueryInfo.static ResultgetDefaultInstance()ResultgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()ExceptiongetException()Set by the ClickHouse server if there was an exception thrown while executing.ExceptionOrBuildergetExceptionOrBuilder()Set by the ClickHouse server if there was an exception thrown while executing.com.google.protobuf.ByteStringgetExtremes()bytes extremes = 3;LogEntrygetLogs(int index)repeated .clickhouse.grpc.LogEntry logs = 4;intgetLogsCount()repeated .clickhouse.grpc.LogEntry logs = 4;List<LogEntry>getLogsList()repeated .clickhouse.grpc.LogEntry logs = 4;LogEntryOrBuildergetLogsOrBuilder(int index)repeated .clickhouse.grpc.LogEntry logs = 4;List<? extends LogEntryOrBuilder>getLogsOrBuilderList()repeated .clickhouse.grpc.LogEntry logs = 4;com.google.protobuf.ByteStringgetOutput()Output of the query, represented in the `output_format`.NameAndTypegetOutputColumns(int index)The names and types of columns of the result written in `output`.intgetOutputColumnsCount()The names and types of columns of the result written in `output`.List<NameAndType>getOutputColumnsList()The names and types of columns of the result written in `output`.NameAndTypeOrBuildergetOutputColumnsOrBuilder(int index)The names and types of columns of the result written in `output`.List<? extends NameAndTypeOrBuilder>getOutputColumnsOrBuilderList()The names and types of columns of the result written in `output`.StringgetOutputFormat()The format in which `output`, `totals` and `extremes` are written.com.google.protobuf.ByteStringgetOutputFormatBytes()The format in which `output`, `totals` and `extremes` are written.com.google.protobuf.Parser<Result>getParserForType()ProgressgetProgress().clickhouse.grpc.Progress progress = 5;ProgressOrBuildergetProgressOrBuilder().clickhouse.grpc.Progress progress = 5;StringgetQueryId()string query_id = 9;com.google.protobuf.ByteStringgetQueryIdBytes()string query_id = 9;intgetSerializedSize()StatsgetStats().clickhouse.grpc.Stats stats = 6;StatsOrBuildergetStatsOrBuilder().clickhouse.grpc.Stats stats = 6;StringgetTimeZone()string time_zone = 10;com.google.protobuf.ByteStringgetTimeZoneBytes()string time_zone = 10;com.google.protobuf.ByteStringgetTotals()bytes totals = 2;com.google.protobuf.UnknownFieldSetgetUnknownFields()booleanhasException()Set by the ClickHouse server if there was an exception thrown while executing.inthashCode()booleanhasProgress().clickhouse.grpc.Progress progress = 5;booleanhasStats().clickhouse.grpc.Stats stats = 6;protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static Result.BuildernewBuilder()static Result.BuildernewBuilder(Result prototype)Result.BuildernewBuilderForType()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()Result.BuildertoBuilder()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, 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, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
QUERY_ID_FIELD_NUMBER
public static final int QUERY_ID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TIME_ZONE_FIELD_NUMBER
public static final int TIME_ZONE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
OUTPUT_FORMAT_FIELD_NUMBER
public static final int OUTPUT_FORMAT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
OUTPUT_COLUMNS_FIELD_NUMBER
public static final int OUTPUT_COLUMNS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
OUTPUT_FIELD_NUMBER
public static final int OUTPUT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TOTALS_FIELD_NUMBER
public static final int TOTALS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
EXTREMES_FIELD_NUMBER
public static final int EXTREMES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LOGS_FIELD_NUMBER
public static final int LOGS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PROGRESS_FIELD_NUMBER
public static final int PROGRESS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
STATS_FIELD_NUMBER
public static final int STATS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
EXCEPTION_FIELD_NUMBER
public static final int EXCEPTION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CANCELLED_FIELD_NUMBER
public static final int CANCELLED_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- 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
public String 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
public String 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
public String 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
public List<NameAndType> 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
public List<? extends NameAndTypeOrBuilder> 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
public NameAndType getOutputColumns(int index)
The names and types of columns of the result written in `output`.
repeated .clickhouse.grpc.NameAndType output_columns = 12;- Specified by:
getOutputColumnsin interfaceResultOrBuilder
-
getOutputColumnsOrBuilder
public NameAndTypeOrBuilder getOutputColumnsOrBuilder(int index)
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
public List<LogEntry> getLogsList()
repeated .clickhouse.grpc.LogEntry logs = 4;- Specified by:
getLogsListin interfaceResultOrBuilder
-
getLogsOrBuilderList
public List<? extends LogEntryOrBuilder> 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
public LogEntry getLogs(int index)
repeated .clickhouse.grpc.LogEntry logs = 4;- Specified by:
getLogsin interfaceResultOrBuilder
-
getLogsOrBuilder
public LogEntryOrBuilder getLogsOrBuilder(int index)
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
public Progress getProgress()
.clickhouse.grpc.Progress progress = 5;- Specified by:
getProgressin interfaceResultOrBuilder- Returns:
- The progress.
-
getProgressOrBuilder
public ProgressOrBuilder 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
public Stats getStats()
.clickhouse.grpc.Stats stats = 6;- Specified by:
getStatsin interfaceResultOrBuilder- Returns:
- The stats.
-
getStatsOrBuilder
public StatsOrBuilder 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
public Exception 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
public ExceptionOrBuilder 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
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- 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
public boolean equals(Object obj)
- 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
public static Result parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Result parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Result parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Result parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static Result parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Result parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public Result.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Result.Builder newBuilder()
-
newBuilder
public static Result.Builder newBuilder(Result prototype)
-
toBuilder
public Result.Builder 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
public static Result getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Result> parser()
-
getParserForType
public com.google.protobuf.Parser<Result> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Result getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-