### Question:
RangeDefinition { public static boolean isDocSpecific(Range range) { return QueryIterator.isDocumentSpecificRange(range); }  static boolean isDocSpecific(Range range); static boolean allDocSpecific(Collection<Range> ranges);  }### Answer:
@Test public void docSpecificRangeTest() { Range docSpecificRange = new Range(new Key("20190101_0", "dataType\u0000some-doc-id"), false, new Key("20190101_0", "dataType\u0000some-doc-id\u0000"), false); assertTrue(RangeDefinition.isDocSpecific(docSpecificRange)); }
@Test public void shardRangeTest() { Range shardRange = new Range(new Key("20190101_0"), false, new Key("20190101_0\u0000"), false); assertFalse(RangeDefinition.isDocSpecific(shardRange)); }
@Test public void dayRangeTest() { Range dayRange = new Range(new Key("20190101_0"), false, new Key("20190101" + Constants.MAX_UNICODE_STRING), false); assertFalse(RangeDefinition.isDocSpecific(dayRange)); }