congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
Cursor.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.h2.mvstore.Cursor
constructor

Best Java code snippets using org.h2.mvstore.Cursor.<init> (Showing top 16 results out of 315)

origin: com.h2database/h2

/**
 * Iterate over a number of keys.
 *
 * @param from the first key to return
 * @return the iterator
 */
public Iterator<K> keyIterator(K from) {
  return new Cursor<K, V>(this, root, from);
}
origin: com.h2database/h2

/**
 * Get a cursor to iterate over a number of keys and values.
 *
 * @param from the first key to return
 * @return the cursor
 */
public Cursor<K, V> cursor(K from) {
  return new Cursor<>(this, root, from);
}
origin: com.h2database/h2

@Override
public Iterator<K> iterator() {
  return new Cursor<K, V>(map, root, null);
}
origin: com.h2database/h2

@Override
public Iterator<Entry<K, V>> iterator() {
  final Cursor<K, V> cursor = new Cursor<>(map, root, null);
  return new Iterator<Entry<K, V>>() {
    @Override
    public boolean hasNext() {
      return cursor.hasNext();
    }
    @Override
    public Entry<K, V> next() {
      K k = cursor.next();
      return new DataUtils.MapEntry<>(k, cursor.getValue());
    }
    @Override
    public void remove() {
      throw DataUtils.newUnsupportedOperationException(
          "Removing is not supported");
    }
  };
}
origin: com.eventsourcing/h2

/**
 * Iterate over a number of keys.
 *
 * @param from the first key to return
 * @return the iterator
 */
public Iterator<K> keyIterator(K from) {
  return new Cursor<K, V>(this, root, from);
}
origin: org.wowtools/h2

/**
 * Iterate over a number of keys.
 *
 * @param from the first key to return
 * @return the iterator
 */
public Iterator<K> keyIterator(K from) {
  return new Cursor<K, V>(this, root, from);
}
origin: com.h2database/h2-mvstore

/**
 * Get a cursor to iterate over a number of keys and values.
 *
 * @param from the first key to return
 * @return the cursor
 */
public Cursor<K, V> cursor(K from) {
  return new Cursor<>(this, root, from);
}
origin: com.h2database/h2-mvstore

/**
 * Iterate over a number of keys.
 *
 * @param from the first key to return
 * @return the iterator
 */
public Iterator<K> keyIterator(K from) {
  return new Cursor<K, V>(this, root, from);
}
origin: org.wowtools/h2

/**
 * Get a cursor to iterate over a number of keys and values.
 *
 * @param from the first key to return
 * @return the cursor
 */
public Cursor<K, V> cursor(K from) {
  return new Cursor<K, V>(this, root, from);
}
origin: com.eventsourcing/h2

@Override
public Iterator<K> iterator() {
  return new Cursor<K, V>(map, root, null);
}
origin: org.wowtools/h2

@Override
public Iterator<K> iterator() {
  return new Cursor<K, V>(map, root, null);
}
origin: com.eventsourcing/h2

/**
 * Get a cursor to iterate over a number of keys and values.
 *
 * @param from the first key to return
 * @return the cursor
 */
public Cursor<K, V> cursor(K from) {
  return new Cursor<K, V>(this, root, from);
}
origin: com.h2database/h2-mvstore

@Override
public Iterator<K> iterator() {
  return new Cursor<K, V>(map, root, null);
}
origin: com.h2database/h2-mvstore

@Override
public Iterator<Entry<K, V>> iterator() {
  final Cursor<K, V> cursor = new Cursor<>(map, root, null);
  return new Iterator<Entry<K, V>>() {
    @Override
    public boolean hasNext() {
      return cursor.hasNext();
    }
    @Override
    public Entry<K, V> next() {
      K k = cursor.next();
      return new DataUtils.MapEntry<>(k, cursor.getValue());
    }
    @Override
    public void remove() {
      throw DataUtils.newUnsupportedOperationException(
          "Removing is not supported");
    }
  };
}
origin: org.wowtools/h2

@Override
public Iterator<Entry<K, V>> iterator() {
  final Cursor<K, V> cursor = new Cursor<K, V>(map, root, null);
  return new Iterator<Entry<K, V>>() {
    @Override
    public boolean hasNext() {
      return cursor.hasNext();
    }
    @Override
    public Entry<K, V> next() {
      K k = cursor.next();
      return new DataUtils.MapEntry<K, V>(k, cursor.getValue());
    }
    @Override
    public void remove() {
      throw DataUtils.newUnsupportedOperationException(
          "Removing is not supported");
    }
  };
}
origin: com.eventsourcing/h2

@Override
public Iterator<Entry<K, V>> iterator() {
  final Cursor<K, V> cursor = new Cursor<K, V>(map, root, null);
  return new Iterator<Entry<K, V>>() {
    @Override
    public boolean hasNext() {
      return cursor.hasNext();
    }
    @Override
    public Entry<K, V> next() {
      K k = cursor.next();
      return new DataUtils.MapEntry<K, V>(k, cursor.getValue());
    }
    @Override
    public void remove() {
      throw DataUtils.newUnsupportedOperationException(
          "Removing is not supported");
    }
  };
}
org.h2.mvstoreCursor<init>

Popular methods of Cursor

  • getValue
    Get the last read value if there was one.
  • hasNext
  • next
  • fetchNext
    Fetch the next entry if there is one.
  • getPage
  • min
    Fetch the next entry that is equal or larger than the given key, starting from the given page. This

Popular in Java

  • Creating JSON documents from java classes using gson
  • scheduleAtFixedRate (Timer)
  • findViewById (Activity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • Reference (javax.naming)
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • 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
  • 14 Best Plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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