Examples of val()


Examples of tokyocabinet.BDBCUR.val()

   
    //if position not found
    if(cursor == null)
      return null;
   
    byte[] value = cursor.val();
   
    if(!cursor.out())
      throw new RuntimeException("Unable to remove record");
 
    return value;
View Full Code Here

Examples of tokyocabinet.BDBCUR.val()

   
    //if position not found
    if(cursor == null)
      return null;
   
    byte[] value = cursor.val();
   
 
    return value;
  }
 
View Full Code Here

Examples of tokyocabinet.BDBCUR.val()

    int currentPos = 0;
    int distance   = end - start;
    List<byte[]> response = new ArrayList<byte[]>();
   
    while(currentPos <= distance){
      response.add(cursor.val());
     
      if(!cursor.next())
        break;
     
      currentPos++;
View Full Code Here

Examples of uk.ac.uea.threadr.ThreadSafety.val()

        /* Any test that is not thread safe is failed. */
        failedTests.add(test.getClass());
      }
      /* If a result was returned, and it's worse than the stored one. */
      if (result != null
          && (result.val() < safety.val())) {
        safety = result; // Set the new safety result.
      }
    }
   
    /* Check the task can be serialised if it's VM safe. */
 
View Full Code Here

Examples of uk.ac.uea.threadr.ThreadSafety.val()

    if (superClass != null) {
      /* If a super class exists, test it. */
      Threadr.logger.info(superClass.getName());
      ThreadSafety result = new StaticTester().test(superClass);
      /* Overwrite the stored value if it is less safe. */
      if (result.val() < storedResult.val()) {
        storedResult = result;
      }
    }
   
    return storedResult;
View Full Code Here

Examples of uk.ac.uea.threadr.ThreadSafety.val()

          return ThreadSafety.VM;
        }
        logger.fine(f.toString());
        /* Test the type of the field to see if it is unsafe. */
        ThreadSafety result = new MemberTest().test(f.getReturnType());
        if (result.val() < storedResult.val())
          storedResult = result;
      }
    }
   
    /* Get the super class for this class if it has one. */
 
View Full Code Here

Examples of uk.ac.uea.threadr.ThreadSafety.val()

      logger.finer(String.format("\tTesting class %s as field of %s",
          superClass.getName(), clazz.getName()));
      /* If a super class exists, test it. */
      ThreadSafety result = new MemberTest().test(superClass);
      /* Overwrite the stored value if it is less safe. */
      if (result.val() < storedResult.val()) {
        logger.finer(String.format("\t%s unsafe.",
            superClass.getName()));
        storedResult = result;
      }
    }
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.