Examples of Serialization


Examples of org.apache.hadoop.mrunit.internal.io.Serialization

  private final V valueContainer;
  private final Serialization serialization;

  public KeyValueReuseList(K keyContainer, V valueContainer, Configuration conf){
    super();
    serialization = new Serialization(conf);
    this.keyContainer = keyContainer;
    this.valueContainer = valueContainer;
  }
View Full Code Here

Examples of org.apache.hadoop.mrunit.internal.io.Serialization

      recordWriter.close(taskAttemptContext);
    } catch (InterruptedException e) {
      throw new IOException(e);
    }

    final Serialization serialization = new Serialization(
        taskAttemptContext.getConfiguration());
    try {
      List<InputSplit> inputSplits = inputFormat.getSplits(taskAttemptContext);
      for (InputSplit inputSplit : inputSplits) {
        RecordReader<K, V> recordReader = inputFormat.createRecordReader(
            inputSplit, taskAttemptContext);
        recordReader.initialize(inputSplit, taskAttemptContext);
        while (recordReader.nextKeyValue()) {
          outputs.add(new Pair<K, V>(serialization.copy(recordReader
              .getCurrentKey()), serialization.copy(recordReader
              .getCurrentValue())));
        }
      }
    } catch (InterruptedException e) {
      throw new IOException(e);
View Full Code Here

Examples of org.auraframework.util.json.Json.Serialization

import org.auraframework.util.json.Json.Serialization.ReferenceScope;

public class DefaultJsonSerializer implements JsonSerializer<Object> {
    @Override
    public ReferenceType getReferenceType(Object value) {
        Serialization serialization = value.getClass().getAnnotation(Serialization.class);
        if (serialization != null) {
            return serialization.referenceType();
        }
        return ReferenceType.NONE;
    }
View Full Code Here

Examples of org.eclipse.sapphire.Serialization

       
        this.textField = new Text( nestedComposite, style );
        this.textField.setLayoutData( gdfill() );
        decorator.addEditorControl( this.textField, true );
       
        final Serialization serialization = property.definition().getAnnotation( Serialization.class );

        final TextOverlayPainter.Controller textOverlayPainterController = new TextOverlayPainter.Controller()
        {
            @Override
            public boolean isHyperlinkEnabled()
            {
                return ( jumpActionHandler == null ? false : jumpActionHandler.isEnabled() );
            }

            @Override
            public void handleHyperlinkEvent()
            {
                if( jumpActionHandler != null )
                {
                    jumpActionHandler.execute( TextFieldPropertyEditorPresentation.this );
                }
            }

            @Override
            public String overlay()
            {
                String def = property.disposed() ? null : property.getDefaultText();
               
                if( def != null && isSensitiveData )
                {
                    final StringBuilder buf = new StringBuilder();
                   
                    for( int i = 0, n = def.length(); i < n; i++ )
                    {
                        buf.append( "\u25CF" );
                    }
                   
                    def = buf.toString();
                }
               
                if( def == null && serialization != null )
                {
                    def = serialization.primary();
                }
               
                return def;
            }
        };
View Full Code Here

Examples of org.gephi.graph.store.Serialization

    @Override
    public void writeBytes(DataOutputStream stream, Workspace workspace) {
        GraphModelImpl model = workspace.getLookup().lookup(GraphModelImpl.class);
        if (model != null) {
            try {
                Serialization serialization = new Serialization(model.getStore());
                serialization.serializeGraphStore(stream);
            } catch (IOException ex) {
                Logger.getLogger("").log(Level.SEVERE, "", ex.getCause());
            }
        }
    }
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.