Codota Logo
Requests$PrepareRequest.getMaxRowCount
Code IndexAdd Codota to your IDE (free)

How to use
getMaxRowCount
method
in
org.apache.calcite.avatica.proto.Requests$PrepareRequest

Best Java code snippets using org.apache.calcite.avatica.proto.Requests$PrepareRequest.getMaxRowCount (Showing top 12 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
DateTime d =
  • Codota Iconnew DateTime()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseDateTime(text)
  • Codota IconObject instant;new DateTime(instant)
  • Smart code suggestions by Codota
}
origin: org.apache.calcite.avatica/avatica-core

@java.lang.Override
public int hashCode() {
 if (memoizedHashCode != 0) {
  return memoizedHashCode;
 }
 int hash = 41;
 hash = (19 * hash) + getDescriptor().hashCode();
 hash = (37 * hash) + CONNECTION_ID_FIELD_NUMBER;
 hash = (53 * hash) + getConnectionId().hashCode();
 hash = (37 * hash) + SQL_FIELD_NUMBER;
 hash = (53 * hash) + getSql().hashCode();
 hash = (37 * hash) + MAX_ROW_COUNT_FIELD_NUMBER;
 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
   getMaxRowCount());
 hash = (37 * hash) + MAX_ROWS_TOTAL_FIELD_NUMBER;
 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
   getMaxRowsTotal());
 hash = (29 * hash) + unknownFields.hashCode();
 memoizedHashCode = hash;
 return hash;
}
origin: apache/calcite-avatica

@java.lang.Override
public int hashCode() {
 if (memoizedHashCode != 0) {
  return memoizedHashCode;
 }
 int hash = 41;
 hash = (19 * hash) + getDescriptor().hashCode();
 hash = (37 * hash) + CONNECTION_ID_FIELD_NUMBER;
 hash = (53 * hash) + getConnectionId().hashCode();
 hash = (37 * hash) + SQL_FIELD_NUMBER;
 hash = (53 * hash) + getSql().hashCode();
 hash = (37 * hash) + MAX_ROW_COUNT_FIELD_NUMBER;
 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
   getMaxRowCount());
 hash = (37 * hash) + MAX_ROWS_TOTAL_FIELD_NUMBER;
 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
   getMaxRowsTotal());
 hash = (29 * hash) + unknownFields.hashCode();
 memoizedHashCode = hash;
 return hash;
}
origin: apache/calcite-avatica

@java.lang.Override
public boolean equals(final java.lang.Object obj) {
 if (obj == this) {
  return true;
 }
 if (!(obj instanceof org.apache.calcite.avatica.proto.Requests.PrepareRequest)) {
  return super.equals(obj);
 }
 org.apache.calcite.avatica.proto.Requests.PrepareRequest other = (org.apache.calcite.avatica.proto.Requests.PrepareRequest) obj;
 boolean result = true;
 result = result && getConnectionId()
   .equals(other.getConnectionId());
 result = result && getSql()
   .equals(other.getSql());
 result = result && (getMaxRowCount()
   == other.getMaxRowCount());
 result = result && (getMaxRowsTotal()
   == other.getMaxRowsTotal());
 result = result && unknownFields.equals(other.unknownFields);
 return result;
}
origin: org.apache.calcite.avatica/avatica-core

@Test public void testPrepareSerialization() throws Exception {
 final String sql = "SELECT * FROM FOO";
 final String connectionId = UUID.randomUUID().toString();
 for (long maxRowCount : Arrays.asList(-1L, 0L, 1L, Long.MAX_VALUE)) {
  Service.PrepareRequest prepareReq = new Service.PrepareRequest(connectionId, sql,
    maxRowCount);
  Requests.PrepareRequest prepareProtoReq = prepareReq.serialize();
  assertEquals(maxRowCount, prepareProtoReq.getMaxRowCount());
  assertEquals(maxRowCount, prepareProtoReq.getMaxRowsTotal());
  assertEquals(prepareReq, prepareReq.deserialize(prepareProtoReq));
 }
}
origin: org.apache.calcite/calcite-avatica

