Package no.priv.garshol.duke

Examples of no.priv.garshol.duke.CompactRecord


    return makeRecord(p1, v1, p2, v2, null, null);
  }

  public static Record makeRecord(String p1, String v1, String p2, String v2,
                            String p3, String v3) {
    CompactRecord rec = new CompactRecord();
    rec.addValue(p1, v1);
    if (v2 != null)
      rec.addValue(p2, v2);
    if (v3 != null)
      rec.addValue(p3, v3);
    return rec;
  }
View Full Code Here


  public RecordBuilder(ColumnarDataSource source) {
    this.source = source;
  }

  public void newRecord() {
    record = new CompactRecord();
  }
View Full Code Here

    public CompactRecord deserialize(DataInput in, int available) throws IOException {
      int free = in.readInt();
      String[] s = new String[free];
      for (int ix = 0; ix < free; ix++)
        s[ix] = in.readUTF();
      return new CompactRecord(free, s);
    }
View Full Code Here

TOP

Related Classes of no.priv.garshol.duke.CompactRecord

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.