@Test public void testSetDepthLimit() { TermQuery request = null; try { request = new TermQuery("var", "val"); assertEquals(1, request.getCurrentQuery().size()); assertTrue(request.isReady()); assertFalse(request.getCurrentQuery().has(QUERYARGS.EXACTDEPTH.exactToken())); assertFalse(request.getCurrentQuery().has(QUERYARGS.DEPTH.exactToken())); request.setExactDepthLimit(1); assertTrue(request.getCurrentQuery().has(QUERYARGS.EXACTDEPTH.exactToken())); assertFalse(request.getCurrentQuery().has(QUERYARGS.DEPTH.exactToken())); request.setExactDepthLimit(0); assertFalse(request.getCurrentQuery().has(QUERYARGS.EXACTDEPTH.exactToken())); assertFalse(request.getCurrentQuery().has(QUERYARGS.DEPTH.exactToken())); request.setExactDepthLimit(1); assertTrue(request.getCurrentQuery().has(QUERYARGS.EXACTDEPTH.exactToken())); assertFalse(request.getCurrentQuery().has(QUERYARGS.DEPTH.exactToken())); request.setExactDepthLimit(0); assertFalse(request.getCurrentQuery().has(QUERYARGS.EXACTDEPTH.exactToken())); assertFalse(request.getCurrentQuery().has(QUERYARGS.DEPTH.exactToken())); request.setRelativeDepthLimit(0); assertFalse(request.getCurrentQuery().has(QUERYARGS.EXACTDEPTH.exactToken())); assertTrue(request.getCurrentQuery().has(QUERYARGS.DEPTH.exactToken())); request.setRelativeDepthLimit(1); assertFalse(request.getCurrentQuery().has(QUERYARGS.EXACTDEPTH.exactToken())); assertTrue(request.getCurrentQuery().has(QUERYARGS.DEPTH.exactToken())); request.setRelativeDepthLimit(-1); assertFalse(request.getCurrentQuery().has(QUERYARGS.EXACTDEPTH.exactToken())); assertTrue(request.getCurrentQuery().has(QUERYARGS.DEPTH.exactToken())); } catch (final InvalidCreateOperationException e) { e.printStackTrace(); fail(e.getMessage()); } }
public final Query setDepthLimit(final int relativedepth) { return setRelativeDepthLimit(relativedepth); }
Query { public final Query setDepthLimit(final int relativedepth) { return setRelativeDepthLimit(relativedepth); } }
Query { public final Query setDepthLimit(final int relativedepth) { return setRelativeDepthLimit(relativedepth); } protected  Query(); }
Query { public final Query setDepthLimit(final int relativedepth) { return setRelativeDepthLimit(relativedepth); } protected  Query(); void clean(); final Query setExactDepthLimit(final int exactdepth); final Query setRelativeDepthLimit(final int relativedepth); final Query setDepthLimit(final int relativedepth); ObjectNode getCurrentQuery(); JsonNode getNode(String key); JsonNode getCurrentObject(); QUERY getQUERY(); boolean isReady(); Query setExtraInfo(int val); int getExtraInfo(); final boolean isFullText(); final Query setFullText(boolean isFullText); final int getParserExactdepth(); final Query setParserExactdepth(int exactdepth); final int getParserRelativeDepth(); final Query setParserRelativeDepth(int relativedepth); @Override String toString(); }
Query { public final Query setDepthLimit(final int relativedepth) { return setRelativeDepthLimit(relativedepth); } protected  Query(); void clean(); final Query setExactDepthLimit(final int exactdepth); final Query setRelativeDepthLimit(final int relativedepth); final Query setDepthLimit(final int relativedepth); ObjectNode getCurrentQuery(); JsonNode getNode(String key); JsonNode getCurrentObject(); QUERY getQUERY(); boolean isReady(); Query setExtraInfo(int val); int getExtraInfo(); final boolean isFullText(); final Query setFullText(boolean isFullText); final int getParserExactdepth(); final Query setParserExactdepth(int exactdepth); final int getParserRelativeDepth(); final Query setParserRelativeDepth(int relativedepth); @Override String toString(); static final String DATE; }