Package lupos.datastructures.dbmergesortedds

Examples of lupos.datastructures.dbmergesortedds.DiskCollection


  @SuppressWarnings({ "rawtypes", "unchecked" })
  public void writeLuposCollection(final Collection t) throws IOException {
    if (t.size() > 200) {
      this.os.write(255);
      final DiskCollection dc;
      if (t.size() > 0) {
        dc = new DiskCollection(t.iterator().next().getClass());
      } else {
        dc = new DiskCollection(Object.class);
      }
      dc.addAll(t);
      dc.writeLuposObject(this);
    } else {
      this.os.write(t.size());
      if (t.size() > 0) {
        Registration.serializeId(t.iterator().next(), this);
        for (final Object o : t) {
View Full Code Here


  @SuppressWarnings({ "unchecked", "rawtypes" })
  public final static void writeLuposCollection(final Collection t, final OutputStream os) throws IOException {
    if (t.size() > 200) {
      os.write(255);
      final DiskCollection dc;
      if (t.size() > 0) {
        dc = new DiskCollection(t.iterator().next().getClass());
      } else {
        dc = new DiskCollection(Object.class);
      }
      dc.addAll(t);
      dc.writeLuposObject(os);
    } else {
      os.write(t.size());
      if (t.size() > 0) {
        Registration.serializeId(t.iterator().next(), os);
        for (final Object o : t) {
View Full Code Here

TOP

Related Classes of lupos.datastructures.dbmergesortedds.DiskCollection

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.