Package com.facebook.util.serialization

Examples of com.facebook.util.serialization.SerDeException


    public Datum deserialize(DataInput in) throws SerDeException {
      try {
        // TODO: should we write the bytes ourselves?  get around 32k limit?
        return new StringDatum(in.readUTF());
      } catch (IOException e) {
        throw new SerDeException(e);
      }
    }
View Full Code Here


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

          maxSize, digestFunction, baseSet, setFactory, sampleRate
        );

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

        for (T element : elements) {
          elementSerDe.serialize(element, out);
        }

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

      for (long item : value) {
        out.writeLong(item);
      }

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

          maxSize, digestFunction, baseSet, setFactory, sampleRate
        );

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

        for (T element : elements) {
          elementSerDe.serialize(element, out);
        }

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

        DateTime dateKey = new DateTime(dateKeyMillis, DateTimeZone.UTC);
        K key = keySerDe.deserialize(in);
       
        return new TimeStamped<K>(dateKey, key);
      } catch (IOException e) {
        throw new SerDeException(e);
      }
    }
View Full Code Here

      throws SerDeException {
      try {
        out.writeLong(value.dateKey.getMillis());
        keySerDe.serialize(value.key, out);
      } catch (IOException e) {
        throw new SerDeException(e);
      }
    }
View Full Code Here

    public Datum deserialize(DataInput in) throws SerDeException {
      try {
        // TODO: should we write the bytes ourselves?  get around 32k limit?
        return new StringDatum(in.readUTF());
      } 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.