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

How to use
net.vvakame.blaz.filter.PropertyStringGtEqFilter
constructor

Best Java code snippets using net.vvakame.blaz.filter.PropertyStringGtEqFilter.<init> (Showing top 3 results out of 315)

origin: net.vvakame/blazdb-core

static Filter getPropertyStringFilter(String name, FilterOption option, String value) {
  switch (option) {
    case EQ:
      return new PropertyStringEqFilter(name, value);
    case GT:
      return new PropertyStringGtFilter(name, value);
    case GT_EQ:
      return new PropertyStringGtEqFilter(name, value);
    case LT:
      return new PropertyStringLtFilter(name, value);
    case LT_EQ:
      return new PropertyStringLtEqFilter(name, value);
    case IN:
      return new PropertyStringInFilter(name, value);
    default:
      throw new IllegalArgumentException();
  }
}
origin: net.vvakame/blazdb-core

AbstractPropertyFilter getPropertyStringFilter(String name, FilterOption option, String value) {
  switch (option) {
    case EQ:
      return new PropertyStringEqFilter(name, value);
    case GT:
      return new PropertyStringGtFilter(name, value);
    case GT_EQ:
      return new PropertyStringGtEqFilter(name, value);
    case LT:
      return new PropertyStringLtFilter(name, value);
    case LT_EQ:
      return new PropertyStringLtEqFilter(name, value);
    case IN:
      return new PropertyStringInFilter(name, value);
    default:
      throw new IllegalArgumentException();
  }
}
origin: net.vvakame/blazdb-compat-test

/**
 * 動作確認.
 * @author vvakame
 */
@Test
public void find_string_PROPERTY_GT_EQ_single_filter() {
  {
    Entity entity = new Entity("hoge", "piyo1");
    entity.setProperty("key", "value1");
    kvs.put(entity);
  }
  {
    Entity entity = new Entity("hoge", "piyo2");
    entity.setProperty("key", "value2");
    kvs.put(entity);
  }
  {
    Entity entity = new Entity("hoge", "piyo3");
    entity.setProperty("key", "value3");
    kvs.put(entity);
  }
  List<Entity> list = kvs.find(new PropertyStringGtEqFilter("key", "value2"));
  assertThat(list.size(), is(2));
  Key key1 = KeyUtil.createKey("hoge", "piyo2");
  Key key2 = KeyUtil.createKey("hoge", "piyo3");
  assertThat(list.get(0).getKey(), isOneOf(key1, key2));
  assertThat(list.get(1).getKey(), isOneOf(key1, key2));
}
net.vvakame.blaz.filterPropertyStringGtEqFilter<init>

Javadoc

the constructor.

Popular methods of PropertyStringGtEqFilter

  • getValue

Popular in Java

  • Updating database using SQL prepared statement
  • requestLocationUpdates (LocationManager)
  • startActivity (Activity)
  • getSupportFragmentManager (FragmentActivity)
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • Table (org.hibernate.mapping)
    A relational table
  • 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