Codota Logo
Cursor.next
Code IndexAdd Codota to your IDE (free)

How to use
next
method
in
org.h2.mvstore.Cursor

Best Java code snippets using org.h2.mvstore.Cursor.next (Showing top 18 results out of 315)

  • Common ways to obtain Cursor
private void myMethod () {
Cursor c =
  • Codota IconMVMap mVMap;Object from;mVMap.cursor(from)
  • Smart code suggestions by Codota
}
origin: andsel/moquette

@Override
public List<Subscription> listAllSubscriptions() {
  LOG.debug("Retrieving existing subscriptions");
  List<Subscription> results = new ArrayList<>();
  Cursor<String, Subscription> mapCursor = subscriptions.cursor(null);
  while (mapCursor.hasNext()) {
    String subscriptionStr = mapCursor.next();
    results.add(mapCursor.getValue());
  }
  LOG.debug("Loaded {} subscriptions", results.size());
  return results;
}
origin: com.h2database/h2

K k;
try {
  k = cursor.next();
} catch (IllegalStateException e) {
      break;
    cursor.next();
    if (!cursor.hasNext()) {
      break;
    k = cursor.next();
  } else {
    throw e;
origin: com.h2database/h2

K k;
try {
  k = cursor.next();
} catch (IllegalStateException e) {
      break;
    cursor.next();
    if (!cursor.hasNext()) {
      break;
    k = cursor.next();
  } else {
    throw e;
origin: com.h2database/h2

private Set<Integer> collectReferencedChunks() {
  long testVersion = lastChunk.version;
  DataUtils.checkArgument(testVersion > 0, "Collect references on version 0");
  long readCount = getFileStore().readCount.get();
  Set<Integer> referenced = new HashSet<>();
  for (Cursor<String, String> c = meta.cursor("root."); c.hasNext();) {
    String key = c.next();
    if (!key.startsWith("root.")) {
      break;
    }
    long pos = DataUtils.parseHexLong(c.getValue());
    if (pos == 0) {
      continue;
    }
    int mapId = DataUtils.parseHexInt(key.substring("root.".length()));
    collectReferencedChunks(referenced, mapId, pos, 0);
  }
  long pos = lastChunk.metaRootPos;
  collectReferencedChunks(referenced, 0, pos, 0);
  readCount = fileStore.readCount.get() - readCount;
  return referenced;
}
origin: com.h2database/h2

Cursor<K, VersionedValue> cursor = map.cursor(null);
while (cursor.hasNext()) {
  K key = cursor.next();
origin: com.h2database/h2

Page lastPage = null;
while (cursor.hasNext()) {
  cursor.next();
  Page p = cursor.getPage();
  if (p == lastPage) {
origin: com.eventsourcing/h2

K k;
try {
  k = cursor.next();
} catch (IllegalStateException e) {
      break;
    cursor.next();
    if (!cursor.hasNext()) {
      break;
    k = cursor.next();
  } else {
    throw e;
origin: org.wowtools/h2

K k;
try {
  k = cursor.next();
} catch (IllegalStateException e) {
      break;
    cursor.next();
    if (!cursor.hasNext()) {
      break;
    k = cursor.next();
  } else {
    throw e;
origin: com.h2database/h2-mvstore

private Set<Integer> collectReferencedChunks() {
  long testVersion = lastChunk.version;
  DataUtils.checkArgument(testVersion > 0, "Collect references on version 0");
  long readCount = getFileStore().readCount.get();
  Set<Integer> referenced = new HashSet<>();
  for (Cursor<String, String> c = meta.cursor("root."); c.hasNext();) {
    String key = c.next();
    if (!key.startsWith("root.")) {
      break;
    }
    long pos = DataUtils.parseHexLong(c.getValue());
    if (pos == 0) {
      continue;
    }
    int mapId = DataUtils.parseHexInt(key.substring("root.".length()));
    collectReferencedChunks(referenced, mapId, pos, 0);
  }
  long pos = lastChunk.metaRootPos;
  collectReferencedChunks(referenced, 0, pos, 0);
  readCount = fileStore.readCount.get() - readCount;
  return referenced;
}
origin: com.eventsourcing/h2

K k;
try {
  k = cursor.next();
} catch (IllegalStateException e) {
      break;
    cursor.next();
    if (!cursor.hasNext()) {
      break;
    k = cursor.next();
  } else {
    throw e;
origin: org.wowtools/h2

K k;
try {
  k = cursor.next();
} catch (IllegalStateException e) {
      break;
    cursor.next();
    if (!cursor.hasNext()) {
      break;
    k = cursor.next();
  } else {
    throw e;
origin: com.eventsourcing/h2

private Set<Integer> collectReferencedChunks() {
  long testVersion = lastChunk.version;
  DataUtils.checkArgument(testVersion > 0, "Collect references on version 0");
  long readCount = getFileStore().readCount;
  Set<Integer> referenced = New.hashSet();
  for (Cursor<String, String> c = meta.cursor("root."); c.hasNext();) {
    String key = c.next();
    if (!key.startsWith("root.")) {
      break;
    }
    long pos = DataUtils.parseHexLong(c.getValue());
    if (pos == 0) {
      continue;
    }
    int mapId = DataUtils.parseHexInt(key.substring("root.".length()));
    collectReferencedChunks(referenced, mapId, pos, 0);
  }
  long pos = lastChunk.metaRootPos;
  collectReferencedChunks(referenced, 0, pos, 0);
  readCount = fileStore.readCount - readCount;
  return referenced;
}
origin: org.wowtools/h2

private Set<Integer> collectReferencedChunks() {
  long testVersion = lastChunk.version;
  DataUtils.checkArgument(testVersion > 0, "Collect references on version 0");
  long readCount = getFileStore().readCount;
  Set<Integer> referenced = New.hashSet();
  for (Cursor<String, String> c = meta.cursor("root."); c.hasNext();) {
    String key = c.next();
    if (!key.startsWith("root.")) {
      break;
    }
    long pos = DataUtils.parseHexLong(c.getValue());
    if (pos == 0) {
      continue;
    }
    int mapId = DataUtils.parseHexInt(key.substring("root.".length()));
    collectReferencedChunks(referenced, mapId, pos, 0);
  }
  long pos = lastChunk.metaRootPos;
  collectReferencedChunks(referenced, 0, pos, 0);
  readCount = fileStore.readCount - readCount;
  return referenced;
}
origin: org.wowtools/h2

Page lastPage = null;
while (cursor.hasNext()) {
  cursor.next();
  Page p = cursor.getPage();
  if (p == lastPage) {
origin: com.eventsourcing/h2

Page lastPage = null;
while (cursor.hasNext()) {
  cursor.next();
  Page p = cursor.getPage();
  if (p == lastPage) {
origin: com.h2database/h2-mvstore

Page lastPage = null;
while (cursor.hasNext()) {
  cursor.next();
  Page p = cursor.getPage();
  if (p == lastPage) {
origin: org.wowtools/h2

VersionedValue data;
synchronized (transaction.store.undoLog) {
  K key = cursor.next();
  data = getValue(key, readLogId, cursor.getValue());
origin: com.eventsourcing/h2

VersionedValue data;
synchronized (transaction.store.undoLog) {
  K key = cursor.next();
  data = getValue(key, readLogId, cursor.getValue());
org.h2.mvstoreCursornext

Popular methods of Cursor

  • getValue
    Get the last read value if there was one.
  • hasNext
  • <init>
  • 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

  • Updating database using SQL prepared statement
  • compareTo (BigDecimal)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • FileOutputStream (java.io)
    A file output stream is an output stream for writing data to aFile or to a FileDescriptor. Whether
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • LogFactory (org.apache.commons.logging)
    A minimal incarnation of Apache Commons Logging's LogFactory API, providing just the common Log look
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
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