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 type clickhouse.grpc.Result
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    Result 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

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     

    Fields inherited from class com.google.protobuf.GeneratedMessageV3

    alwaysUseFieldBuilders, unknownFields

    Fields inherited from class com.google.protobuf.AbstractMessage

    memoizedSize

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    memoizedHashCode
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    boolean
    Set by the ClickHouse server if executing was cancelled by the `cancel` field in QueryInfo.
    static Result
     
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    Set 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.ByteString
    bytes extremes = 3;
    getLogs(int index)
    repeated .clickhouse.grpc.LogEntry logs = 4;
    int
    repeated .clickhouse.grpc.LogEntry logs = 4;
    repeated .clickhouse.grpc.LogEntry logs = 4;
    getLogsOrBuilder(int index)
    repeated .clickhouse.grpc.LogEntry logs = 4;
    repeated .clickhouse.grpc.LogEntry logs = 4;
    com.google.protobuf.ByteString
    Output of the query, represented in the `output_format`.
    getOutputColumns(int index)
    The names and types of columns of the result written in `output`.
    int
    The names and types of columns of the result written in `output`.
    The names and types of columns of the result written in `output`.
    The names and types of columns of the result written in `output`.
    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.ByteString
    The 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.ByteString
    string query_id = 9;
    int
     
    .clickhouse.grpc.Stats stats = 6;
    .clickhouse.grpc.Stats stats = 6;
    string time_zone = 10;
    com.google.protobuf.ByteString
    string time_zone = 10;
    com.google.protobuf.ByteString
    bytes totals = 2;
    final com.google.protobuf.UnknownFieldSet
     
    boolean
    Set by the ClickHouse server if there was an exception thrown while executing.
    int
     
    boolean
    .clickhouse.grpc.Progress progress = 5;
    boolean
    .clickhouse.grpc.Stats stats = 6;
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
     
    final boolean
     
     
    newBuilder(Result prototype)
     
     
    protected Result.Builder
    newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
     
    protected Object
    newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
     
    static Result
     
    static Result
    parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static Result
    parseFrom(byte[] data)
     
    static Result
    parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static Result
    parseFrom(com.google.protobuf.ByteString data)
     
    static Result
    parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static Result
    parseFrom(com.google.protobuf.CodedInputStream input)
     
    static Result
    parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static Result
     
    static Result
    parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static Result
     
    static Result
    parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static com.google.protobuf.Parser<Result>
     
     
    void
    writeTo(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, 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

    Methods inherited from interface com.google.protobuf.MessageLite

    toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
  • Field Details

  • Method Details

    • newInstance

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance in class com.google.protobuf.GeneratedMessageV3
    • getUnknownFields

      public final com.google.protobuf.UnknownFieldSet getUnknownFields()
      Specified by:
      getUnknownFields in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getUnknownFields in class com.google.protobuf.GeneratedMessageV3
    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
    • getQueryId

      public String getQueryId()
      string query_id = 9;
      Specified by:
      getQueryId in interface ResultOrBuilder
      Returns:
      The queryId.
    • getQueryIdBytes

      public com.google.protobuf.ByteString getQueryIdBytes()
      string query_id = 9;
      Specified by:
      getQueryIdBytes in interface ResultOrBuilder
      Returns:
      The bytes for queryId.
    • getTimeZone

      public String getTimeZone()
      string time_zone = 10;
      Specified by:
      getTimeZone in interface ResultOrBuilder
      Returns:
      The timeZone.
    • getTimeZoneBytes

      public com.google.protobuf.ByteString getTimeZoneBytes()
      string time_zone = 10;
      Specified by:
      getTimeZoneBytes in interface ResultOrBuilder
      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:
      getOutputFormat in interface ResultOrBuilder
      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:
      getOutputFormatBytes in interface ResultOrBuilder
      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:
      getOutputColumnsList in interface ResultOrBuilder
    • 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:
      getOutputColumnsOrBuilderList in interface ResultOrBuilder
    • 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:
      getOutputColumnsCount in interface ResultOrBuilder
    • 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:
      getOutputColumns in interface ResultOrBuilder
    • 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:
      getOutputColumnsOrBuilder in interface ResultOrBuilder
    • getOutput

      public com.google.protobuf.ByteString getOutput()
       Output of the query, represented in the `output_format`.
       
      bytes output = 1;
      Specified by:
      getOutput in interface ResultOrBuilder
      Returns:
      The output.
    • getTotals

      public com.google.protobuf.ByteString getTotals()
      bytes totals = 2;
      Specified by:
      getTotals in interface ResultOrBuilder
      Returns:
      The totals.
    • getExtremes

      public com.google.protobuf.ByteString getExtremes()
      bytes extremes = 3;
      Specified by:
      getExtremes in interface ResultOrBuilder
      Returns:
      The extremes.
    • getLogsList

      public List<LogEntry> getLogsList()
      repeated .clickhouse.grpc.LogEntry logs = 4;
      Specified by:
      getLogsList in interface ResultOrBuilder
    • getLogsOrBuilderList

      public List<? extends LogEntryOrBuilder> getLogsOrBuilderList()
      repeated .clickhouse.grpc.LogEntry logs = 4;
      Specified by:
      getLogsOrBuilderList in interface ResultOrBuilder
    • getLogsCount

      public int getLogsCount()
      repeated .clickhouse.grpc.LogEntry logs = 4;
      Specified by:
      getLogsCount in interface ResultOrBuilder
    • getLogs

      public LogEntry getLogs(int index)
      repeated .clickhouse.grpc.LogEntry logs = 4;
      Specified by:
      getLogs in interface ResultOrBuilder
    • getLogsOrBuilder

      public LogEntryOrBuilder getLogsOrBuilder(int index)
      repeated .clickhouse.grpc.LogEntry logs = 4;
      Specified by:
      getLogsOrBuilder in interface ResultOrBuilder
    • hasProgress

      public boolean hasProgress()
      .clickhouse.grpc.Progress progress = 5;
      Specified by:
      hasProgress in interface ResultOrBuilder
      Returns:
      Whether the progress field is set.
    • getProgress

      public Progress getProgress()
      .clickhouse.grpc.Progress progress = 5;
      Specified by:
      getProgress in interface ResultOrBuilder
      Returns:
      The progress.
    • getProgressOrBuilder

      public ProgressOrBuilder getProgressOrBuilder()
      .clickhouse.grpc.Progress progress = 5;
      Specified by:
      getProgressOrBuilder in interface ResultOrBuilder
    • hasStats

      public boolean hasStats()
      .clickhouse.grpc.Stats stats = 6;
      Specified by:
      hasStats in interface ResultOrBuilder
      Returns:
      Whether the stats field is set.
    • getStats

      public Stats getStats()
      .clickhouse.grpc.Stats stats = 6;
      Specified by:
      getStats in interface ResultOrBuilder
      Returns:
      The stats.
    • getStatsOrBuilder

      public StatsOrBuilder getStatsOrBuilder()
      .clickhouse.grpc.Stats stats = 6;
      Specified by:
      getStatsOrBuilder in interface ResultOrBuilder
    • hasException

      public boolean hasException()
       Set by the ClickHouse server if there was an exception thrown while executing.
       
      .clickhouse.grpc.Exception exception = 7;
      Specified by:
      hasException in interface ResultOrBuilder
      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:
      getException in interface ResultOrBuilder
      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:
      getExceptionOrBuilder in interface ResultOrBuilder
    • getCancelled

      public boolean getCancelled()
       Set by the ClickHouse server if executing was cancelled by the `cancel` field in QueryInfo.
       
      bool cancelled = 8;
      Specified by:
      getCancelled in interface ResultOrBuilder
      Returns:
      The cancelled.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.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:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static Result.Builder newBuilder()
    • newBuilder

      public static Result.Builder newBuilder(Result prototype)
    • toBuilder

      public Result.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected Result.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.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:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

      public Result getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder