Package com.facebook.util.serialization

Examples of com.facebook.util.serialization.SerDeException


    public void serialize(Datum value, DataOutput out)
      throws SerDeException {
      try {
        out.writeLong(value.asLong());
      } catch (IOException e) {
        throw new SerDeException(e);
      }
    }
View Full Code Here


        MapDatum result = new MapDatum(map);

        return result;
      } catch (IOException e) {
        throw new SerDeException(e);
      }
    }
View Full Code Here

          for (Map.Entry<Datum, Datum> entry : map.entrySet()) {
            DATUM_SER_DE.serialize(entry.getKey(), out);
            DATUM_SER_DE.serialize(entry.getValue(), out);
          }
        } catch (IOException e) {
          throw new SerDeException(e);
        }
      } else {
        throw new IllegalArgumentException(
          "MapDatum.SerDe serializer requires MapDatum"
        );
View Full Code Here

    @Override
    public Datum deserialize(DataInput in) throws SerDeException {
      try {
        return new DoubleDatum(in.readDouble());
      } catch (IOException e) {
        throw new SerDeException(e);
      }
    }
View Full Code Here

    public void serialize(Datum value, DataOutput out)
      throws SerDeException {
      try {
        out.writeDouble(value.asDouble());
      } catch (IOException e) {
        throw new SerDeException(e);
      }
    }
View Full Code Here

    @Override
    public Datum deserialize(DataInput in) throws SerDeException {
      try {
        return new ShortDatum(in.readShort());
      } catch (IOException e) {
        throw new SerDeException(e);
      }
    }
View Full Code Here

    public void serialize(Datum value, DataOutput out)
      throws SerDeException {
      try {
        out.writeShort(value.asShort());
      } catch (IOException e) {
        throw new SerDeException(e);
      }
    }
View Full Code Here

    @Override
    public Datum deserialize(DataInput in) throws SerDeException {
      try {
        return new ByteDatum(in.readByte());
      } catch (IOException e) {
        throw new SerDeException(e);
      }
    }
View Full Code Here

    public void serialize(Datum value, DataOutput out)
      throws SerDeException {
      try {
        out.writeByte(value.asByte());
      } catch (IOException e) {
        throw new SerDeException(e);
      }
    }
View Full Code Here

        ListDatum listDatum = new ListDatum(datumList);

        return listDatum;
      } catch (IOException e) {
        throw new SerDeException(e);
      }
    }
View Full Code Here

TOP

Related Classes of com.facebook.util.serialization.SerDeException

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.