Package com.youtube.vitess.vtgate.Exceptions

Examples of com.youtube.vitess.vtgate.Exceptions.DatabaseException


    String error = response.getError();
    if (error != null) {
      if (error.contains(INTEGRITY_ERROR_MSG)) {
        throw new IntegrityException(error);
      }
      throw new DatabaseException(response.getError());
    }
    if (response.getSession() != null) {
      session = response.getSession();
    }
    if (query.isStreaming()) {
View Full Code Here


    String error = response.getError();
    if (error != null) {
      if (error.contains(INTEGRITY_ERROR_MSG)) {
        throw new IntegrityException(error);
      }
      throw new DatabaseException(response.getError());
    }
    if (response.getSession() != null) {
      session = response.getSession();
    }
    List<Cursor> cursors = new LinkedList<>();
View Full Code Here

  public Map<Query, Long> splitQuery(String keyspace, String sql, int splitsPerShard)
      throws ConnectionException, DatabaseException {
    SplitQueryRequest req = new SplitQueryRequest(sql, keyspace, splitsPerShard);
    SplitQueryResponse response = client.splitQuery(req);
    if (response.getError() != null) {
      throw new DatabaseException(response.getError());
    }
    return response.getQueries();
  }
View Full Code Here

TOP

Related Classes of com.youtube.vitess.vtgate.Exceptions.DatabaseException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.