Examples of Spec


Examples of cascading.pattern.model.Spec

    // the parallel bits
    List<Pipe> pipes = new ArrayList<Pipe>();

    for( int i = 0; i < ensembleSpec.getModelSpecs().size(); i++ )
      {
      Spec spec = (Spec) ensembleSpec.getModelSpecs().get( i );

      if( spec instanceof TreeSpec )
        pipes.add( createScoringPipe( i, pipe, modelSchema, new TreeFunction( (TreeSpec) spec, isCategorical, false ) ) );
      }
View Full Code Here

Examples of net.mindengine.galen.specs.Spec

        {
            List<Spec> specs = objects.get(0).getSpecs();
            assertThat(specs.size(), is(2));

            Spec spec1 = specs.get(0);
            Spec spec2 = specs.get(1);

            assertThat(spec1.getOriginalText(), is("text is: Login"));
            assertThat(spec1.isOnlyWarn(), is(true));

            assertThat(spec2.getOriginalText(), is("width: 100px"));
            assertThat(spec2.isOnlyWarn(), is(false));
        }

        {
            List<Spec> specs = objects.get(1).getSpecs();
            assertThat(specs.size(), is(2));

            Spec spec1 = specs.get(0);
            Spec spec2 = specs.get(1);

            assertThat(spec1.getOriginalText(), is("width: 150px"));
            assertThat(spec1.isOnlyWarn(), is(true));

            assertThat(spec2.getOriginalText(), is("height: 50px"));
            assertThat(spec2.isOnlyWarn(), is(false));
        }
    }
View Full Code Here

Examples of net.mindengine.galen.specs.Spec

        boolean onlyWarn = false;
        if (specText.startsWith(ONLY_WARN_SYMBOL)) {
            specText = specText.substring(1);
            onlyWarn = true;
        }
        Spec spec = specReader.read(specText, contextPath, place);
        spec.setOnlyWarn(onlyWarn);

        return spec;
    }
View Full Code Here

Examples of nu.validator.spec.Spec

    public static Spec parseSpec(InputStream html5SpecAsStream) throws IOException, SAXException {
        return parseSpec(new InputSource(html5SpecAsStream));
    }

    private Spec buildSpec() {
        return new Spec(urisByElement, contextsByElement,
                contentModelsByElement, attributesByElement);
    }
View Full Code Here

Examples of nu.validator.spec.Spec

    public static Spec parseSpec(InputStream html5SpecAsStream) throws IOException, SAXException {
        return parseSpec(new InputSource(html5SpecAsStream));
    }

    private Spec buildSpec() {
        return new Spec(urisByElement, contextsByElement,
                contentModelsByElement, attributesByElement);
    }
View Full Code Here

Examples of org.apache.hadoop.mapred.gridmix.GridmixKey.Spec

    @Override
    public DataInputBuffer getKey() throws IOException {
      ByteArrayOutputStream dt = new ByteArrayOutputStream();
      GridmixKey key = new GridmixKey(GridmixKey.REDUCE_SPEC, 10 * counter, 1L);
      Spec spec = new Spec();
      spec.rec_in = counter;
      spec.rec_out = counter;
      spec.bytes_out = counter * 100;

      key.setSpec(spec);
View Full Code Here

Examples of org.apache.hadoop.mapred.gridmix.GridmixKey.Spec

    @Override
    public DataInputBuffer getKey() throws IOException {
      ByteArrayOutputStream dt = new ByteArrayOutputStream();
      GridmixKey key = new GridmixKey(GridmixKey.REDUCE_SPEC, 10 * counter, 1L);
      Spec spec = new Spec();
      spec.rec_in = counter;
      spec.rec_out = counter;
      spec.bytes_out = counter * 100;

      key.setSpec(spec);
View Full Code Here

Examples of org.apache.hadoop.mapred.gridmix.GridmixKey.Spec

    @Override
    public DataInputBuffer getKey() throws IOException {
      ByteArrayOutputStream dt = new ByteArrayOutputStream();
      GridmixKey key = new GridmixKey(GridmixKey.REDUCE_SPEC, 10 * counter, 1L);
      Spec spec = new Spec();
      spec.rec_in = counter;
      spec.rec_out = counter;
      spec.bytes_out = counter * 100;

      key.setSpec(spec);
View Full Code Here

Examples of org.apache.hadoop.mapred.gridmix.GridmixKey.Spec

    @Override
    public DataInputBuffer getKey() throws IOException {
      ByteArrayOutputStream dt = new ByteArrayOutputStream();
      GridmixKey key = new GridmixKey(GridmixKey.REDUCE_SPEC, 10 * counter, 1L);
      Spec spec = new Spec();
      spec.rec_in = counter;
      spec.rec_out = counter;
      spec.bytes_out = counter * 100;

      key.setSpec(spec);
View Full Code Here

Examples of org.apache.hadoop.mapred.gridmix.GridmixKey.Spec

    @Override
    public DataInputBuffer getKey() throws IOException {
      ByteArrayOutputStream dt = new ByteArrayOutputStream();
      GridmixKey key = new GridmixKey(GridmixKey.REDUCE_SPEC, 10 * counter, 1L);
      Spec spec = new Spec();
      spec.rec_in = counter;
      spec.rec_out = counter;
      spec.bytes_out = counter * 100;

      key.setSpec(spec);
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.