Examples of exec()


Examples of com.twitter.elephantbird.pig.piggybank.InvokeForFloat.exec()

    public void testFloatInvoker() throws SecurityException, ClassNotFoundException, NoSuchMethodException, NumberFormatException, IOException {
        InvokeForFloat il = new InvokeForFloat("java.lang.Float.valueOf", "String");
        Tuple t = tf_.newTuple(1);
        String arg = "245.3";
        t.set(0, arg);
        assertEquals(Float.valueOf(arg), il.exec(t));
    }

    public static String concatStrings(String str1, String str2) {
        return str1.concat(str2);
    }
View Full Code Here

Examples of com.twitter.elephantbird.pig.piggybank.InvokeForInt.exec()

    }

    @Test
    public void testNoArgInvoker() throws SecurityException, ClassNotFoundException, NoSuchMethodException, IOException {
      InvokeForInt id = new InvokeForInt(TestInvoker.class.getName() + ".simpleStaticFunction");
      assertEquals(Integer.valueOf(1), id.exec(tf_.newTuple()));
    }
    @Test
    public void testLongInvoker() throws SecurityException, ClassNotFoundException, NoSuchMethodException, NumberFormatException, IOException {
        InvokeForLong il = new InvokeForLong("java.lang.Long.valueOf", "String");
        Tuple t = tf_.newTuple(1);
View Full Code Here

Examples of com.twitter.elephantbird.pig.piggybank.InvokeForLong.exec()

    public void testLongInvoker() throws SecurityException, ClassNotFoundException, NoSuchMethodException, NumberFormatException, IOException {
        InvokeForLong il = new InvokeForLong("java.lang.Long.valueOf", "String");
        Tuple t = tf_.newTuple(1);
        String arg = "245";
        t.set(0, arg);
        assertEquals(Long.valueOf(arg), il.exec(t));
    }

    @Test
    public void testIntInvoker() throws SecurityException, ClassNotFoundException, NoSuchMethodException, NumberFormatException, IOException {
        InvokeForInt il = new InvokeForInt("java.lang.Integer.valueOf", "String");
View Full Code Here

Examples of com.twitter.elephantbird.pig.piggybank.InvokeForString.exec()

    @Test
    public void testStringInvoker() throws SecurityException, ClassNotFoundException, NoSuchMethodException, IOException {

        // Test non-static method
        InvokeForString is = new InvokeForString("java.lang.String.toUpperCase", "String", "false");
        assertEquals("FOO", is.exec(tf_.newTuple("foo")));

        // both "static" and "true" should work
        // Test static method
        is = new InvokeForString("java.lang.String.valueOf", "int", "true");
        Tuple t = tf_.newTuple(1);
View Full Code Here

Examples of cx.fbn.nevernote.dialog.ConfigDialog.exec()

        String timeFormat = Global.getTimeFormat();
       
    indexTime = 1000*Global.getIndexThreadSleepInterval()
    indexTimer.start(indexTime)// reset indexing timer
       
        settings.exec();
        indexRunner.indexAttachmentsLocally = Global.indexAttachmentsLocally();
        indexRunner.indexNoteBody = Global.indexNoteBody();
        indexRunner.indexNoteTitle = Global.indexNoteTitle();
        indexRunner.specialIndexCharacters = Global.getSpecialIndexCharacters();
        indexRunner.indexImageRecognition = Global.indexImageRecognition();
View Full Code Here

Examples of cx.fbn.nevernote.dialog.DBEncryptDialog.exec()

            QMessageBox.StandardButton.Yes,
            QMessageBox.StandardButton.No)==StandardButton.No.value()) {
            return;
        }
          DBEncryptDialog dialog = new DBEncryptDialog();
          dialog.exec();
          if (dialog.okPressed()) {
               Global.cipherPassword = dialog.getPassword();
               encryptOnShutdown  = true;
               encryptCipher = dialog.getEncryptionMethod();
          }
View Full Code Here

Examples of cx.fbn.nevernote.dialog.DatabaseLoginDialog.exec()

     
        if (Global.getDatabaseUrl().toUpperCase().indexOf("CIPHER=") > -1) {
            boolean goodCheck = false;
            while (!goodCheck) {
                DatabaseLoginDialog dialog = new DatabaseLoginDialog();
                dialog.exec();
                if (!dialog.okPressed())
                    System.exit(0);
                Global.cipherPassword = dialog.getPassword();
                goodCheck = databaseCheck(Global.getDatabaseUrl(), Global.getDatabaseUserid(),
                        Global.getDatabaseUserPassword(), Global.cipherPassword);
View Full Code Here

Examples of cx.fbn.nevernote.dialog.DatabaseStatus.exec()

    status.setSavedSearchCount(listManager.getSavedSearchIndex().size());
    status.setTagCount(listManager.getTagIndex().size());
    status.setResourceCount(conn.getNoteTable().noteResourceTable.getResourceCount());
    status.setWordCount(conn.getWordsTable().getWordCount());
    waitCursor(false);
    status.exec();
  }
  // Compact the database
  @SuppressWarnings("unused")
  private void compactDatabase() {
      logger.log(logger.HIGH, "Entering NeverNote.compactDatabase");
View Full Code Here

Examples of cx.fbn.nevernote.dialog.EnCryptDialog.exec()

    if (text.trim().equalsIgnoreCase(""))
      return;
    text = new String(text.replaceAll("\n", "<br/>"));

    EnCryptDialog dialog = new EnCryptDialog();
    dialog.exec();
    if (!dialog.okPressed()) {
      return;
    }

    EnCrypt crypt = new EnCrypt();
View Full Code Here

Examples of cx.fbn.nevernote.dialog.EnDecryptDialog.exec()

   
   
    EnDecryptDialog dialog = new EnDecryptDialog();
    dialog.setHint(hint);
    while (plainText == null || !dialog.okPressed()) {
      dialog.exec();
      if (!dialog.okPressed()) {
        return;
      }
      plainText = crypt.decrypt(text, dialog.getPassword().trim(), 64);
      if (plainText == 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.