Examples of WriteType


Examples of com.datastax.driver.core.WriteType

    }
    if (x instanceof ReadTimeoutException) {
      return new CassandraReadTimeoutException(((ReadTimeoutException) x).wasDataRetrieved(), x.getMessage(), x);
    }
    if (x instanceof WriteTimeoutException) {
      WriteType writeType = ((WriteTimeoutException) x).getWriteType();
      return new CassandraWriteTimeoutException(writeType == null ? null : writeType.name(), x.getMessage(), x);
    }
    if (x instanceof TruncateException) {
      return new CassandraTruncateException(x.getMessage(), x);
    }
    if (x instanceof UnavailableException) {
View Full Code Here

Examples of org.apache.hadoop.hive.ql.hooks.WriteEntity.WriteType

  }

  public static HivePrivObjectActionType getActionType(Entity privObject) {
    HivePrivObjectActionType actionType = HivePrivObjectActionType.OTHER;
    if (privObject instanceof WriteEntity) {
      WriteType writeType = ((WriteEntity) privObject).getWriteType();
      switch (writeType) {
      case INSERT:
        return HivePrivObjectActionType.INSERT;
      case INSERT_OVERWRITE:
        return HivePrivObjectActionType.INSERT_OVERWRITE;
View Full Code Here

Examples of tachyon.client.WriteType

      // }
      return new FSDataOutputStream(file.getOutStream(WriteType.ASYNC_THROUGH), null);
    } else {
      TachyonURI path = new TachyonURI(Utils.getPathWithoutScheme(cPath));
      int fileId;
      WriteType type = UserConf.get().DEFAULT_WRITE_TYPE;
      if (mTFS.exist(path)) {
        fileId = mTFS.getFileId(path);
        type = WriteType.MUST_CACHE;
      } else {
        fileId = mTFS.createFile(path, blockSize);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.