Examples of split()


Examples of Framework.StopWatch.split()

            //   with string format and 9 parameters
            text.replaceParameters("my name is %1 %2, age: %3, weight %4, married %5, born %6, ratio %7, income %8, happy %9", new TextData("Fred"), new TextData("Jones"), new IntegerData(35), new IntegerData(85), new BooleanData(true, BooleanData.qq_Resolver.cVALUE), new DateTimeData(new TextData("01-Jan-1960"), DateTimeData.qq_Resolver.cVALUE), new DoubleData(3.4), new DecimalData(50010.35), new BooleanData(true, BooleanData.qq_Resolver.cVALUE));

        }

        int time = (int)sw.split();
        Logger.getLogger("task.part.logmgr").info( Integer.toString(time));
    }

    // -----------
    // Main method
View Full Code Here

Examples of br.com.visualmidia.business.GDDate.split()

          columnDate.setText("Data");
          TableColumn columnExceedents = new TableColumn(table, SWT.NONE);
          columnExceedents.setText("N� de alunos excedentes");
         
          for (String date : _mapExceedent.keySet()) {
            if(hour.equals(date.split("-")[1])) {
              TableItem item = new TableItem(table, SWT.NONE);
              item.setText(0, date.split("-")[0]);
              item.setText(1, _mapExceedent.get(date));
            }
      }
View Full Code Here

Examples of br.msf.commons.lang.EnhancedStringBuilder.split()

                /* new lines not after a punctuation are removed */
                builder.replace(match, " ");
            }
        }
        builder.replacePattern(" +", " ");
        final Collection<String> lines = builder.split("\n");
        builder.clear().appendln(commentStart);
        int max = maxLineLengh - leading.length();
        for (CharSequence line : lines) {
            if (line.length() <= max) {
                // short line, just append the leading txt and the line itself
View Full Code Here

Examples of cc.mallet.types.InstanceList.split()

    Pipe p = makeSpacePredictionPipe();
    Pipe p2 = new TestCRF2String();

    InstanceList instances = new InstanceList(p);
    instances.addThruPipe(new ArrayIterator(data));
    InstanceList[] lists = instances.split(new Random(1), new double[] {
        .5, .5 });
    CRF crf = new CRF(p, p2);
    crf.addFullyConnectedStatesForLabels();
    CRFTrainerByLabelLikelihood crft = new CRFTrainerByLabelLikelihood(crf);
    if (testValueAndGradient) {
View Full Code Here

Examples of com.alibaba.wasp.client.WaspAdmin.split()

    stat.execute("INSERT INTO user123 (user_id, photo_id) VALUES (3, 3)");
    stat.execute("INSERT INTO user123 (user_id, photo_id) VALUES (4, 4)");

    List<EntityGroupInfo> egis =  admin.getTableEntityGroups(Bytes.toBytes("user123"));

    admin.split(egis.get(0).getEntityGroupName(), Bytes.toBytes("H"));


    stat.execute("INSERT INTO user123 (user_id, photo_id) VALUES (5, 5)");

    ResultSet rs;
View Full Code Here

Examples of com.asakusafw.compiler.flow.processor.operator.MasterJoinFlowFactory.split()

    }

    @Override
    protected void describe() {
        MasterJoinFlowFactory f = new MasterJoinFlowFactory();
        Split op = f.split(in1);
        out1.add(op.ex1);
        out2.add(op.ex2);
    }
}
View Full Code Here

Examples of com.beust.jcommander.converters.IParameterSplitter.split()

  private Object convertToList(String value, IStringConverter<?> converter,
      Class<? extends IParameterSplitter> splitterClass)
          throws InstantiationException, IllegalAccessException {
    IParameterSplitter splitter = splitterClass.newInstance();
    List<Object> result = Lists.newArrayList();
    for (String param : splitter.split(value)) {
      result.add(converter.convert(param));
    }
    return result;
  }
View Full Code Here

Examples of com.browseengine.bobo.api.FacetSpec.FacetSortSpec.split()

      if (parsed.length == 2){
        String sortString = parsed[1];
        String[] sorts = sortString.split(",");
        ArrayList<SortField> sortList = new ArrayList<SortField>();
        for (String sort : sorts){
          String[] sortParams = sort.split(":");
          boolean rev = false;
          if (sortParams.length>0){
            String sortName = sortParams[0];
            if (sortParams.length>1){
            try{
View Full Code Here

Examples of com.cloudera.sqoop.mapreduce.db.DBSplitter.split()

      DBSplitter splitter = getSplitter(sqlDataType);
      if (null == splitter) {
        throw new IOException("Sqoop does not have the splitter for the given SQL data type. Please use either different split column (argument --split-by) or lower the number of mappers to 1. Unknown SQL data type: " + sqlDataType);
      }

      return splitter.split(job.getConfiguration(), results,
          getDBConf().getInputOrderBy());
    } catch (SQLException e) {
      throw new IOException(e);
    } finally {
      // More-or-less ignore SQL exceptions here, but log in case we need it.
View Full Code Here

Examples of com.cloudera.sqoop.mapreduce.db.TextSplitter.split()

  }

  public void testAlphabetSplit() throws SQLException {
    // This should give us 25 splits, one per letter.
    TextSplitter splitter = new TextSplitter();
    List<String> splits = splitter.split(25, "A", "Z", "");
    String [] expected = { "A", "B", "C", "D", "E", "F", "G", "H", "I",
        "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U",
        "V", "W", "X", "Y", "Z", };
    assertArrayEquals(expected, splits.toArray(new String [0]));
  }
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.