@Test public void testAddUsedProjection() { final Select select = new Select(); assertTrue(select.getProjection().size() == 0); try { select.addUsedProjection("var1", "var2"); assertEquals(2, select.getProjection().get(PROJECTION.FIELDS.exactToken()).size()); select.addUsedProjection("var3").addUsedProjection("var4"); assertEquals(4, select.getProjection().get(PROJECTION.FIELDS.exactToken()).size()); select.addUnusedProjection("var1", "var2"); assertEquals(4, select.getProjection().get(PROJECTION.FIELDS.exactToken()).size()); select.addUnusedProjection("var3").addUnusedProjection("var4"); } catch (final InvalidParseOperationException e) { e.printStackTrace(); fail(e.getMessage()); } assertEquals(4, select.getProjection().get(PROJECTION.FIELDS.exactToken()).size()); select.resetUsedProjection(); assertFalse(select.getProjection().has(PROJECTION.FIELDS.exactToken())); }
public final Select addUsedProjection(final String... variableNames) throws InvalidParseOperationException { selectAddUsedProjection(variableNames); return this; }
Select extends RequestSingle { public final Select addUsedProjection(final String... variableNames) throws InvalidParseOperationException { selectAddUsedProjection(variableNames); return this; } }
Select extends RequestSingle { public final Select addUsedProjection(final String... variableNames) throws InvalidParseOperationException { selectAddUsedProjection(variableNames); return this; }  }
Select extends RequestSingle { public final Select addUsedProjection(final String... variableNames) throws InvalidParseOperationException { selectAddUsedProjection(variableNames); return this; }  final Select resetLimitFilter(); final Select resetOrderByFilter(); final Select resetUsedProjection(); @Override final Select reset(); final Select setLimitFilter(final long offset, final long limit); final Select setLimitFilter(final JsonNode filterContent); final Select parseLimitFilter(final String filter); final Select addOrderByAscFilter(final String... variableNames); final Select addOrderByDescFilter(final String... variableNames); final Select addOrderByFilter(final JsonNode filterContent); final Select parseOrderByFilter(final String filter); @Override final Select setFilter(final JsonNode filterContent); final Select addUsedProjection(final String... variableNames); final Select addUnusedProjection(final String... variableNames); final Select addProjection(final JsonNode projectionContent); final Select parseProjection(final String projection); final Select setProjection(final JsonNode projectionContent); final ObjectNode getFinalSelect(); final ObjectNode getFinalSelectById(); @Override String toString(); }
Select extends RequestSingle { public final Select addUsedProjection(final String... variableNames) throws InvalidParseOperationException { selectAddUsedProjection(variableNames); return this; }  final Select resetLimitFilter(); final Select resetOrderByFilter(); final Select resetUsedProjection(); @Override final Select reset(); final Select setLimitFilter(final long offset, final long limit); final Select setLimitFilter(final JsonNode filterContent); final Select parseLimitFilter(final String filter); final Select addOrderByAscFilter(final String... variableNames); final Select addOrderByDescFilter(final String... variableNames); final Select addOrderByFilter(final JsonNode filterContent); final Select parseOrderByFilter(final String filter); @Override final Select setFilter(final JsonNode filterContent); final Select addUsedProjection(final String... variableNames); final Select addUnusedProjection(final String... variableNames); final Select addProjection(final JsonNode projectionContent); final Select parseProjection(final String projection); final Select setProjection(final JsonNode projectionContent); final ObjectNode getFinalSelect(); final ObjectNode getFinalSelectById(); @Override String toString();  }