private boolean isLive ( long index , Segment segment , OffsetPredicate predicate ) { long offset = segment . offset ( index ) ; return offset != - 1 && predicate . test ( offset ) ; }
Returns a boolean value indicating whether the given index is release .