Examples of truncate()


Examples of Framework.TextData.truncate()

                }
            }
        }

        str.setOffset(str.totalLength()-2);
        str.truncate();

        if (this.getForUpdate() && this.getDBSession().getDBVendorType() == Constants.DB_VT_SYBASE) {
            str.concat(" holdlock");
        }
View Full Code Here

Examples of co.cask.cdap.api.dataset.DatasetAdmin.truncate()

  @VisibleForTesting
  void clear() throws Exception {
    DatasetAdmin admin = dsFramework.getAdmin(APP_META_TABLE, null);
    if (admin != null) {
      admin.truncate();
    }
  }

  /**
   * @return The {@link Location} of the given program.
View Full Code Here

Examples of com.caucho.vfs.Path.truncate()

  {
    if (handle instanceof FileOutput) {
      Path path = ((FileOutput) handle).getPath();

      try {
        return path.truncate(size);
      } catch (IOException e) {
        return false;
      }
    }
View Full Code Here

Examples of com.documentum.fc.client.IDfPersistentObject.truncate()

          case STRING:
            obj.setString(name, getString(name));
            break;
          case LIST:
            CaoList list = getList(name);
            obj.truncate(name, 0);
            listItemName = list.getMetadata().getDefinitionAt(0).getName();
            for (CaoElement item :list.getElements()) {
              obj.appendString(name, item.getString(listItemName ));
            }
          }
View Full Code Here

Examples of com.esri.sde.sdk.client.SeTable.truncate()

                        table = session.getTable(tempTableName);
                    } catch (IOException e) {
                        // table does not exist, its ok.
                        return null;
                    }
                    table.truncate();
                    return null;
                }
            });
        } finally {
            session.dispose();
View Full Code Here

Examples of com.foundationdb.blob.BlobAsync.truncate()

                newValue = buffer.array();
            } else {
                newValue = Arrays.copyOfRange(buffer.array(), buffer.position(), buffer.limit());
            }
            BlobAsync blob = new BlobAsync(blobDir);
            blob.truncate(txn.getTransaction(), 0).get();
            blob.write(txn.getTransaction(), 0, newValue).get();
        } else {
            dir.removeIfExists(txn.getTransaction(), PathUtil.from(schema)).get();
        }
        return buffer;
View Full Code Here

Examples of com.metamx.common.Granularity.truncate()

    }

    final Granularity segmentGranularity = schema.getGranularitySpec().getSegmentGranularity();
    final VersioningPolicy versioningPolicy = config.getVersioningPolicy();

    final long truncatedTime = segmentGranularity.truncate(new DateTime(timestamp)).getMillis();

    Sink retVal = sinks.get(truncatedTime);

    if (retVal == null) {
      final Interval sinkInterval = new Interval(
View Full Code Here

Examples of com.orientechnologies.orient.core.storage.OCluster.truncate()

    OCluster cluster = ((OStorageEmbedded) database.getStorage()).getClusterByName(clusterName);

    final long recs = cluster.getEntries();

    try {
      cluster.truncate();
    } catch (IOException e) {
      throw new OCommandExecutionException("Error on executing command", e);
    }

    return recs;
View Full Code Here

Examples of com.sleepycat.db.Database.truncate()

        throws DatabaseException, FileNotFoundException {

        assert fileName != null;
        Database db = env.openDatabase(txn, fileName, dbName, null);
        try {
            return db.truncate(txn, returnCount);
        } finally {
            db.close();
        }
    }
View Full Code Here

Examples of com.sleepycat.je.SecondaryDatabase.truncate()

            secDb.putNoDupData(txn, key, data);
            fail();
        } catch (UnsupportedOperationException expected) { }

        try {
            secDb.truncate(txn, true);
            fail();
        } catch (UnsupportedOperationException expected) { }

        try {
            secDb.join(new Cursor[0], null);
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.