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

  • Parsing JSON documents to java classes using gson
  • onCreateOptionsMenu (Activity)
  • startActivity (Activity)
  • getContentResolver (Context)
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • 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