Examples of jump()


Examples of codeanticode.gsvideo.GSMovie.jump()

   *
   * @param where the where
   */
  public void jump(float where) {
    GSMovie movie = getMovie();
    movie.jump(where);
  }
 
 
  /**
   * Play.
 
View Full Code Here

Examples of com.cloudhopper.datastore.DataStoreIterator.jump()

    public void dump(Queue queue) throws Exception {
  // queue
  if (queue.getSize() > 0 && dataStore.hasAscendingIteratorSupport()) {
      printHeader(queue);
      DataStoreIterator iterator = dataStore.getAscendingIterator();
      boolean jumped = iterator.jump(priorityKeyUtil.encode(queue.getId(), 0L));
      if (!jumped) return;
      while (true) {
    try {
        DataStoreIterator.Record record = iterator.getRecord();
        byte[] keyBytes = record.getKey();
View Full Code Here

Examples of com.cloudhopper.datastore.DataStoreIterator.jump()

     * Load a page from the ds. Call this only when the lock is acquired.
     */
    private int loadPage() throws DataStoreFatalException {
  int loaded = 0;
        DataStoreIterator iterator = ds.getAscendingIterator();
  iterator.jump(priorityKeyUtil.encode(getId(), 0L));
  try {
      do {
    // get the next record
    DataStoreIterator.Record record = iterator.getRecord();
    byte[] k = record.getKey();
View Full Code Here

Examples of com.cloudhopper.datastore.DataStoreIterator.jump()

    }

    @Override
    protected PriorityMQMessage<E> doTake() throws QueueInvalidStateException, QueueFatalException, QueueTimeoutException, DataStoreFatalException  {
        DataStoreIterator iterator = ds.getAscendingIterator();
  boolean jumped = iterator.jump(priorityKeyUtil.encode(getId(), 0L));
  if (!jumped) logger.warn("DataStoreIterator failed to jump to queue's first record {} {}", getId(), 0L);
  // if (!jumped) something is wrong, we should zero the size and exit
  try {
      DataStoreIterator.Record record = iterator.getRecord();
      CompositeKey key = priorityKeyUtil.decode(record.getKey());
View Full Code Here

Examples of com.cloudhopper.datastore.DataStoreIterator.jump()

    public void dump(Queue queue) throws Exception {
  // queue
  if (queue.getSize() > 0 && dataStore.hasAscendingIteratorSupport()) {
      printHeader(queue);
      DataStoreIterator iterator = dataStore.getAscendingIterator();
      boolean jumped = iterator.jump(priorityKeyUtil.encode(queue.getId(), 0L));
      if (!jumped) return;
      while (true) {
    try {
        DataStoreIterator.Record record = iterator.getRecord();
        byte[] keyBytes = record.getKey();
View Full Code Here

Examples of com.foundationdb.qp.operator.Cursor.jump()

        Operator plan = indexScan_Default(idxRowType, range, ordering);
        Cursor cursor = cursor(plan, queryContext, queryBindings);
        cursor.openTopLevel();


        cursor.jump(indexRowWithId(targetId1, targetId2), INDEX_ROW_SELECTOR);

        Row row;
        List<Row> actualRows = new ArrayList<>();
       
        while ((row = cursor.next()) != null)
View Full Code Here

Examples of com.foundationdb.qp.operator.Cursor.jump()

                               long expected[])
    {
        Operator plan = indexScan_Default(idxRowType, bounded(1, bLo, lowInclusive, bHi, hiInclusive), ordering);
        Cursor cursor = cursor(plan, queryContext, queryBindings);
        cursor.openTopLevel();
        cursor.jump(indexRow(targetId), INDEX_ROW_SELECTOR);

        Row row;
        List<Row> actualRows = new ArrayList<>();
       
        while ((row = cursor.next()) != null)
View Full Code Here

Examples of com.foundationdb.qp.operator.Cursor.jump()

    {
        Operator plan = indexScan_Default(idxRowType, range, ordering);
        Cursor cursor = cursor(plan, queryContext, queryBindings);
        cursor.openTopLevel();

        cursor.jump(indexRowWithId(targetId), INDEX_ROW_SELECTOR);

        Row row;
        List<Row> actualRows = new ArrayList<>();
       
        while ((row = cursor.next()) != null)
View Full Code Here

Examples of com.foundationdb.qp.operator.Cursor.jump()

                               long expected[])
    {
        Operator plan = indexScan_Default(idxRowType, unbounded(), ordering);
        Cursor cursor = cursor(plan, queryContext, queryBindings);
        cursor.openTopLevel();
        cursor.jump(indexRow(targetId), INDEX_ROW_SELECTOR);

        Row row;
        List<Row> actualRows = new ArrayList<>();
        while ((row = cursor.next()) != null)
        {
View Full Code Here

Examples of com.jcabi.http.response.RestResponse.jump()

                .links()
                .get("next");
            if (link == null) {
                this.more = false;
            } else {
                this.request = response.jump(link.uri());
            }
            final JsonArray arr = response.as(JsonResponse.class).json()
                .readArray();
            final Queue<P> list = new LinkedList<P>();
            for (final JsonValue value : arr) {
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.