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

How to use
put
method
in
org.eclipse.jgit.storage.dht.spi.memory.MemTable

Best Java code snippets using org.eclipse.jgit.storage.dht.spi.memory.MemTable.put (Showing top 8 results out of 315)

origin: org.eclipse.jgit/org.eclipse.jgit.storage.dht

public void put(PackChunk.Members chunk, WriteBuffer buffer)
    throws DhtException {
  byte[] row = chunk.getChunkKey().asBytes();
  if (chunk.hasChunkData())
    table.put(row, colData.name(), chunk.getChunkData());
  if (chunk.hasChunkIndex())
    table.put(row, colIndex.name(), chunk.getChunkIndex());
  if (chunk.hasMeta())
    table.put(row, colMeta.name(), chunk.getMeta().toByteArray());
}
origin: com.madgag/org.eclipse.jgit.storage.dht

public void put(PackChunk.Members chunk, WriteBuffer buffer)
    throws DhtException {
  byte[] row = chunk.getChunkKey().asBytes();
  if (chunk.hasChunkData())
    table.put(row, colData.name(), chunk.getChunkData());
  if (chunk.hasChunkIndex())
    table.put(row, colIndex.name(), chunk.getChunkIndex());
  if (chunk.hasMeta())
    table.put(row, colMeta.name(), chunk.getMeta().toByteArray());
}
origin: org.eclipse.jgit/org.eclipse.jgit.storage.dht

public void put(RepositoryKey repo, CachedPackInfo info, WriteBuffer buffer)
    throws DhtException {
  CachedPackKey key = CachedPackKey.fromInfo(info);
  table.put(repo.asBytes(),
      colCachedPack.append(key.asBytes()),
      info.toByteArray());
}
origin: com.madgag/org.eclipse.jgit.storage.dht

public void put(RepositoryKey repo, CachedPackInfo info, WriteBuffer buffer)
    throws DhtException {
  CachedPackKey key = CachedPackKey.fromInfo(info);
  table.put(repo.asBytes(),
      colCachedPack.append(key.asBytes()),
      info.toByteArray());
}
origin: org.eclipse.jgit/org.eclipse.jgit.storage.dht

public void put(RepositoryKey repo, ChunkInfo info, WriteBuffer buffer)
    throws DhtException {
  table.put(repo.asBytes(),
      colChunkInfo.append(info.getChunkKey().asBytes()),
      info.getData().toByteArray());
}
origin: com.madgag/org.eclipse.jgit.storage.dht

public void put(RepositoryKey repo, ChunkInfo info, WriteBuffer buffer)
    throws DhtException {
  table.put(repo.asBytes(),
      colChunkInfo.append(info.getChunkKey().asBytes()),
      info.getData().toByteArray());
}
origin: org.eclipse.jgit/org.eclipse.jgit.storage.dht

public void add(ObjectIndexKey objId, ObjectInfo info, WriteBuffer buffer)
    throws DhtException {
  ChunkKey chunk = info.getChunkKey();
  table.put(objId.asBytes(), colInfo.append(chunk.asBytes()),
      info.getData().toByteArray());
}
origin: com.madgag/org.eclipse.jgit.storage.dht

public void add(ObjectIndexKey objId, ObjectInfo info, WriteBuffer buffer)
    throws DhtException {
  ChunkKey chunk = info.getChunkKey();
  table.put(objId.asBytes(), colInfo.append(chunk.asBytes()),
      info.getData().toByteArray());
}
org.eclipse.jgit.storage.dht.spi.memoryMemTableput

Javadoc

Put a value into a cell.

Popular methods of MemTable

  • compareAndSet
    Compare and put or delete a cell. This method performs an atomic compare-and-swap operation on the n
  • delete
    Delete a cell.
  • deleteRow
    Delete an entire row.
  • get
    Get a single cell, or null.
  • same
  • scanFamily
    Scan all cells in a row.

Popular in Java

  • Running tasks concurrently on multiple threads
  • startActivity (Activity)
  • findViewById (Activity)
  • compareTo (BigDecimal)
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Top 12 Jupyter Notebook extensions
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