Examples of split()


Examples of org.apache.regexp.RE.split()

        if (this.getLogger().isDebugEnabled()) {
            getLogger().debug("pipeline-hints: (aggregate-hint) " + hintParams);
        }

        for (int i=0; i<expressions.length;i++) {
            String [] nameValuePair = equalsSplit.split(expressions[i]);

            try {
                if (nameValuePair.length < 2) {
                    if (this.getLogger().isDebugEnabled()) {
                        getLogger().debug("pipeline-hints: (name) " + nameValuePair[0]
View Full Code Here

Examples of org.apache.sqoop.mapreduce.db.netezza.NetezzaDBDataSliceSplitter.split()

    // integer split. We will just use the lower bounding query to specify
    // the restriction of dataslice and set the upper bound to a constant

    NetezzaDBDataSliceSplitter splitter = new NetezzaDBDataSliceSplitter();

    return splitter.split(getConf(), null, null);
  }
}
View Full Code Here

Examples of org.apache.yoko.rmi.util.ByteString.split()

                // till the first slash.
                //
                int firstSlash = s.indexOf('/');
                if (firstSlash > 0) {
                    ByteString prefix = s.substring(0, firstSlash);
                    ByteString[] elems = prefix.split('.');

                    for (int i = elems.length - 1; i >= 0; i--) {
                        bb.append(fixName(elems[i]));
                        bb.append('.');
                    }
View Full Code Here

Examples of org.broadinstitute.gatk.utils.GenomeLoc.split()

                split.add(head);
                break; // we are done
            } else if ( newSize > idealSplitSize ) {
                final long remainingBp = idealSplitSize - size;
                final long cutPoint = head.getStart() + remainingBp;
                GenomeLoc[] parts = head.split((int)cutPoint);
                remaining.push(parts[1]);
                remaining.push(parts[0]);
                // when we go around, head.size' = idealSplitSize - size
                // so newSize' = splitSize + head.size' = size + (idealSplitSize - size) = idealSplitSize
            } else {
View Full Code Here

Examples of org.drools.guvnor.server.files.RestAPI.split()

    }

    @Test
    public void testSplit() throws Exception {
        RestAPI a = new RestAPI(null);
        String[] x = a.split("packages/foo/bar");
        assertEquals(3, x.length);
        assertEquals("packages", x[0]);
        assertEquals("foo", x[1]);
        assertEquals("bar", x[2]);
View Full Code Here

Examples of org.eclipse.swt.widgets.Text.split()

                  updateLaunchConfigurationDialog();
              }

              private boolean parseInputText(String text) {
               
                String[] values = text.split(";");
                if(values.length == 0)
                {
                  try
                  {
                    Double.parseDouble(text);
View Full Code Here

Examples of org.exoplatform.services.chars.StringTokenizer.split()

   {
      String text = String.valueOf(node.getValue());
      text = text.substring(text.toUpperCase().indexOf(node.getName().toString().toUpperCase()) + 1);
      StringTokenizer split =
         new StringTokenizer(new char[]{'\"'}, new char[]{SpecChar.s, SpecChar.t, SpecChar.b, SpecChar.f, SpecChar.r});
      List<String> elements = split.split(text);
      Attributes list = new Attributes(node);
      for (int i = 0; i < elements.size(); i++)
      {
         if (elements.get(i).indexOf("=") > 0)
         {
View Full Code Here

Examples of org.fnlp.ml.types.InstanceSet.split()

    System.out.print("..Reading data complete\n");
   
    //将数据集分为训练是和测试集
    System.out.print("Sspliting....");
    float percent = 0.8f;
    InstanceSet[] splitsets = instset.split(percent);
   
    InstanceSet trainset = splitsets[0];
    InstanceSet testset = splitsets[1]
    System.out.print("..Spliting complete!\n");
View Full Code Here

Examples of org.geomajas.plugin.geocoder.api.SplitGeocoderStringService.split()

    CombineResultService combineResultService = geocoderInfo.getCombineResultService();
    if (null == combineResultService) {
      combineResultService = defaultCombineResultService;
    }

    List<String> locationList = splitGeocoderStringService.split(location);

    List<GetLocationResult> results = new ArrayList<GetLocationResult>();
    List<GetLocationResult[]> alternatives = new ArrayList<GetLocationResult[]>();
    Pattern namePattern = getShouldUsePattern(request.getServicePattern());
    for (GeocoderService geocoderService : geocoderInfo.getGeocoderServices()) {
View Full Code Here

Examples of org.gridgain.grid.kernal.processors.ggfs.GridGgfsFileAffinityRange.split()

    public void testRangeSplit() throws Exception {
        GridUuid affKey = GridUuid.randomUuid();

        GridGgfsFileAffinityRange range = new GridGgfsFileAffinityRange(0, 9999, affKey);

        Collection<GridGgfsFileAffinityRange> split = range.split(10000);

        assertEquals(1, split.size());
        assertTrue(range.regionEqual(F.first(split)));

        split = range.split(5000);
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.