@TeiidFunction(name=SourceSystemFunctions.ST_ASBINARY, category=FunctionCategoryConstants.GEOMETRY, nullOnNull=true, pushdown=PushDown.CAN_PUSHDOWN) public static BlobType asBlob(GeometryType geometry) { Blob b = geometry.getReference(); return new BlobType(b); }
@TeiidFunction(name=SourceSystemFunctions.ST_ASBINARY, category=FunctionCategoryConstants.GEOMETRY, nullOnNull=true, pushdown=PushDown.CAN_PUSHDOWN) public static BlobType asBlob(GeometryType geometry) { Blob b = geometry.getReference(); return new BlobType(b); }
@TeiidFunction(name=SourceSystemFunctions.ST_ASBINARY, category=FunctionCategoryConstants.GEOMETRY, nullOnNull=true, pushdown=PushDown.CAN_PUSHDOWN) public static BlobType asBlob(GeometryType geometry) { Blob b = geometry.getReference(); return new BlobType(b); }
public static BlobType asBlob(GeometryType geometry, String encoding) throws FunctionExecutionException { if ("NDR".equals(encoding)) { //$NON-NLS-1$ return new BlobType(GeometryUtils.getBytes(GeometryUtils.getGeometry(geometry), false)); } Blob b = geometry.getReference(); return new BlobType(b); }
final Blob b = geometry.getReference(); BlobImpl blobImpl = new BlobImpl(new InputStreamFactory() {
@TeiidFunction(name=SourceSystemFunctions.ST_SETSRID, category=FunctionCategoryConstants.GEOMETRY, nullOnNull=true, pushdown=PushDown.CAN_PUSHDOWN) public static GeometryType setSrid(GeometryType geom1, int srid) { GeometryType gt = new GeometryType(); gt.setReference(geom1.getReference()); gt.setSrid(srid); return gt; }
@TeiidFunction(name=SourceSystemFunctions.ST_SETSRID, category=FunctionCategoryConstants.GEOMETRY, nullOnNull=true, pushdown=PushDown.CAN_PUSHDOWN) public static GeometryType setSrid(GeometryType geom1, int srid) { GeometryType gt = new GeometryType(); gt.setReference(geom1.getReference()); gt.setSrid(srid); return gt; }
@TeiidFunction(name=SourceSystemFunctions.ST_SETSRID, category=FunctionCategoryConstants.GEOMETRY, nullOnNull=true, pushdown=PushDown.CAN_PUSHDOWN) public static GeometryType setSrid(GeometryType geom1, int srid) { GeometryType gt = new GeometryType(); gt.setReference(geom1.getReference()); gt.setSrid(srid); return gt; }