@Override public GTRecord next() { GTRecord x = input.next(); return new GTRecord(info, x.getInternal()); }
private void serializeGTRecord(GTRecord gtRecord, ByteBuffer out) { ByteArray[] cols = gtRecord.getInternal(); BytesUtil.writeVInt(cols.length, out); for (ByteArray col : cols) { col.exportData(out); } } }
private int lookAndForget(IGTScanner scanner) { byte meaninglessByte = 0; int scanned = 0; for (GTRecord gtRecord : scanner) { scanned++; for (ByteArray col : gtRecord.getInternal()) { if (col != null) { int endIndex = col.offset() + col.length(); for (int i = col.offset(); i < endIndex; ++i) { meaninglessByte += col.array()[i]; } } } } logger.info("Meaningless byte is " + meaninglessByte); IOUtils.closeQuietly(scanner); return scanned; }
@Override public GTRecord next() { GTRecord x = input.next(); return new GTRecord(info, x.getInternal()); }
private void serializeGTRecord(GTRecord gtRecord, ByteBuffer out) { ByteArray[] cols = gtRecord.getInternal(); BytesUtil.writeVInt(cols.length, out); for (ByteArray col : cols) { col.exportData(out); } } }
private int lookAndForget(IGTScanner scanner) { byte meaninglessByte = 0; int scanned = 0; for (GTRecord gtRecord : scanner) { scanned++; for (ByteArray col : gtRecord.getInternal()) { if (col != null) { int endIndex = col.offset() + col.length(); for (int i = col.offset(); i < endIndex; ++i) { meaninglessByte += col.array()[i]; } } } } logger.info("Meaningless byte is " + meaninglessByte); IOUtils.closeQuietly(scanner); return scanned; }