Codota Logo
SnapshotsStreamMetadataTable$Metadata
Code IndexAdd Codota to your IDE (free)

How to use
SnapshotsStreamMetadataTable$Metadata
in
com.palantir.atlasdb.todo.generated

Best Java code snippets using com.palantir.atlasdb.todo.generated.SnapshotsStreamMetadataTable$Metadata (Showing top 12 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Point p =
  • Codota Iconnew Point(x, y)
  • Codota Iconnew Point()
  • Codota IconMouseEvent e;e.getPoint()
  • Smart code suggestions by Codota
}
origin: palantir/atlasdb

public com.palantir.atlasdb.protos.generated.StreamPersistence.StreamMetadata getMetadata() {
  byte[] bytes = row.getColumns().get(PtBytes.toCachedBytes("md"));
  if (bytes == null) {
    return null;
  }
  Metadata value = Metadata.BYTES_HYDRATOR.hydrateFromBytes(bytes);
  return value.getValue();
}
origin: palantir/atlasdb

public void putMetadata(SnapshotsStreamMetadataRow row, com.palantir.atlasdb.protos.generated.StreamPersistence.StreamMetadata value) {
  put(ImmutableMultimap.of(row, Metadata.of(value)));
}
origin: palantir/atlasdb

  @Override
  public Metadata hydrateFromBytes(byte[] bytes) {
    bytes = CompressionUtils.decompress(bytes, Compression.NONE);
    try {
      return of(com.palantir.atlasdb.protos.generated.StreamPersistence.StreamMetadata.parseFrom(bytes));
    } catch (InvalidProtocolBufferException e) {
      throw Throwables.throwUncheckedException(e);
    }
  }
};
origin: palantir/atlasdb

public Map<SnapshotsStreamMetadataRow, com.palantir.atlasdb.protos.generated.StreamPersistence.StreamMetadata> getMetadatas(Collection<SnapshotsStreamMetadataRow> rows) {
  Map<Cell, SnapshotsStreamMetadataRow> cells = Maps.newHashMapWithExpectedSize(rows.size());
  for (SnapshotsStreamMetadataRow row : rows) {
    cells.put(Cell.create(row.persistToBytes(), PtBytes.toCachedBytes("md")), row);
  }
  Map<Cell, byte[]> results = t.get(tableRef, cells.keySet());
  Map<SnapshotsStreamMetadataRow, com.palantir.atlasdb.protos.generated.StreamPersistence.StreamMetadata> ret = Maps.newHashMapWithExpectedSize(results.size());
  for (Entry<Cell, byte[]> e : results.entrySet()) {
    com.palantir.atlasdb.protos.generated.StreamPersistence.StreamMetadata val = Metadata.BYTES_HYDRATOR.hydrateFromBytes(e.getValue()).getValue();
    ret.put(cells.get(e.getKey()), val);
  }
  return ret;
}
origin: palantir/atlasdb

public static Metadata of(com.palantir.atlasdb.protos.generated.StreamPersistence.StreamMetadata value) {
  return new Metadata(value);
}
origin: palantir/atlasdb

public void putMetadata(Map<SnapshotsStreamMetadataRow, com.palantir.atlasdb.protos.generated.StreamPersistence.StreamMetadata> map) {
  Map<SnapshotsStreamMetadataRow, SnapshotsStreamMetadataNamedColumnValue<?>> toPut = Maps.newHashMapWithExpectedSize(map.size());
  for (Entry<SnapshotsStreamMetadataRow, com.palantir.atlasdb.protos.generated.StreamPersistence.StreamMetadata> e : map.entrySet()) {
    toPut.put(e.getKey(), Metadata.of(e.getValue()));
  }
  put(Multimaps.forMap(toPut));
}
origin: com.palantir.atlasdb/atlasdb-ete-test-utils

  @Override
  public Metadata hydrateFromBytes(byte[] bytes) {
    bytes = CompressionUtils.decompress(bytes, Compression.NONE);
    try {
      return of(com.palantir.atlasdb.protos.generated.StreamPersistence.StreamMetadata.parseFrom(bytes));
    } catch (InvalidProtocolBufferException e) {
      throw Throwables.throwUncheckedException(e);
    }
  }
};
origin: com.palantir.atlasdb/atlasdb-ete-test-utils

