mirror of
https://github.com/querydsl/querydsl.git
synced 2026-06-30 21:08:30 +08:00
This commit is contained in:
parent
8e5357e4f7
commit
9b2cddcf35
@ -4,6 +4,7 @@ import com.mysema.query.types.ConstantImpl;
|
||||
import com.mysema.query.types.Path;
|
||||
import com.mysema.query.types.PathMetadata;
|
||||
import com.mysema.query.types.expr.BooleanExpression;
|
||||
import com.mysema.query.types.expr.BooleanOperation;
|
||||
import com.mysema.query.types.path.ArrayPath;
|
||||
|
||||
/**
|
||||
@ -11,23 +12,23 @@ import com.mysema.query.types.path.ArrayPath;
|
||||
*
|
||||
*/
|
||||
public class DoubleArray extends ArrayPath<Double>{
|
||||
|
||||
|
||||
private static final long serialVersionUID = 1776628530121566388L;
|
||||
|
||||
public DoubleArray(String variable) {
|
||||
super(Double[].class, variable);
|
||||
}
|
||||
|
||||
|
||||
public DoubleArray(Path<?> parent, String property) {
|
||||
super(Double[].class, parent, property);
|
||||
}
|
||||
|
||||
|
||||
public DoubleArray(PathMetadata<?> metadata) {
|
||||
super(Double[].class, metadata);
|
||||
}
|
||||
|
||||
// public BooleanExpression near(double latVal, double longVal){
|
||||
// return new PredicateOperation(this, new ConstantImpl(latVal), new ConstantImpl()
|
||||
// }
|
||||
|
||||
public BooleanExpression near(double latVal, double longVal){
|
||||
return BooleanOperation.create(MongodbOps.NEAR, this, new ConstantImpl<Double>(latVal), new ConstantImpl<Double>(longVal));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user