Search in sources :

Example 1 with DocumentSummary

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);
}
Also used : BufferSerializer(com.yahoo.vespa.objects.BufferSerializer) DocumentSummary(com.yahoo.vdslib.DocumentSummary)

Aggregations

DocumentSummary (com.yahoo.vdslib.DocumentSummary)1 BufferSerializer (com.yahoo.vespa.objects.BufferSerializer)1