congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
Store.get
Code IndexAdd Tabnine to your IDE (free)

How to use
get
method
in
jetbrains.exodus.env.Store

Best Java code snippets using jetbrains.exodus.env.Store.get (Showing top 6 results out of 315)

origin: io.permazen/permazen-kv-xodus

@Override
public byte[] get(byte[] key) {
  key.getClass();
  Preconditions.checkState(!this.closed.get(), "transaction closed");
  final ByteIterable bytes = this.store.get(this.tx, new ArrayByteIterable(key));
  return bytes != null ? XodusKVStore.get(bytes, true) : null;
}
origin: theonedev/onedev

@Nullable 
protected byte[] readBytes(Store store, Transaction txn, ByteIterable key) {
  ByteIterable value = store.get(txn, key);
  if (value != null) 
    return Arrays.copyOf(value.getBytesUnsafe(), value.getLength());
  else
    return null;
}

origin: lmdbjava/benchmarks

@Benchmark
public void readKey(final Reader r, final Blackhole bh) {
 for (final int key : r.keys) {
  if (r.intKey) {
   final ByteIterable val = r.store.get(r.tx, intToEntry(key));
   if (val != null) {
    bh.consume(val.getBytesUnsafe());
   }
  } else {
   final ByteIterable val = r.store.get(r.tx, stringToEntry(r.padKey(key)));
   if (val != null) {
    bh.consume(val.getBytesUnsafe());
   }
  }
 }
}
origin: pwm-project/pwm

@Override
public String get( final LocalDB.DB db, final String key ) throws LocalDBException
{
  checkStatus( false );
  return environment.computeInReadonlyTransaction( transaction ->
  {
    final Store store = getStore( db );
    final ByteIterable returnValue = store.get( transaction, bindMachine.keyToEntry( key ) );
    if ( returnValue != null )
    {
      return bindMachine.entryToValue( returnValue );
    }
    return null;
  } );
}
origin: pwm-project/pwm

@LocalDB.WriteOperation
public boolean putIfAbsent( final LocalDB.DB db, final String key, final String value ) throws LocalDBException
{
  checkStatus( true );
  return environment.computeInTransaction( transaction ->
  {
    final ByteIterable k = bindMachine.keyToEntry( key );
    final ByteIterable v = bindMachine.valueToEntry( value );
    final Store store = getStore( db );
    final ByteIterable existingValue = store.get( transaction, k );
    if ( existingValue != null )
    {
      return false;
    }
    return store.put( transaction, k, v );
  } );
}
origin: org.jetbrains.xodus/xodus-query

ByteIterable oldEntityIdEntry = indexTable.getDatabase().get(txn.getEnvironmentTransaction(), propsEntry);
assert oldEntityIdEntry != null;
long oldEntityId = LongBinding.compressedEntryToLong(oldEntityIdEntry);
jetbrains.exodus.envStoreget

Popular methods of Store

  • delete
  • openCursor
  • put
  • add
  • count
  • getName

Popular in Java

  • Running tasks concurrently on multiple threads
  • scheduleAtFixedRate (ScheduledExecutorService)
  • setScale (BigDecimal)
  • onRequestPermissionsResult (Fragment)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • Kernel (java.awt.image)
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Best IntelliJ plugins
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