private void check(final long segment) {
        if (segment < 0 || segment >= 1) {
            throw new RuntimeException(
                    "Segment number " + segment + " is not within bounds [0-" + 1 + "]");
        }
    }
Checks that no includes or excludes are added once the stream is being
read.
stroom-headless/src/main/java/stroom/headless/SingleSegmentInputStreamImpl.java