Package org.erlide.runtime.runtimeinfo

Examples of org.erlide.runtime.runtimeinfo.RuntimeVersion$Serializer


   *
   * @param conf Configuration to use
   * @return A new, configured, Serializer
   */
  public Serializer createSerializer(Configuration conf) {
    Serializer serializer = ReflectionUtils.newInstance(serializerClass, conf);
    SerDes.initSerializer(serializer, conf, columnInfo, serializerParams);
    return serializer;
  }
View Full Code Here


    OutputInfo oti = outputConf.readOutputTableInfo();

    HiveUtils.setRCileNumColumns(conf, oti.getColumnInfo().size());
    HadoopUtils.setOutputKeyWritableClass(conf, NullWritable.class);

    Serializer serializer = oti.createSerializer(conf);
    HadoopUtils.setOutputValueWritableClass(conf,
        serializer.getSerializedClass());

    org.apache.hadoop.mapred.OutputFormat baseOutputFormat =
        ReflectionUtils.newInstance(oti.getOutputFormatClass(), conf);
    // CHECKSTYLE: stop LineLength
    org.apache.hadoop.mapred.RecordWriter<WritableComparable, Writable> baseWriter =
View Full Code Here

    HiveOutputFormat<?, ?> hiveOutputFormat = null;
    Class<? extends Writable> outputClass = null;
    boolean isCompressed = conf.getCompressed();
    TableDesc tableInfo = conf.getTableInfo();
    try {
      Serializer serializer = (Serializer) tableInfo.getDeserializerClass().newInstance();
      serializer.initialize(null, tableInfo.getProperties());
      outputClass = serializer.getSerializedClass();
      hiveOutputFormat = conf.getTableInfo().getOutputFileFormatClass().newInstance();
    } catch (SerDeException e) {
      throw new HiveException(e);
    } catch (InstantiationException e) {
      throw new HiveException(e);
View Full Code Here

                  }
                };
                List<String> _map = ListExtensions.<RuntimeVersion, String>map(((List<RuntimeVersion>)Conversions.doWrapArray(runtimeVersions)), _function);
                it.setItems(((String[])Conversions.unwrapArray(_map, String.class)));
                RuntimeInfo _bestRuntime = ErlangProjectBuilderPage.this.info.bestRuntime();
                RuntimeVersion _version = _bestRuntime.getVersion();
                RuntimeVersion _asMajor = _version.asMajor();
                String _string = _asMajor.toString();
                it.setText(_string);
                String _text = it.getText();
                RuntimeVersion _parse = RuntimeVersion.Serializer.parse(_text);
                ErlangProjectBuilderPage.this.info.setRequiredRuntimeVersion(_parse);
              }
            };
            Combo _newControl = XtendSWTLib.<Combo>newControl(it, Combo.class, SWT.READ_ONLY, _function_1);
            ErlangProjectBuilderPage.this.runtimeCombo = _newControl;
View Full Code Here

    }
  }
 
  protected void onExit() {
    String _text = this.runtimeCombo.getText();
    RuntimeVersion _parse = RuntimeVersion.Serializer.parse(_text);
    this.info.setRequiredRuntimeVersion(_parse);
  }
View Full Code Here

    private boolean storing;

    @Override
    public RuntimeInfo getRuntimeInfo() {
        final RuntimeVersion requiredRuntimeVersion = getProperties()
                .getRequiredRuntimeVersion();
        if (requiredRuntimeVersion != cachedRuntimeVersion) {
            cachedRuntimeVersion = requiredRuntimeVersion;
            cachedRuntimeInfo = RuntimeCore.getRuntimeInfoCatalog().getRuntime(
                    requiredRuntimeVersion, null);
View Full Code Here

    // RuntimeVersion getRuntimeVersion();
    @Test
    public void getRuntimeVersion() throws Exception {
        final IErlProject aProject = project2;
        final RuntimeVersion version = aProject.getRuntimeVersion();
        assertNotNull(version);
        final int majorVersion = version.getMajor();
        assertTrue(majorVersion >= 12);
    }
View Full Code Here

public class RuntimeVersionTest {

    @Test
    public void toString_1() {
        final String expect = "R12";
        final RuntimeVersion test = RuntimeVersion.Serializer.parse(expect);
        assertThat(test.toString(), is(expect));
    }
View Full Code Here

    }

    @Test
    public void toString_2() {
        final String expect = "R12A";
        final RuntimeVersion test = RuntimeVersion.Serializer.parse(expect);
        assertThat(test.toString(), is(expect));
    }
View Full Code Here

    }

    @Test
    public void toString_4() {
        final String expect = "R16B03-1";
        final RuntimeVersion test = RuntimeVersion.Serializer.parse(expect);
        assertThat(test.toString(), is(expect));
    }
View Full Code Here

TOP

Related Classes of org.erlide.runtime.runtimeinfo.RuntimeVersion$Serializer

Copyright © 2018 www.massapicom. 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.