*/
public static IntList readSizesSuccinct( final CharSequence filename, final int N ) throws IOException {
LOGGER.debug( "Loading sizes..." );
final IntList sizes = new AbstractIntList() {
final EliasFanoLongBigList list = new EliasFanoLongBigList( new GammaCodedIterableList( BinIO.loadBytes( filename ), N ) );
public int getInt( int index ) {
return (int)list.getLong( index );
}
public int size() {
return list.size();
}
};
LOGGER.debug( "Completed." );
return sizes;
}