Codota Logo
SpatialKey.setMax
Code IndexAdd Codota to your IDE (free)

How to use
setMax
method
in
org.h2.mvstore.rtree.SpatialKey

Best Java code snippets using org.h2.mvstore.rtree.SpatialKey.setMax (Showing top 12 results out of 315)

  • Common ways to obtain SpatialKey
private void myMethod () {
SpatialKey s =
  • Codota IconPage page;(SpatialKey) page.getKey(pos.index++)
  • Codota IconSearchRow searchRow;new SpatialKey(searchRow.getKey())
  • Codota IconArrayList arrayList;(SpatialKey) arrayList.get(index)
  • Smart code suggestions by Codota
}
origin: com.h2database/h2

private void increaseMaxInnerBounds(Object bounds, Object add) {
  SpatialKey b = (SpatialKey) bounds;
  SpatialKey a = (SpatialKey) add;
  for (int i = 0; i < dimensions; i++) {
    b.setMin(i, Math.min(b.min(i), a.max(i)));
    b.setMax(i, Math.max(b.max(i), a.min(i)));
  }
}
origin: com.h2database/h2

/**
 * Increase the bounds in the given spatial object.
 *
 * @param bounds the bounds (may be modified)
 * @param add the value
 */
public void increaseBounds(Object bounds, Object add) {
  SpatialKey a = (SpatialKey) add;
  SpatialKey b = (SpatialKey) bounds;
  if (a.isNull() || b.isNull()) {
    return;
  }
  for (int i = 0; i < dimensions; i++) {
    b.setMin(i, Math.min(b.min(i), a.min(i)));
    b.setMax(i, Math.max(b.max(i), a.max(i)));
  }
}
origin: com.h2database/h2

float t = boundsInner.min(i);
boundsInner.setMin(i, boundsInner.max(i));
boundsInner.setMax(i, t);
origin: com.h2database/h2-mvstore

private void increaseMaxInnerBounds(Object bounds, Object add) {
  SpatialKey b = (SpatialKey) bounds;
  SpatialKey a = (SpatialKey) add;
  for (int i = 0; i < dimensions; i++) {
    b.setMin(i, Math.min(b.min(i), a.max(i)));
    b.setMax(i, Math.max(b.max(i), a.min(i)));
  }
}
origin: org.wowtools/h2

private void increaseMaxInnerBounds(Object bounds, Object add) {
  SpatialKey b = (SpatialKey) bounds;
  SpatialKey a = (SpatialKey) add;
  for (int i = 0; i < dimensions; i++) {
    b.setMin(i, Math.min(b.min(i), a.max(i)));
    b.setMax(i, Math.max(b.max(i), a.min(i)));
  }
}
origin: com.eventsourcing/h2

private void increaseMaxInnerBounds(Object bounds, Object add) {
  SpatialKey b = (SpatialKey) bounds;
  SpatialKey a = (SpatialKey) add;
  for (int i = 0; i < dimensions; i++) {
    b.setMin(i, Math.min(b.min(i), a.max(i)));
    b.setMax(i, Math.max(b.max(i), a.min(i)));
  }
}
origin: com.h2database/h2-mvstore

/**
 * Increase the bounds in the given spatial object.
 *
 * @param bounds the bounds (may be modified)
 * @param add the value
 */
public void increaseBounds(Object bounds, Object add) {
  SpatialKey a = (SpatialKey) add;
  SpatialKey b = (SpatialKey) bounds;
  if (a.isNull() || b.isNull()) {
    return;
  }
  for (int i = 0; i < dimensions; i++) {
    b.setMin(i, Math.min(b.min(i), a.min(i)));
    b.setMax(i, Math.max(b.max(i), a.max(i)));
  }
}
origin: org.wowtools/h2

/**
 * Increase the bounds in the given spatial object.
 *
 * @param bounds the bounds (may be modified)
 * @param add the value
 */
public void increaseBounds(Object bounds, Object add) {
  SpatialKey a = (SpatialKey) add;
  SpatialKey b = (SpatialKey) bounds;
  if (a.isNull() || b.isNull()) {
    return;
  }
  for (int i = 0; i < dimensions; i++) {
    b.setMin(i, Math.min(b.min(i), a.min(i)));
    b.setMax(i, Math.max(b.max(i), a.max(i)));
  }
}
origin: com.eventsourcing/h2

/**
 * Increase the bounds in the given spatial object.
 *
 * @param bounds the bounds (may be modified)
 * @param add the value
 */
public void increaseBounds(Object bounds, Object add) {
  SpatialKey a = (SpatialKey) add;
  SpatialKey b = (SpatialKey) bounds;
  if (a.isNull() || b.isNull()) {
    return;
  }
  for (int i = 0; i < dimensions; i++) {
    b.setMin(i, Math.min(b.min(i), a.min(i)));
    b.setMax(i, Math.max(b.max(i), a.max(i)));
  }
}
origin: org.wowtools/h2

float t = boundsInner.min(i);
boundsInner.setMin(i, boundsInner.max(i));
boundsInner.setMax(i, t);
origin: com.eventsourcing/h2

float t = boundsInner.min(i);
boundsInner.setMin(i, boundsInner.max(i));
boundsInner.setMax(i, t);
origin: com.h2database/h2-mvstore

float t = boundsInner.min(i);
boundsInner.setMin(i, boundsInner.max(i));
boundsInner.setMax(i, t);
org.h2.mvstore.rtreeSpatialKeysetMax

Javadoc

Set the maximum value for the given dimension.

Popular methods of SpatialKey

  • <init>
    Create a new key.
  • getId
  • equalsIgnoringId
    Check whether two objects are equals, but do not compare the id fields.
  • isNull
  • max
    Get the maximum value for the given dimension.
  • min
    Get the minimum value for the given dimension.
  • setMin
    Set the minimum value for the given dimension.
  • toString

Popular in Java

  • Reactive rest calls using spring rest template
  • setContentView (Activity)
  • orElseThrow (Optional)
  • getSystemService (Context)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • Socket (java.net)
    Provides a client-side TCP socket.
  • URLConnection (java.net)
    The abstract class URLConnection is the superclass of all classes that represent a communications li
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now