@Test public void testAddUsedProjection() { final SelectMultiQuery select = new SelectMultiQuery(); 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 SelectMultiQuery addUsedProjection(final String... variableNames) throws InvalidParseOperationException { selectAddUsedProjection(variableNames); return this; }
SelectMultiQuery extends RequestMultiple { public final SelectMultiQuery addUsedProjection(final String... variableNames) throws InvalidParseOperationException { selectAddUsedProjection(variableNames); return this; } }
SelectMultiQuery extends RequestMultiple { public final SelectMultiQuery addUsedProjection(final String... variableNames) throws InvalidParseOperationException { selectAddUsedProjection(variableNames); return this; }  }
SelectMultiQuery extends RequestMultiple { public final SelectMultiQuery addUsedProjection(final String... variableNames) throws InvalidParseOperationException { selectAddUsedProjection(variableNames); return this; }  final SelectMultiQuery resetFacets(); final SelectMultiQuery resetLimitFilter(); final SelectMultiQuery resetOrderByFilter(); final SelectMultiQuery resetUsedProjection(); final SelectMultiQuery resetUsageProjection(); @Override final SelectMultiQuery reset(); final SelectMultiQuery setLimitFilter(final long offset, final long limit); final SelectMultiQuery setLimitFilter(final JsonNode filterContent); final SelectMultiQuery parseLimitFilter(final String filter); final SelectMultiQuery addOrderByAscFilter(final String... variableNames); final SelectMultiQuery addOrderByDescFilter(final String... variableNames); final SelectMultiQuery addOrderByFilter(final JsonNode filterContent); final SelectMultiQuery parseOrderByFilter(final String filter); @Override final SelectMultiQuery setFilter(final JsonNode filterContent); final SelectMultiQuery addUsedProjection(final String... variableNames); final SelectMultiQuery addUnusedProjection(final String... variableNames); final SelectMultiQuery addProjection(final JsonNode projectionContent); final SelectMultiQuery parseProjection(final String projection); void setProjectionSliceOnQualifier(String... additionalFields); final SelectMultiQuery setUsageProjection(final String usage); final SelectMultiQuery setUsageProjection(final JsonNode projectionContent); final SelectMultiQuery setProjection(final JsonNode projectionContent); final ObjectNode getFinalSelect(); final ObjectNode getFinalSelectById(); @Override final boolean getAllProjection(); @Override final ObjectNode getProjection(); final List<Facet> getFacets(); final SelectMultiQuery addFacets(final Facet... facets); SelectMultiQuery setFacet(Facet facet); final SelectMultiQuery setScrollFilter(final String scrollId, final int scrollTimeout, final int limit); Long getThreshold(); void setThreshold(Long threshold); @Override String toString(); }
SelectMultiQuery extends RequestMultiple { public final SelectMultiQuery addUsedProjection(final String... variableNames) throws InvalidParseOperationException { selectAddUsedProjection(variableNames); return this; }  final SelectMultiQuery resetFacets(); final SelectMultiQuery resetLimitFilter(); final SelectMultiQuery resetOrderByFilter(); final SelectMultiQuery resetUsedProjection(); final SelectMultiQuery resetUsageProjection(); @Override final SelectMultiQuery reset(); final SelectMultiQuery setLimitFilter(final long offset, final long limit); final SelectMultiQuery setLimitFilter(final JsonNode filterContent); final SelectMultiQuery parseLimitFilter(final String filter); final SelectMultiQuery addOrderByAscFilter(final String... variableNames); final SelectMultiQuery addOrderByDescFilter(final String... variableNames); final SelectMultiQuery addOrderByFilter(final JsonNode filterContent); final SelectMultiQuery parseOrderByFilter(final String filter); @Override final SelectMultiQuery setFilter(final JsonNode filterContent); final SelectMultiQuery addUsedProjection(final String... variableNames); final SelectMultiQuery addUnusedProjection(final String... variableNames); final SelectMultiQuery addProjection(final JsonNode projectionContent); final SelectMultiQuery parseProjection(final String projection); void setProjectionSliceOnQualifier(String... additionalFields); final SelectMultiQuery setUsageProjection(final String usage); final SelectMultiQuery setUsageProjection(final JsonNode projectionContent); final SelectMultiQuery setProjection(final JsonNode projectionContent); final ObjectNode getFinalSelect(); final ObjectNode getFinalSelectById(); @Override final boolean getAllProjection(); @Override final ObjectNode getProjection(); final List<Facet> getFacets(); final SelectMultiQuery addFacets(final Facet... facets); SelectMultiQuery setFacet(Facet facet); final SelectMultiQuery setScrollFilter(final String scrollId, final int scrollTimeout, final int limit); Long getThreshold(); void setThreshold(Long threshold); @Override String toString();  }