本文整理了Java中com.facebook.presto.spi.predicate.Marker.<init>()
方法的一些代码示例,展示了Marker.<init>()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Marker.<init>()
方法的具体详情如下:
包路径:com.facebook.presto.spi.predicate.Marker
类名称:Marker
方法名:<init>
[英]LOWER UNBOUNDED is specified with an empty value and a ABOVE bound UPPER UNBOUNDED is specified with an empty value and a BELOW bound
[中]
代码示例来源:origin: prestodb/presto
public Marker greaterAdjacent()
{
if (!valueBlock.isPresent()) {
throw new IllegalStateException("No marker adjacent to unbounded");
}
switch (bound) {
case BELOW:
return new Marker(type, valueBlock, Bound.EXACTLY);
case EXACTLY:
return new Marker(type, valueBlock, Bound.ABOVE);
case ABOVE:
throw new IllegalStateException("No greater marker adjacent to an ABOVE bound");
default:
throw new AssertionError("Unsupported type: " + bound);
}
}
代码示例来源:origin: prestodb/presto
public Marker lesserAdjacent()
{
if (!valueBlock.isPresent()) {
throw new IllegalStateException("No marker adjacent to unbounded");
}
switch (bound) {
case BELOW:
throw new IllegalStateException("No lesser marker adjacent to a BELOW bound");
case EXACTLY:
return new Marker(type, valueBlock, Bound.BELOW);
case ABOVE:
return new Marker(type, valueBlock, Bound.EXACTLY);
default:
throw new AssertionError("Unsupported type: " + bound);
}
}
代码示例来源:origin: prestodb/presto
private static Marker create(Type type, Optional<Object> value, Bound bound)
{
return new Marker(type, value.map(object -> Utils.nativeValueToBlock(type, object)), bound);
}
代码示例来源:origin: stackoverflow.com
//this is generated dynamically from DB.
var markers = [
{lat:115416,lng:26411},
{lat:115416,lng:26411}
];
//this is static, just grabs the dynamic bit and puts it on the map:
for (var i = 0; i < markers.length; i++){
//creates a marker object
var marker = new Marker({lat:markers[i].lat, lng:markers[i].lng })
//displays it on the map
map.addMarker(marker);
}
代码示例来源:origin: stackoverflow.com
for (int i = 0; i < someSize; i++){
redMarker[i] = new Marker();
}
代码示例来源:origin: stackoverflow.com
var markers = {marker1: new Marker(...), marker2: new Marker(...), ... };
代码示例来源:origin: stackoverflow.com
var markers = [new Marker(...), new Marker(...), ...];
markers[markerIndex].openPopup();
代码示例来源:origin: com.facebook.presto/presto-spi
public Marker greaterAdjacent()
{
if (!valueBlock.isPresent()) {
throw new IllegalStateException("No marker adjacent to unbounded");
}
switch (bound) {
case BELOW:
return new Marker(type, valueBlock, Bound.EXACTLY);
case EXACTLY:
return new Marker(type, valueBlock, Bound.ABOVE);
case ABOVE:
throw new IllegalStateException("No greater marker adjacent to an ABOVE bound");
default:
throw new AssertionError("Unsupported type: " + bound);
}
}
代码示例来源:origin: com.facebook.presto/presto-spi
public Marker lesserAdjacent()
{
if (!valueBlock.isPresent()) {
throw new IllegalStateException("No marker adjacent to unbounded");
}
switch (bound) {
case BELOW:
throw new IllegalStateException("No lesser marker adjacent to a BELOW bound");
case EXACTLY:
return new Marker(type, valueBlock, Bound.BELOW);
case ABOVE:
return new Marker(type, valueBlock, Bound.EXACTLY);
default:
throw new AssertionError("Unsupported type: " + bound);
}
}
代码示例来源:origin: stackoverflow.com
Marker m = new Marker(new z() {
代码示例来源:origin: com.facebook.presto/presto-spi
private static Marker create(Type type, Optional<Object> value, Bound bound)
{
return new Marker(type, value.map(object -> Utils.nativeValueToBlock(type, object)), bound);
}
代码示例来源:origin: stackoverflow.com
public class Helper {
public String stringify(List<Marker> l) {
String rs = "";
for (Marker marker : l) {
rs = rs + ',' + marker.toString();
}
rs.substring(1);
return rs;
}
public List<Marker> makeList(String rs){
List<Marker> rl = new LinkedList<Marker>();
String[] a = rs.split(",");
for (String string : a) {
Marker rm = new Marker();
// I don't know what class of marker you use,
//but here you should create the marker from the string
rl.add(rm);
}
return rl;
}
}
代码示例来源:origin: stackoverflow.com
public static class MarkerGSONDeserializer implements JsonDeserializer<Marker>{
@Override
public Marker deserialize(JsonElement data, Type arg1, JsonDeserializationContext arg2) throws JsonParseException {
if(!data.isJsonObject()){
return null;
} else {
JsonObject obj = data.getAsJsonObject();
Marker res = new Marker();
res.setId(obj.get("id").getAsInt());
res.setName(obj.get("name").getAsString());
res.setUserId(((obj.get("links").getAsJsonObject())).get("user").getAsJsonObject()).get("id").getAsInt();
return res;
}
}
}
代码示例来源:origin: stackoverflow.com
Gson gson = new Gson();
java.sql.Connection con = new DBConn().getConnection(); //establish the database connection you use
String getquery = "SELECT * from markers";
ResultSet res = DBHandle.getData(con, getquery);
ArrayList<Marker> markerList;
markerList = new ArrayList<Marker>();
while (res.next()) {
Marker marker=new Marker(); //model class with attributes latitude,longitude and name along with their getters and setters
marker.setLatitude(res.getString("latitude"));
marker.setLongitude(res.getString("longitude"));
marker.setName(res.getString("name"));
markerList.add(marker);
}
String JsonString = gson.toJson(markerList, ArrayList.class);
out.print(JsonString);
代码示例来源:origin: stackoverflow.com
Marker marker = new Marker();
marker.setEnabled(true);
SeriesPlotOptions spo = new SeriesPlotOptions();
spo.setMarker(marker);
Series series1 = chart.createSeries()
.setPlotOptions(spo)
代码示例来源:origin: stackoverflow.com
var marker = new Marker();
marker.XPos = mouseXPos - (marker.Width / 2);
marker.YPos = mouseYPos - marker.Height;
代码示例来源:origin: stackoverflow.com
var marker = new Marker();
marker.XPos = mouseXPos - (marker.Width / 2);
marker.YPos = mouseYPos - marker.Height;
代码示例来源:origin: stackoverflow.com
GMap.Width = 195;
Marker loMarker = new Marker();
loMarker.Position.Latitude = Convert.ToDouble(loData.Latitude);
loMarker.Position.Longitude = Convert.ToDouble(loData.Longitude);
内容来源于网络,如有侵权,请联系作者删除!