congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
SpatialKey.setMax
Code IndexAdd Tabnine 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)

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

  • Updating database using SQL prepared statement
  • onCreateOptionsMenu (Activity)
  • setRequestProperty (URLConnection)
  • setContentView (Activity)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now