public void putMetadata(Map<SnapshotsStreamMetadataRow, com.palantir.atlasdb.protos.generated.StreamPersistence.StreamMetadata> map) {
  Map<SnapshotsStreamMetadataRow, SnapshotsStreamMetadataNamedColumnValue<?>> toPut = Maps.newHashMapWithExpectedSize(map.size());
  for (Entry<SnapshotsStreamMetadataRow, com.palantir.atlasdb.protos.generated.StreamPersistence.StreamMetadata> e : map.entrySet()) {
    toPut.put(e.getKey(), Metadata.of(e.getValue()));
  }
  put(Multimaps.forMap(toPut));
}
origin: com.palantir.atlasdb/atlasdb-ete-test-utils

public Map<SnapshotsStreamMetadataRow, com.palantir.atlasdb.protos.generated.StreamPersistence.StreamMetadata> getMetadatas(Collection<SnapshotsStreamMetadataRow> rows) {
  Map<Cell, SnapshotsStreamMetadataRow> cells = Maps.newHashMapWithExpectedSize(rows.size());
  for (SnapshotsStreamMetadataRow row : rows) {
    cells.put(Cell.create(row.persistToBytes(), PtBytes.toCachedBytes("md")), row);
  }
  Map<Cell, byte[]> results = t.get(tableRef, cells.keySet());
  Map<SnapshotsStreamMetadataRow, com.palantir.atlasdb.protos.generated.StreamPersistence.StreamMetadata> ret = Maps.newHashMapWithExpectedSize(results.size());
  for (Entry<Cell, byte[]> e : results.entrySet()) {
    com.palantir.atlasdb.protos.generated.StreamPersistence.StreamMetadata val = Metadata.BYTES_HYDRATOR.hydrateFromBytes(e.getValue()).getValue();
    ret.put(cells.get(e.getKey()), val);
  }
  return ret;
}
origin: com.palantir.atlasdb/atlasdb-ete-test-utils

public void putMetadata(SnapshotsStreamMetadataRow row, com.palantir.atlasdb.protos.generated.StreamPersistence.StreamMetadata value) {
  put(ImmutableMultimap.of(row, Metadata.of(value)));
}
origin: com.palantir.atlasdb/atlasdb-ete-test-utils

public static Metadata of(com.palantir.atlasdb.protos.generated.StreamPersistence.StreamMetadata value) {
  return new Metadata(value);
}
origin: com.palantir.atlasdb/atlasdb-ete-test-utils

public com.palantir.atlasdb.protos.generated.StreamPersistence.StreamMetadata getMetadata() {
  byte[] bytes = row.getColumns().get(PtBytes.toCachedBytes("md"));
  if (bytes == null) {
    return null;
  }
  Metadata value = Metadata.BYTES_HYDRATOR.hydrateFromBytes(bytes);
  return value.getValue();
}
com.palantir.atlasdb.todo.generatedSnapshotsStreamMetadataTable$Metadata

Javadoc

 
Column value description { 
type: com.palantir.atlasdb.protos.generated.StreamPersistence.StreamMetadata; 
name: "StreamMetadata" 
field { 
name: "status" 
number: 1 
label: LABEL_REQUIRED 
type: TYPE_ENUM 
type_name: ".com.palantir.atlasdb.protos.generated.Status" 
} 
field { 
name: "length" 
number: 2 
label: LABEL_REQUIRED 
type: TYPE_INT64 
} 
field { 
name: "hash" 
number: 3 
label: LABEL_REQUIRED 
type: TYPE_BYTES 
} 
} 

Most used methods

  • <init>
  • getValue
  • of

Popular in Java

  • Start an intent from android
  • getSystemService (Context)
  • getContentResolver (Context)
  • setContentView (Activity)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • IOException (java.io)
    Signals that an I/O exception of some sort has occurred. This class is the general class of exceptio
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
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