多易 HADOOP從入門(mén)到熟練掌握
ublic static MatchOperation rangeTime(String field, List<String> data) {
? ? ? ?return Aggregation.match(Criteria.where(field).exists(Boolean.TRUE)
? ? ? ? ? ? ? ?.andOperator(
? ? ? ? ? ? ? ? ? ? ? ?Criteria.where(field).gte(strToDateLong(data.get(0))),
? ? ? ? ? ? ? ? ? ? ? ?Criteria.where(field).lte(strToDateLong(data.get(1)))
? ? ? ? ? ? ? ?));
? ?}
標(biāo)簽: