question: private OffsetIndex createIndex ( SegmentDescriptor descriptor ) { return new DelegatingOffsetIndex ( HeapBuffer . allocate ( Math . min ( DEFAULT_BUFFER_SIZE , descriptor . maxEntries ( ) ) , OffsetIndex . size ( descriptor . maxEntries ( ) ) ) ) ; }
target:  Creates an in memory segment index.