Examples of open()


Examples of com.cicadalane.androlate.AndrolateWizardDialog.open()

    // Create the wizard dialog
    AndrolateWizardDialog dialog = new AndrolateWizardDialog(shell, wizard);

    dialog.create();
    dialog.open();
  }

  /**
   * @see IActionDelegate#selectionChanged(IAction, ISelection)
   */
 
View Full Code Here

Examples of com.clearnlp.constituent.CTReader.open()

 
  public void collectPhrases(String[] args) throws Exception
  {
    Prob1DMap map = new Prob1DMap();
    CTReader reader = new CTReader();
    reader.open(UTInput.createBufferedFileReader(args[0]));
    CTTree tree;
   
    while ((tree = reader.nextTree()) != null)
      traverse(tree.getRoot(), map, args[2]);
View Full Code Here

Examples of com.clearnlp.reader.DEPReader.open()

  }
 
  public void countDEP(String[] args) throws Exception
  {
    DEPReader reader = new DEPReader(0, 1, 2, 3, 4, 6, 7);
    reader.open(UTInput.createBufferedFileReader(args[0]));
    Prob1DMap map = new Prob1DMap();
    int[] count = {0, 0};
    DEPTree tree;
   
    while ((tree = reader.next()) != null)
View Full Code Here

Examples of com.clearnlp.reader.JointReader.open()

  }
 
  private List<DEPTree> getTrees(String inputFile)
  {
    JointReader reader = new JointReader(0, 1, 2, 3, 4, 5, 6);
    reader.open(UTInput.createBufferedFileReader(inputFile));
    List<DEPTree> trees = new ArrayList<DEPTree>();
    DEPTree tree;
 
    while ((tree = reader.next()) != null)
      trees.add(tree);
View Full Code Here

Examples of com.clearnlp.reader.SRLReader.open()

  }
 
  <T>void traverseSRLTrees(String[] args, Function<DEPTree,T> func)
  {
    SRLReader reader = new SRLReader(0, 1, 2, 3, 4, 5, 6, 8);
    reader.open(UTInput.createBufferedFileReader(args[0]));
  }
 
  void findNonHeadsAux(DEPTree tree, Prob2DMap map)
  {
    int i, size = tree.size();
View Full Code Here

Examples of com.clearnlp.reader.TOKReader.open()

    CTTree tree;
   
    for (i=0; i<size; i++)
    {
      pin.open(UTInput.createBufferedFileReader(ptbFiles[i]));
      tin.open(UTInput.createBufferedFileReader(rawFiles[i]));
      System.out.println(rawFiles[i]);
     
      while ((tree = pin.nextTree()) != null)
      {
        tokens = tin.next();
View Full Code Here

Examples of com.cloudera.cdk.data.DatasetReader.open()

    DatasetRepository repo = DatasetRepositories.open("repo:hdfs://localhost:8020/user/cloudera");

    Dataset movies = repo.load("movies");
    DatasetReader reader = movies.newReader();
    try {
      reader.open();
      for (Object rec : reader) {
        System.err.println("Movie: " + rec);
      }
    } finally {
      reader.close();
View Full Code Here

Examples of com.cloudera.flume.agent.durability.NaiveFileWALDeco.open()

    NaiveFileWALDeco wal = new NaiveFileWALDeco(ctx, es, node.getWalManager(),
        new TimeTrigger(new ProcessTagger(), 100000), node.getAckChecker()
            .getAgentAckQueuer(), 1000);

    // open and send data.
    wal.open();
    for (int i = 0; i < count; i++) {
      Event e = new EventImpl(("test message " + i).getBytes());
      wal.append(e);
      if (i % 5 == 4) {
        wal.rotate();
View Full Code Here

Examples of com.cloudera.flume.core.CompositeSink.open()

    LOG.info(agent1);
    assertEquals(
        "failChain(\"{lazyOpen => counter(\\\"%s\\\")}\",\"collector 2\",\"collector 3\",\"collector 1\")",
        agent1);
    CompositeSink snk1 = new CompositeSink(new Context(), agent1);
    snk1.open();
    snk1.close();

    String agent2 = am.getFailChainSinkSpec("agent2",
        "{lazyOpen => counter(\"%s\")}");
    LOG.info(agent2);
View Full Code Here

Examples of com.cloudera.flume.core.EventSink.open()

    // iterate until an exception is thrown
    int i = 0;
    try {
      for (i = 0; true; i++) {

        snk.open();
        System.out.println(i + " connections...");
      }
    } catch (IOException io) {
      System.out.println(io);
      b.mark("conns", i);
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.