Examples of deserialize()


Examples of javaewah.EWAHCompressedBitmap.deserialize()

  }

  private static EWAHCompressedBitmap readBitmap(DataInput dataInput)
      throws IOException {
    EWAHCompressedBitmap bitmap = new EWAHCompressedBitmap();
    bitmap.deserialize(dataInput);
    return bitmap;
  }
}
View Full Code Here

Examples of jdbm.Serializer.deserialize()

        if(in1 == null){
          in1 = new OpenByteArrayInputStream(b);
          in2 = new SerializerInput(in1);
        }
        in1.reset(b, b.length);
        ret[i] = ser.deserialize(in2);
        previous = b;
      }
      return (K[]) ret;     

    }else{
View Full Code Here

Examples of jfun.yan.util.deserializer.Deserializer.deserialize()

   * @throws Throwable when any error happens.
   */
  public Object deserialize(Class type, String v)
  throws Throwable{
    final Deserializer des = (Deserializer)deserializers.get(type);
    if(des != null) return des.deserialize(v);
    else{
      final PropertyEditor editor = PropertyEditorManager.findEditor(type);
      if(editor==null){
        throw new IllegalArgumentException("cannot convert to "+
          Misc.getTypeName(type));
View Full Code Here

Examples of krati.io.serializer.StringSerializer.deserialize()

   
    public void testStringSerializer() {
        Serializer<String> serializer = new StringSerializer();
       
        String str1 = TestSerializer.class.getSimpleName();
        String str2 = serializer.deserialize(serializer.serialize(str1));
        assertEquals(str1, str2);
    }
   
    public void testStringSerializerUtf8() {
        Serializer<String> serializer = new StringSerializerUtf8();
View Full Code Here

Examples of krati.io.serializer.StringSerializerUtf8.deserialize()

   
    public void testStringSerializerUtf8() {
        Serializer<String> serializer = new StringSerializerUtf8();
       
        String str1 = TestSerializer.class.getSimpleName();
        String str2 = serializer.deserialize(serializer.serialize(str1));
        assertEquals(str1, str2);
    }
}
View Full Code Here

Examples of krati.retention.clock.ClockSerializer.deserialize()

        RandomClockFactory f = new RandomClockFactory(5);
        Clock c = f.next();
       
        byte[] raw = c.toByteArray();
        Clock c2 = Clock.parseClock(raw);
        Clock c3 = serializer.deserialize(raw);
       
        assertEquals(Occurred.EQUICONCURRENTLY, c.compareTo(c2));
        assertEquals(Occurred.EQUICONCURRENTLY, c.compareTo(c3));
       
        String str = c.toString();
View Full Code Here

Examples of krati.store.avro.AvroGenericRecordResolvingSerializer.deserialize()

        try {
            record2 = readerSerializer.deserialize(writerBytes);
        } catch(SerializationException e) {}
        assertNull(record2);
       
        GenericRecord record3 = resolvingSerializer.deserialize(writerBytes);
        assertEquals(record.get("id"), record3.get("id"));
        assertEquals(record.get("age"), record3.get("age"));
        assertEquals(record.get("fname"), record3.get("fname"));
        assertEquals(record.get("lname"), record3.get("lname"));
    }
View Full Code Here

Examples of krati.store.avro.AvroGenericRecordSerializer.deserialize()

        assertEquals(record.get("fname"), record1.get("fname"));
        assertEquals(record.get("lname"), record1.get("lname"));
       
        GenericRecord record2 = null;
        try {
            record2 = readerSerializer.deserialize(writerBytes);
        } catch(SerializationException e) {}
        assertNull(record2);
       
        GenericRecord record3 = resolvingSerializer.deserialize(writerBytes);
        assertEquals(record.get("id"), record3.get("id"));
View Full Code Here

Examples of lupos.distributed.operator.format.SubgraphContainerFormatter.deserialize()

   * @throws JSONException in case of any parse exceptions
   */
  public static Tuple<QueryResult, Set<Variable>> evaluateSubgraph(final String subgraphSerializedAsJSONString, final Dataset dataset, final IOperatorCreator operatorCreator) throws JSONException {
    final CollectResult collectResult = new CollectResult(true);
    final SubgraphContainerFormatter formatter = new SubgraphContainerFormatter(dataset, operatorCreator, collectResult);
    final Root root = formatter.deserialize(new JSONObject(subgraphSerializedAsJSONString));

    // some initializations
    root.deleteParents();
    root.setParents();
    root.detectCycles();
View Full Code Here

Examples of me.prettyprint.hector.api.beans.Composite.deserialize()

    }

    @Override
    public Composite fromByteBuffer(ByteBuffer byteBuffer) {
        Composite composite = createComposite();
        composite.deserialize(byteBuffer);
        return composite;
    }

    private Composite createComposite() {
        Composite composite = new Composite();
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.