Codota Logo
ReadCommand$LegacyType.fromSerializedValue
Code IndexAdd Codota to your IDE (free)

How to use
fromSerializedValue
method
in
org.apache.cassandra.db.ReadCommand$LegacyType

Best Java code snippets using org.apache.cassandra.db.ReadCommand$LegacyType.fromSerializedValue (Showing top 3 results out of 315)

  • Common ways to obtain ReadCommand$LegacyType
private void myMethod () {
ReadCommand$LegacyType r =
  • Codota IconReadCommand.LegacyType readCommandLegacyType;DataInputPlus dataInputPlus;readCommandLegacyType.fromSerializedValue(dataInputPlus.readByte())
  • Smart code suggestions by Codota
}
origin: com.strapdata.cassandra/cassandra-all

public ReadCommand deserialize(DataInputPlus in, int version) throws IOException
{
  assert version < MessagingService.VERSION_30;
  LegacyType msgType = LegacyType.fromSerializedValue(in.readByte());
  boolean isDigest = in.readBoolean();
  String keyspaceName = in.readUTF();
  ByteBuffer key = ByteBufferUtil.readWithShortLength(in);
  String cfName = in.readUTF();
  long nowInMillis = in.readLong();
  int nowInSeconds = (int) (nowInMillis / 1000);  // convert from millis to seconds
  CFMetaData metadata = Schema.instance.getCFMetaData(keyspaceName, cfName);
  DecoratedKey dk = metadata.partitioner.decorateKey(key);
  switch (msgType)
  {
    case GET_BY_NAMES:
      return deserializeNamesCommand(in, isDigest, metadata, dk, nowInSeconds, version);
    case GET_SLICES:
      return deserializeSliceCommand(in, isDigest, metadata, dk, nowInSeconds, version);
    default:
      throw new AssertionError();
  }
}
origin: org.apache.cassandra/cassandra-all

public ReadCommand deserialize(DataInputPlus in, int version) throws IOException
{
  assert version < MessagingService.VERSION_30;
  LegacyType msgType = LegacyType.fromSerializedValue(in.readByte());
  boolean isDigest = in.readBoolean();
  String keyspaceName = in.readUTF();
  ByteBuffer key = ByteBufferUtil.readWithShortLength(in);
  String cfName = in.readUTF();
  long nowInMillis = in.readLong();
  int nowInSeconds = (int) (nowInMillis / 1000);  // convert from millis to seconds
  CFMetaData metadata = Schema.instance.getCFMetaData(keyspaceName, cfName);
  DecoratedKey dk = metadata.partitioner.decorateKey(key);
  switch (msgType)
  {
    case GET_BY_NAMES:
      return deserializeNamesCommand(in, isDigest, metadata, dk, nowInSeconds, version);
    case GET_SLICES:
      return deserializeSliceCommand(in, isDigest, metadata, dk, nowInSeconds, version);
    default:
      throw new AssertionError();
  }
}
origin: jsevellec/cassandra-unit

public ReadCommand deserialize(DataInputPlus in, int version) throws IOException
{
  assert version < MessagingService.VERSION_30;
  LegacyType msgType = LegacyType.fromSerializedValue(in.readByte());
  boolean isDigest = in.readBoolean();
  String keyspaceName = in.readUTF();
  ByteBuffer key = ByteBufferUtil.readWithShortLength(in);
  String cfName = in.readUTF();
  long nowInMillis = in.readLong();
  int nowInSeconds = (int) (nowInMillis / 1000);  // convert from millis to seconds
  CFMetaData metadata = Schema.instance.getCFMetaData(keyspaceName, cfName);
  DecoratedKey dk = metadata.partitioner.decorateKey(key);
  switch (msgType)
  {
    case GET_BY_NAMES:
      return deserializeNamesCommand(in, isDigest, metadata, dk, nowInSeconds, version);
    case GET_SLICES:
      return deserializeSliceCommand(in, isDigest, metadata, dk, nowInSeconds, version);
    default:
      throw new AssertionError();
  }
}
org.apache.cassandra.dbReadCommand$LegacyTypefromSerializedValue

Popular methods of ReadCommand$LegacyType

  • fromPartitionFilterKind

Popular in Java

  • Parsing JSON documents to java classes using gson
  • onRequestPermissionsResult (Fragment)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • setContentView (Activity)
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
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