Tabnine Logo
RangeConstraint.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.apache.stanbol.entityhub.servicesapi.query.RangeConstraint
constructor

Best Java code snippets using org.apache.stanbol.entityhub.servicesapi.query.RangeConstraint.<init> (Showing top 3 results out of 315)

origin: apache/stanbol

  throw new IllegalArgumentException(message.toString());
} else {
  constraint = new RangeConstraint(lowerBound, upperBound, inclusive);
origin: apache/stanbol

/**
 * Tests simple {@link RangeConstraint}
 */
@Test
public void testFindRange(){
  //init the test data
  FieldQueryTestData data = getFieldQueryTestData();
  //query for all languages and value1
  FieldQuery query = getYard().getQueryFactory().createFieldQuery();
  query.setConstraint(data.intField, new RangeConstraint(data.intValue2,data.intValue5,true));
  query.addSelectedField(data.intField);
  query.addSelectedField(data.refField);
  validateQueryResults(query, getYard().find(query), 
      Arrays.asList(data.r2.getId(), data.r2en.getId(), data.r2de.getId(), data.r5.getId()), 
      Arrays.asList(data.intField, data.refField));
  
  //same for value2
  query = getYard().getQueryFactory().createFieldQuery();
  query.setConstraint(data.intField, new RangeConstraint(data.intValue2,data.intValue10,false));
  query.addSelectedField(data.intField);
  query.addSelectedField(data.textField);
  validateQueryResults(query, getYard().find(query), 
      Arrays.asList(data.r5.getId()), 
      Arrays.asList(data.intField, data.textField));
}
/**
origin: apache/stanbol

query.setConstraint(data.intField, new RangeConstraint(data.intValue2,data.intValue5, true));
org.apache.stanbol.entityhub.servicesapi.queryRangeConstraint<init>

Popular methods of RangeConstraint

  • getLowerBound
  • getUpperBound
  • isInclusive

Popular in Java

  • Creating JSON documents from java classes using gson
  • getSharedPreferences (Context)
  • getExternalFilesDir (Context)
  • onCreateOptionsMenu (Activity)
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • Table (org.hibernate.mapping)
    A relational table
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • Top plugins for Android Studio
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