package com.facebook.presto;



public interface Block
{
    int getCount();

    boolean isSorted();
    boolean isSingleValue();
    boolean isPositionsContiguous();

    Iterable<Long> getPositions();

    Range getRange();
}

package com.facebook.presto;



public interface Block
{
    int getCount();

    /**
     * Whether the values in this block are sorted
     */
    boolean isSorted();

    /**
     * Whether the block contains a single value (with one or more positions for that value)
     */
    boolean isSingleValue();

    /**
     * Whether the block contains gaps in its positions
     */
    boolean isPositionsContiguous();

    Iterable<Long> getPositions();

    Range getRange();
}

Add clarifying docs for Block interface