use of com.yahoo.vdslib.DocumentSummary in project vespa by vespa-engine.
the class VdsVisitorTestCase method createDS.
private DocumentSummary createDS(String docId) {
BufferSerializer serializer = new BufferSerializer();
// old seq id
serializer.putInt(null, 0);
// summary count
serializer.putInt(null, 1);
serializer.put(null, docId);
// summary size
serializer.putInt(null, 1);
// summary buffer
serializer.putInt(null, 0);
serializer.getBuf().flip();
return new DocumentSummary(serializer);
}
Aggregations