Codota Logo
RangeCondition.getEnd
Code IndexAdd Codota to your IDE (free)

How to use
getEnd
method
in
com.oberasoftware.jasdb.core.index.query.RangeCondition

Best Java code snippets using com.oberasoftware.jasdb.core.index.query.RangeCondition.getEnd (Showing top 5 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Connection c =
  • Codota IconDataSource dataSource;dataSource.getConnection()
  • Codota IconString url;DriverManager.getConnection(url)
  • Codota IconIdentityDatabaseUtil.getDBConnection()
  • Smart code suggestions by Codota
}
origin: oberasoftware/jasdb

private static void generateRangeCondition(StringBuilder builder, String field, RangeCondition rangeCondition) {
  Key startKey = rangeCondition.getStart();
  Key endKey = rangeCondition.getEnd();
  if(startKey != null) {
    builder.append(field).append(rangeCondition.isStartIncluded() ? ">=" : ">");
    handleValueAppend(builder, startKey);
  }
  if(startKey != null && endKey != null) {
    builder.append(",");
  }
  if(endKey != null) {
    builder.append(field).append(rangeCondition.isEndIncluded() ? "<=" : "<");
    handleValueAppend(builder, endKey);
  }
}
origin: oberasoftware/jasdb

private RangeCondition validateRangeCondition(SearchCondition condition) throws JasDBStorageException {
  if(condition instanceof RangeCondition) {
    KeyFactory factory = keyInfo.getKeyFactory();
    RangeCondition rangeCondition = (RangeCondition) condition;
    rangeCondition.setStart(validateKey(factory, rangeCondition.getStart()));
    rangeCondition.setEnd(validateKey(factory, rangeCondition.getEnd()));
    return rangeCondition;
  } else {
    throw new JasDBStorageException("Invalid Range condition input: " + condition);
  }
}
origin: oberasoftware/jasdb

private static RangeCondition mergeRangeConditions(List<RangeCondition> rangeConditions) {
  Key lowestKey = null;
  boolean startInclusive = false;
  boolean endInclusive = false;
  Key highestKey = null;
  for(SearchCondition condition : rangeConditions) {
    RangeCondition rangeCondition = (RangeCondition) condition;
    Key rangeStartKey = rangeCondition.getStart();
    Key rangeEndKey = rangeCondition.getEnd();
    if(rangeStartKey != null && (lowestKey == null || rangeStartKey.compareTo(lowestKey) < 0)) {
      lowestKey = rangeStartKey;
      startInclusive = rangeCondition.isStartIncluded();
    }
    if(rangeEndKey != null && (highestKey == null || rangeEndKey.compareTo(highestKey) > 0)) {
      highestKey = rangeEndKey;
      endInclusive = rangeCondition.isEndIncluded();
    }
  }
  return new RangeCondition(lowestKey, startInclusive, highestKey, endInclusive);
}
origin: oberasoftware/jasdb

while(keepEvaluating && currentLeave != null) {
  addFoundKeys(results, currentLeave.getKeyRange(rangeCondition.getStart(), rangeCondition.isStartIncluded(),
      rangeCondition.getEnd(), rangeCondition.isEndIncluded()), limit);
  } else if(rangeCondition.getEnd() != null) {
    Key lastKey = currentLeave.getLast();
    int lastKeyCompare = lastKey.compareTo(rangeCondition.getEnd());
    if(lastKeyCompare > 0) {
origin: oberasoftware/jasdb

@Override
public SearchCondition mergeCondition(KeyNameMapper nameMapper, String sourceField, String mergeField, SearchCondition condition) {
  if(condition instanceof EqualsCondition) {
    CompositeKey compositeKey;
    if(key instanceof CompositeKey) {
      compositeKey = (CompositeKey) key;
    } else {
      compositeKey = new CompositeKey();
      compositeKey.addKey(nameMapper, sourceField, key);
    }
    return new EqualsCondition(compositeKey.addKey(nameMapper, mergeField, ((EqualsCondition) condition).getKey()));
  } else if(condition instanceof RangeCondition) {
    RangeCondition rangeCondition = (RangeCondition) condition;
    Key startKey = null, endKey = null;
    if(rangeCondition.getStart() != null) {
      startKey = new CompositeKey()
          .addKey(nameMapper, sourceField, key)
          .addKey(nameMapper, mergeField, rangeCondition.getStart());
    }
    if(rangeCondition.getEnd() != null) {
      endKey = new CompositeKey()
          .addKey(nameMapper, sourceField, key)
          .addKey(nameMapper, mergeField, rangeCondition.getEnd());
    }
    return new RangeCondition(startKey, rangeCondition.isStartIncluded(), endKey, rangeCondition.isEndIncluded());
  }
  return null;
}
com.oberasoftware.jasdb.core.index.queryRangeConditiongetEnd

Popular methods of RangeCondition

  • getStart
  • isEndIncluded
  • isStartIncluded
  • <init>
  • setEnd
  • setStart
  • toString

Popular in Java

  • Running tasks concurrently on multiple threads
  • setScale (BigDecimal)
  • getSystemService (Context)
  • runOnUiThread (Activity)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
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