Examples of HeapRuntimeException


Examples of net.sf.joafip.kvstore.service.HeapRuntimeException

    try {
      readData = heapDataManager.readDataRecord(dataRecordIdentifier);
      heapDataManager.writeDataRecord(dataRecordIdentifier,
          marshallValue(value));
    } catch (HeapException exception) {
      throw new HeapRuntimeException(exception);
    }
    return readData == null ? null : unmarshallValue(readData);
  }
View Full Code Here

Examples of net.sf.joafip.kvstore.service.HeapRuntimeException

      byte[] readData;
      try {
        readData = heapDataManager.readDataRecord(dataRecordIdentifier);
        heapDataManager.deleteDataRecord(dataRecordIdentifier);
      } catch (HeapException exception) {
        throw new HeapRuntimeException(exception);
      }
      removedValue = readData == null ? null : unmarshallValue(readData);
    } else {
      removedValue = null;
    }
View Full Code Here

Examples of net.sf.joafip.kvstore.service.HeapRuntimeException

  public void clear() {
    if (fromKey == null && toKey == null) {
      try {
        heapDataManager.clear();
      } catch (HeapException exception) {
        throw new HeapRuntimeException(exception);
      }
    } else {
      Iterator<Entry<K, V>> iterator = entrySet.iterator();
      while (iterator.hasNext()) {
        iterator.next();
View Full Code Here

Examples of net.sf.joafip.kvstore.service.HeapRuntimeException

    try {
      final DataRecordIdentifier found = heapDataManager
          .floorDataRecordIdentifier(createDataRecordIdentifier(key));
      return assertLowerBound(found);
    } catch (HeapException exception) {
      throw new HeapRuntimeException(exception);
    }
  }
View Full Code Here

Examples of net.sf.joafip.kvstore.service.HeapRuntimeException

    try {
      final DataRecordIdentifier found = heapDataManager
          .lowerDataRecordIdentifier(createDataRecordIdentifier(key));
      return assertLowerBound(found);
    } catch (HeapException exception) {
      throw new HeapRuntimeException(exception);
    }
  }
View Full Code Here

Examples of net.sf.joafip.kvstore.service.HeapRuntimeException

        dataRecordIdentifier = compare(found.getKey(), fromKey) < 0 ? found
            : null;
      }
      return dataRecordIdentifier;
    } catch (HeapException exception) {
      throw new HeapRuntimeException(exception);
    }
  }
View Full Code Here

Examples of net.sf.joafip.kvstore.service.HeapRuntimeException

    try {
      final DataRecordIdentifier found = heapDataManager
          .ceilingDataRecordIdentifier(createDataRecordIdentifier(key));
      return asertUpperBound(found);
    } catch (HeapException exception) {
      throw new HeapRuntimeException(exception);
    }
  }
View Full Code Here

Examples of net.sf.joafip.kvstore.service.HeapRuntimeException

    try {
      final DataRecordIdentifier found = heapDataManager
          .higherDataRecordIdentifier(createDataRecordIdentifier(key));
      return asertUpperBound(found);
    } catch (HeapException exception) {
      throw new HeapRuntimeException(exception);
    }
  }
View Full Code Here

Examples of net.sf.joafip.kvstore.service.HeapRuntimeException

        dataRecordIdentifier = compare(found.getKey(), toKey) > 0 ? found
            : null;
      }
      return dataRecordIdentifier;
    } catch (HeapException exception) {
      throw new HeapRuntimeException(exception);
    }
  }
View Full Code Here

Examples of net.sf.joafip.kvstore.service.HeapRuntimeException

  private DataRecordIdentifier createDataRecordIdentifier(final Object key) {
    try {
      return keyManager.createKey(key);
    } catch (HeapException exception) {
      throw new HeapRuntimeException(exception);
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.