Tabnine Logo
TypeCodec$PrimitiveIntCodec.deserializeNoBoxing
Code IndexAdd Tabnine to your IDE (free)

How to use
deserializeNoBoxing
method
in
com.datastax.driver.core.TypeCodec$PrimitiveIntCodec

Best Java code snippets using com.datastax.driver.core.TypeCodec$PrimitiveIntCodec.deserializeNoBoxing (Showing top 13 results out of 315)

origin: com.datastax.cassandra/cassandra-driver-core

 @Override
 public Integer deserialize(ByteBuffer bytes, ProtocolVersion protocolVersion) {
  return bytes == null || bytes.remaining() == 0
    ? null
    : deserializeNoBoxing(bytes, protocolVersion);
 }
}
origin: com.yugabyte/cassandra-driver-core

  @Override
  public Integer deserialize(ByteBuffer bytes, ProtocolVersion protocolVersion) {
    return bytes == null || bytes.remaining() == 0 ? null : deserializeNoBoxing(bytes, protocolVersion);
  }
}
origin: com.facebook.presto.cassandra/cassandra-driver

  @Override
  public Integer deserialize(ByteBuffer bytes, ProtocolVersion protocolVersion) {
    return bytes == null || bytes.remaining() == 0 ? null : deserializeNoBoxing(bytes, protocolVersion);
  }
}
origin: zhicwu/cassandra-jdbc-driver

@Override
public String deserialize(ByteBuffer bytes, ProtocolVersion protocolVersion) {
  if (bytes == null || bytes.remaining() == 0)
    return null;
  int unsigned = cint().deserializeNoBoxing(bytes, protocolVersion);
  int signed = fromUnsignedToSignedInt(unsigned);
  return FORMATTER.print(EPOCH.plusDays(signed));
}
origin: io.prestosql.cassandra/cassandra-driver

/**
 * {@inheritDoc}
 */
@Override
public int getInt(int i) {
  ByteBuffer value = getValue(i);
  TypeCodec<Integer> codec = codecFor(i, Integer.class);
  if (codec instanceof TypeCodec.PrimitiveIntCodec)
    return ((TypeCodec.PrimitiveIntCodec) codec).deserializeNoBoxing(value, protocolVersion);
  else
    return codec.deserialize(value, protocolVersion);
}
origin: io.prestosql.cassandra/cassandra-driver

  @Override
  public Integer deserialize(ByteBuffer bytes, ProtocolVersion protocolVersion) {
    return bytes == null || bytes.remaining() == 0 ? null : deserializeNoBoxing(bytes, protocolVersion);
  }
}
origin: com.facebook.presto.cassandra/cassandra-driver

/**
 * {@inheritDoc}
 */
@Override
public int getInt(int i) {
  ByteBuffer value = getValue(i);
  TypeCodec<Integer> codec = codecFor(i, Integer.class);
  if (codec instanceof TypeCodec.PrimitiveIntCodec)
    return ((TypeCodec.PrimitiveIntCodec) codec).deserializeNoBoxing(value, protocolVersion);
  else
    return codec.deserialize(value, protocolVersion);
}
origin: com.datastax.cassandra/cassandra-driver-extras

@Override
public LocalDate deserialize(ByteBuffer bytes, ProtocolVersion protocolVersion) {
 if (bytes == null || bytes.remaining() == 0) return null;
 int unsigned = cint().deserializeNoBoxing(bytes, protocolVersion);
 int signed = fromUnsignedToSignedInt(unsigned);
 return EPOCH.plusDays(signed);
}
origin: com.datastax.cassandra/cassandra-driver-extras

@Override
public int deserializeNoBoxing(ByteBuffer bytes, ProtocolVersion protocolVersion) {
 if (bytes == null || bytes.remaining() == 0) return 0;
 return fromUnsignedToSignedInt(cint().deserializeNoBoxing(bytes, protocolVersion));
}
origin: com.yugabyte/cassandra-driver-core

/**
 * {@inheritDoc}
 */
@Override
public int getInt(int i) {
  ByteBuffer value = getValue(i);
  TypeCodec<Integer> codec = codecFor(i, Integer.class);
  if (codec instanceof TypeCodec.PrimitiveIntCodec)
    return ((TypeCodec.PrimitiveIntCodec) codec).deserializeNoBoxing(value, protocolVersion);
  else
    return codec.deserialize(value, protocolVersion);
}
origin: com.datastax.cassandra/cassandra-driver-extras

@Override
public java.time.LocalDate deserialize(ByteBuffer bytes, ProtocolVersion protocolVersion) {
 if (bytes == null || bytes.remaining() == 0) return null;
 int unsigned = cint().deserializeNoBoxing(bytes, protocolVersion);
 int signed = fromUnsignedToSignedInt(unsigned);
 return EPOCH.plusDays(signed);
}
origin: zhicwu/cassandra-jdbc-driver

@Override
public Date deserialize(ByteBuffer bytes, ProtocolVersion protocolVersion) {
  if (bytes == null || bytes.remaining() == 0)
    return null;
  int unsigned = cint().deserializeNoBoxing(bytes, protocolVersion);
  int signed = fromUnsignedToSignedInt(unsigned);
  return new Date(EPOCH.plusDays(signed).toDate().getTime());
}
origin: com.datastax.cassandra/cassandra-driver-core

/** {@inheritDoc} */
@Override
public int getInt(int i) {
 ByteBuffer value = getValue(i);
 TypeCodec<Integer> codec = codecFor(i, Integer.class);
 if (codec instanceof TypeCodec.PrimitiveIntCodec)
  return ((TypeCodec.PrimitiveIntCodec) codec).deserializeNoBoxing(value, protocolVersion);
 else return codec.deserialize(value, protocolVersion);
}
com.datastax.driver.coreTypeCodec$PrimitiveIntCodecdeserializeNoBoxing

Popular methods of TypeCodec$PrimitiveIntCodec

  • serializeNoBoxing
  • deserialize
  • serialize

Popular in Java

  • Parsing JSON documents to java classes using gson
  • setScale (BigDecimal)
  • getSharedPreferences (Context)
  • findViewById (Activity)
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • JComboBox (javax.swing)
  • JOptionPane (javax.swing)
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • Top PhpStorm 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