@Test public void testToMongoDb() throws InvalidParseOperationException { final SelectParserSingle request = new SelectParserSingle(); request.parse(EX_MD); assertNotNull(request); SelectToMongodb selectToMongoDb = new SelectToMongodb(request); assertFalse(selectToMongoDb.hasFullTextQuery()); assertFalse(selectToMongoDb.hintNoTimeout()); assertTrue(selectToMongoDb.getHints().size() > 0); assertTrue(selectToMongoDb.getFinalOffset() > 0); assertNotNull(selectToMongoDb.getFinalOrderBy()); assertNull(selectToMongoDb.getFinalProjection()); request.parse(EX_BOTH_ES_MD); selectToMongoDb = new SelectToMongodb(request); assertTrue(selectToMongoDb.hasFullTextQuery()); assertFalse(selectToMongoDb.hintNoTimeout()); assertTrue(selectToMongoDb.getHints().size() > 0); assertTrue(selectToMongoDb.getFinalOffset() > 0); assertNotNull(selectToMongoDb.getFinalOrderBy()); assertNull(selectToMongoDb.getFinalProjection()); request.parse(EX_MD2); selectToMongoDb = new SelectToMongodb(request); assertFalse(selectToMongoDb.hasFullTextQuery()); assertFalse(selectToMongoDb.hintNoTimeout()); assertNull(selectToMongoDb.getHints()); assertTrue(selectToMongoDb.getFinalOffset() == 0); assertNotNull(selectToMongoDb.getFinalOrderBy()); assertNotNull(selectToMongoDb.getFinalProjection()); }
@Override public void parse(final JsonNode request) throws InvalidParseOperationException { parseJson(request); internalParseSelect(); }
SelectParserSingle extends RequestParserSingle { @Override public void parse(final JsonNode request) throws InvalidParseOperationException { parseJson(request); internalParseSelect(); } }
SelectParserSingle extends RequestParserSingle { @Override public void parse(final JsonNode request) throws InvalidParseOperationException { parseJson(request); internalParseSelect(); } SelectParserSingle();  SelectParserSingle(VarNameAdapter adapter); }
SelectParserSingle extends RequestParserSingle { @Override public void parse(final JsonNode request) throws InvalidParseOperationException { parseJson(request); internalParseSelect(); } SelectParserSingle();  SelectParserSingle(VarNameAdapter adapter); @Override void parse(final JsonNode request); @Override void parseQueryOnly(final String query); void projectionParse(final JsonNode rootNode); void addProjection(final ObjectNode slice, final ObjectNode allFields); @Override Select getRequest(); }
SelectParserSingle extends RequestParserSingle { @Override public void parse(final JsonNode request) throws InvalidParseOperationException { parseJson(request); internalParseSelect(); } SelectParserSingle();  SelectParserSingle(VarNameAdapter adapter); @Override void parse(final JsonNode request); @Override void parseQueryOnly(final String query); void projectionParse(final JsonNode rootNode); void addProjection(final ObjectNode slice, final ObjectNode allFields); @Override Select getRequest();  }