コード例 #1
0
func (r *CompressingStoredFieldsIndexReader) relativeStartPointer(block, relativeChunk int) int64 {
	expected := r.avgChunkSizes[block] * int64(relativeChunk)
	delta := util.ZigZagDecodeLong(r.startPointersDeltas[block].Get(relativeChunk))
	return expected + delta
}
コード例 #2
0
func (r *CompressingStoredFieldsIndexReader) relativeDocBase(block, relativeChunk int) int {
	expected := r.avgChunkDocs[block] * relativeChunk
	delta := util.ZigZagDecodeLong(r.docBasesDeltas[block].Get(relativeChunk))
	return expected + int(delta)
}