@Override PrepareRequest deserialize(Message genericMsg) {
 final Requests.PrepareRequest msg = ProtobufService.castProtobufMessage(genericMsg,
   Requests.PrepareRequest.class);
 final Descriptor desc = msg.getDescriptorForType();
 String connectionId = null;
 if (ProtobufService.hasField(msg, desc, Requests.PrepareRequest.CONNECTION_ID_FIELD_NUMBER)) {
  connectionId = msg.getConnectionId();
 }
 String sql = null;
 if (ProtobufService.hasField(msg, desc, Requests.PrepareRequest.SQL_FIELD_NUMBER)) {
  sql = msg.getSql();
 }
 return new PrepareRequest(connectionId, sql, msg.getMaxRowCount());
}
origin: org.apache.calcite/calcite-avatica

public Builder mergeFrom(org.apache.calcite.avatica.proto.Requests.PrepareRequest other) {
 if (other == org.apache.calcite.avatica.proto.Requests.PrepareRequest.getDefaultInstance()) return this;
 if (!other.getConnectionId().isEmpty()) {
  connectionId_ = other.connectionId_;
  onChanged();
 }
 if (!other.getSql().isEmpty()) {
  sql_ = other.sql_;
  onChanged();
 }
 if (other.getMaxRowCount() != 0L) {
  setMaxRowCount(other.getMaxRowCount());
 }
 onChanged();
 return this;
}
origin: org.apache.calcite.avatica/avatica-core

@Override PrepareRequest deserialize(Message genericMsg) {
 final Requests.PrepareRequest msg = ProtobufService.castProtobufMessage(genericMsg,
   Requests.PrepareRequest.class);
 String connectionId = null;
 if (msg.hasField(CONNECTION_ID_DESCRIPTOR)) {
  connectionId = msg.getConnectionId();
 }
 String sql = null;
 if (msg.hasField(SQL_DESCRIPTOR)) {
  sql = msg.getSql();
 }
 // Use the old field unless the new field is provided
 long totalRowsForStatement = msg.getMaxRowCount();
 if (msg.hasField(MAX_ROWS_TOTAL_DESCRIPTOR)) {
  totalRowsForStatement = msg.getMaxRowsTotal();
 }
 return new PrepareRequest(connectionId, sql, totalRowsForStatement);
}
origin: apache/calcite-avatica

@Test public void testPrepareSerialization() throws Exception {
 final String sql = "SELECT * FROM FOO";
 final String connectionId = UUID.randomUUID().toString();
 for (long maxRowCount : Arrays.asList(-1L, 0L, 1L, Long.MAX_VALUE)) {
  Service.PrepareRequest prepareReq = new Service.PrepareRequest(connectionId, sql,
    maxRowCount);
  Requests.PrepareRequest prepareProtoReq = prepareReq.serialize();
  assertEquals(maxRowCount, prepareProtoReq.getMaxRowCount());
  assertEquals(maxRowCount, prepareProtoReq.getMaxRowsTotal());
  assertEquals(prepareReq, prepareReq.deserialize(prepareProtoReq));
 }
}
origin: apache/calcite-avatica

@Override PrepareRequest deserialize(Message genericMsg) {
 final Requests.PrepareRequest msg = ProtobufService.castProtobufMessage(genericMsg,
   Requests.PrepareRequest.class);
 String connectionId = null;
 if (msg.hasField(CONNECTION_ID_DESCRIPTOR)) {
  connectionId = msg.getConnectionId();
 }
 String sql = null;
 if (msg.hasField(SQL_DESCRIPTOR)) {
  sql = msg.getSql();
 }
 // Use the old field unless the new field is provided
 long totalRowsForStatement = msg.getMaxRowCount();
 if (msg.hasField(MAX_ROWS_TOTAL_DESCRIPTOR)) {
  totalRowsForStatement = msg.getMaxRowsTotal();
 }
 return new PrepareRequest(connectionId, sql, totalRowsForStatement);
}
origin: org.apache.calcite.avatica/avatica-core

