Remove deprecated methods in CypherQueryStore
@@ -21,35 +21,4 @@ public class CypherQueryStore extends QueryStore {
super(path, ".cypher");
}
- protected Date addDays(Date startDate, int days){
- Calendar cal = Calendar.getInstance();
- cal.setTime(startDate);
- cal.add(Calendar.DATE, days);
- return cal.getTime();
- }
-
- @Override
- public String getQuery3(LdbcQuery3 operation) {
- // We can't use the DB's datetime lib, because currently the dates are stored as longs, see CypherConverter
- Date endDate = addDays(operation.startDate(), operation.durationDays());
- return prepare(QueryType.InteractiveComplexQuery3, new ImmutableMap.Builder<String, String>()
- .put("personId", getConverter().convertId(operation.personId()))
- .put("countryXName", getConverter().convertString(operation.countryXName()))
- .put("countryYName", getConverter().convertString(operation.countryYName()))
- .put("startDate", getConverter().convertDateTime(operation.startDate()))
- .put("endDate", getConverter().convertDateTime(endDate))
- .build());
- }
-
- @Override
- public String getQuery4(LdbcQuery4 operation) {
- // We can't use the DB's datetime lib, because currently the dates are stored as longs, see CypherConverter
- Date endDate = addDays(operation.startDate(), operation.durationDays());
- return prepare(QueryType.InteractiveComplexQuery4, new ImmutableMap.Builder<String, String>()
- .put("personId", getConverter().convertId(operation.personId()))
- .put("startDate", getConverter().convertDateTime(operation.startDate()))
- .put("endDate", getConverter().convertDateTime(endDate))
- .build());
- }
-
}