public Builder mergeFrom(org.apache.calcite.avatica.proto.Requests.PrepareRequest other) {
 if (other == org.apache.calcite.avatica.proto.Requests.PrepareRequest.getDefaultInstance()) return this;
 if (!other.getConnectionId().isEmpty()) {
  connectionId_ = other.connectionId_;
  onChanged();
 }
 if (!other.getSql().isEmpty()) {
  sql_ = other.sql_;
  onChanged();
 }
 if (other.getMaxRowCount() != 0L) {
  setMaxRowCount(other.getMaxRowCount());
 }
 if (other.getMaxRowsTotal() != 0L) {
  setMaxRowsTotal(other.getMaxRowsTotal());
 }
 this.mergeUnknownFields(other.unknownFields);
 onChanged();
 return this;
}
origin: apache/calcite-avatica

public Builder mergeFrom(org.apache.calcite.avatica.proto.Requests.PrepareRequest other) {
 if (other == org.apache.calcite.avatica.proto.Requests.PrepareRequest.getDefaultInstance()) return this;
 if (!other.getConnectionId().isEmpty()) {
  connectionId_ = other.connectionId_;
  onChanged();
 }
 if (!other.getSql().isEmpty()) {
  sql_ = other.sql_;
  onChanged();
 }
 if (other.getMaxRowCount() != 0L) {
  setMaxRowCount(other.getMaxRowCount());
 }
 if (other.getMaxRowsTotal() != 0L) {
  setMaxRowsTotal(other.getMaxRowsTotal());
 }
 this.mergeUnknownFields(other.unknownFields);
 onChanged();
 return this;
}
origin: org.apache.calcite.avatica/avatica-core

@java.lang.Override
public boolean equals(final java.lang.Object obj) {
 if (obj == this) {
  return true;
 }
 if (!(obj instanceof org.apache.calcite.avatica.proto.Requests.PrepareRequest)) {
  return super.equals(obj);
 }
 org.apache.calcite.avatica.proto.Requests.PrepareRequest other = (org.apache.calcite.avatica.proto.Requests.PrepareRequest) obj;
 boolean result = true;
 result = result && getConnectionId()
   .equals(other.getConnectionId());
 result = result && getSql()
   .equals(other.getSql());
 result = result && (getMaxRowCount()
   == other.getMaxRowCount());
 result = result && (getMaxRowsTotal()
   == other.getMaxRowsTotal());
 result = result && unknownFields.equals(other.unknownFields);
 return result;
}
org.apache.calcite.avatica.protoRequests$PrepareRequestgetMaxRowCount

Javadoc

 
Deprecated 
uint64 max_row_count = 3;

Popular methods of Requests$PrepareRequest

  • newBuilder
  • <init>
  • getConnectionId
    optional string connection_id = 1;
  • getConnectionIdBytes
    optional string connection_id = 1;
  • getDefaultInstance
  • getMaxRowsTotal
    The maximum number of rows that will be allowed for this query int64 max_rows_total = 4;
  • getSql
    optional string sql = 2;
  • getSqlBytes
    optional string sql = 2;
  • isInitialized
  • makeExtensionsImmutable
  • toBuilder
  • getDescriptor
  • toBuilder,
  • getDescriptor,
  • getDescriptorForType,
  • hasField,
  • parseUnknownFieldProto3

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getApplicationContext (Context)
  • startActivity (Activity)
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • BufferedReader (java.io)
    Reads text from a character-input stream, buffering characters so as to provide for the efficient re
  • Locale (java.util)
    A Locale object represents a specific geographical, political, or cultural region. An operation that
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • Properties (java.util)
    The Properties class represents a persistent set of properties. The Properties can be saved to a st
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.This exception may include information for locating the er
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now