Tabnine Logo
Cell$Serializer
Code IndexAdd Tabnine to your IDE (free)

How to use
Cell$Serializer
in
org.apache.cassandra.db.rows

Best Java code snippets using org.apache.cassandra.db.rows.Cell$Serializer (Showing top 20 results out of 315)

origin: com.strapdata.cassandra/cassandra-all

};
public static final Serializer serializer = new BufferCell.Serializer();
origin: com.netflix.sstableadaptor/sstable-adaptor-cassandra

  Cell.serializer.serialize((Cell) cd, column, out, pkLiveness, header);
else
  writeComplexColumn((ComplexColumnData) cd, column, (flags & HAS_COMPLEX_DELETION) != 0, pkLiveness, header, out);
origin: com.strapdata.cassandra/cassandra-all

  size += Cell.serializer.serializedSize((Cell) data, column, pkLiveness, header);
else
  size += sizeOfComplexColumn((ComplexColumnData) data, column, hasComplexDeletion, pkLiveness, header);
origin: jsevellec/cassandra-unit

};
public static final Serializer serializer = new BufferCell.Serializer();
origin: org.apache.cassandra/cassandra-all

};
public static final Serializer serializer = new BufferCell.Serializer();
origin: com.netflix.sstableadaptor/sstable-adaptor-cassandra

};
public static final Serializer serializer = new BufferCell.Serializer();
origin: org.apache.cassandra/cassandra-all

  Cell.serializer.serialize((Cell) cd, column, out, pkLiveness, header);
else
  writeComplexColumn((ComplexColumnData) cd, column, (flags & HAS_COMPLEX_DELETION) != 0, pkLiveness, header, out);
origin: com.strapdata.cassandra/cassandra-all

  Cell.serializer.serialize((Cell) cd, column, out, pkLiveness, header);
else
  writeComplexColumn((ComplexColumnData) cd, column, (flags & HAS_COMPLEX_DELETION) != 0, pkLiveness, header, out);
origin: jsevellec/cassandra-unit

  Cell.serializer.serialize((Cell) cd, column, out, pkLiveness, header);
else
  writeComplexColumn((ComplexColumnData) cd, column, (flags & HAS_COMPLEX_DELETION) != 0, pkLiveness, header, out);
origin: com.netflix.sstableadaptor/sstable-adaptor-cassandra

  size += Cell.serializer.serializedSize((Cell) data, column, pkLiveness, header);
else
  size += sizeOfComplexColumn((ComplexColumnData) data, column, hasComplexDeletion, pkLiveness, header);
origin: jsevellec/cassandra-unit

  size += Cell.serializer.serializedSize((Cell) data, column, pkLiveness, header);
else
  size += sizeOfComplexColumn((ComplexColumnData) data, column, hasComplexDeletion, pkLiveness, header);
origin: org.apache.cassandra/cassandra-all

  size += Cell.serializer.serializedSize((Cell) data, column, pkLiveness, header);
else
  size += sizeOfComplexColumn((ComplexColumnData) data, column, hasComplexDeletion, pkLiveness, header);
origin: com.strapdata.cassandra/cassandra-all

private void readComplexColumn(ColumnDefinition column, DataInputPlus in, SerializationHeader header, SerializationHelper helper, boolean hasComplexDeletion, Row.Builder builder, LivenessInfo rowLiveness)
throws IOException
{
  if (helper.includes(column))
  {
    helper.startOfComplexColumn(column);
    if (hasComplexDeletion)
    {
      DeletionTime complexDeletion = header.readDeletionTime(in);
      if (!helper.isDroppedComplexDeletion(complexDeletion))
        builder.addComplexDeletion(column, complexDeletion);
    }
    int count = (int) in.readUnsignedVInt();
    while (--count >= 0)
    {
      Cell cell = Cell.serializer.deserialize(in, rowLiveness, column, header, helper);
      if (helper.includes(cell, rowLiveness) && !helper.isDropped(cell, true))
        builder.addCell(cell);
    }
    helper.endOfComplexColumn();
  }
  else
  {
    skipComplexColumn(in, column, header, hasComplexDeletion);
  }
}
origin: com.netflix.sstableadaptor/sstable-adaptor-cassandra

private void readComplexColumn(ColumnDefinition column, DataInputPlus in, SerializationHeader header, SerializationHelper helper, boolean hasComplexDeletion, Row.Builder builder, LivenessInfo rowLiveness)
throws IOException
{
  if (helper.includes(column))
  {
    helper.startOfComplexColumn(column);
    if (hasComplexDeletion)
    {
      DeletionTime complexDeletion = header.readDeletionTime(in);
      if (!helper.isDroppedComplexDeletion(complexDeletion))
        builder.addComplexDeletion(column, complexDeletion);
    }
    int count = (int) in.readUnsignedVInt();
    while (--count >= 0)
    {
      Cell cell = Cell.serializer.deserialize(in, rowLiveness, column, header, helper);
      if (helper.includes(cell, rowLiveness) && !helper.isDropped(cell, true))
        builder.addCell(cell);
    }
    helper.endOfComplexColumn();
  }
  else
  {
    skipComplexColumn(in, column, header, hasComplexDeletion);
  }
}
origin: jsevellec/cassandra-unit

private void readComplexColumn(ColumnDefinition column, DataInputPlus in, SerializationHeader header, SerializationHelper helper, boolean hasComplexDeletion, Row.Builder builder, LivenessInfo rowLiveness)
throws IOException
{
  if (helper.includes(column))
  {
    helper.startOfComplexColumn(column);
    if (hasComplexDeletion)
    {
      DeletionTime complexDeletion = header.readDeletionTime(in);
      if (!helper.isDroppedComplexDeletion(complexDeletion))
        builder.addComplexDeletion(column, complexDeletion);
    }
    int count = (int) in.readUnsignedVInt();
    while (--count >= 0)
    {
      Cell cell = Cell.serializer.deserialize(in, rowLiveness, column, header, helper);
      if (helper.includes(cell, rowLiveness) && !helper.isDropped(cell, true))
        builder.addCell(cell);
    }
    helper.endOfComplexColumn();
  }
  else
  {
    skipComplexColumn(in, column, header, hasComplexDeletion);
  }
}
origin: org.apache.cassandra/cassandra-all

private void readComplexColumn(ColumnDefinition column, DataInputPlus in, SerializationHeader header, SerializationHelper helper, boolean hasComplexDeletion, Row.Builder builder, LivenessInfo rowLiveness)
throws IOException
{
  if (helper.includes(column))
  {
    helper.startOfComplexColumn(column);
    if (hasComplexDeletion)
    {
      DeletionTime complexDeletion = header.readDeletionTime(in);
      if (!helper.isDroppedComplexDeletion(complexDeletion))
        builder.addComplexDeletion(column, complexDeletion);
    }
    int count = (int) in.readUnsignedVInt();
    while (--count >= 0)
    {
      Cell cell = Cell.serializer.deserialize(in, rowLiveness, column, header, helper);
      if (helper.includes(cell, rowLiveness) && !helper.isDropped(cell, true))
        builder.addCell(cell);
    }
    helper.endOfComplexColumn();
  }
  else
  {
    skipComplexColumn(in, column, header, hasComplexDeletion);
  }
}
origin: com.netflix.sstableadaptor/sstable-adaptor-cassandra

private void readSimpleColumn(ColumnDefinition column, DataInputPlus in, SerializationHeader header, SerializationHelper helper, Row.Builder builder, LivenessInfo rowLiveness)
throws IOException
{
  if (helper.includes(column))
  {
    Cell cell = Cell.serializer.deserialize(in, rowLiveness, column, header, helper);
    if (helper.includes(cell, rowLiveness) && !helper.isDropped(cell, false))
      builder.addCell(cell);
  }
  else
  {
    Cell.serializer.skip(in, column, header);
  }
}
origin: com.strapdata.cassandra/cassandra-all

private void readSimpleColumn(ColumnDefinition column, DataInputPlus in, SerializationHeader header, SerializationHelper helper, Row.Builder builder, LivenessInfo rowLiveness)
throws IOException
{
  if (helper.includes(column))
  {
    Cell cell = Cell.serializer.deserialize(in, rowLiveness, column, header, helper);
    if (helper.includes(cell, rowLiveness) && !helper.isDropped(cell, false))
      builder.addCell(cell);
  }
  else
  {
    Cell.serializer.skip(in, column, header);
  }
}
origin: org.apache.cassandra/cassandra-all

private void readSimpleColumn(ColumnDefinition column, DataInputPlus in, SerializationHeader header, SerializationHelper helper, Row.Builder builder, LivenessInfo rowLiveness)
throws IOException
{
  if (helper.includes(column))
  {
    Cell cell = Cell.serializer.deserialize(in, rowLiveness, column, header, helper);
    if (helper.includes(cell, rowLiveness) && !helper.isDropped(cell, false))
      builder.addCell(cell);
  }
  else
  {
    Cell.serializer.skip(in, column, header);
  }
}
origin: jsevellec/cassandra-unit

private void readSimpleColumn(ColumnDefinition column, DataInputPlus in, SerializationHeader header, SerializationHelper helper, Row.Builder builder, LivenessInfo rowLiveness)
throws IOException
{
  if (helper.includes(column))
  {
    Cell cell = Cell.serializer.deserialize(in, rowLiveness, column, header, helper);
    if (helper.includes(cell, rowLiveness) && !helper.isDropped(cell, false))
      builder.addCell(cell);
  }
  else
  {
    Cell.serializer.skip(in, column, header);
  }
}
org.apache.cassandra.db.rowsCell$Serializer

Javadoc

The serialization format for cell is: [ flags ][ timestamp ][ deletion time ][ ttl ][ path size ][ path ][ value size ][ value ] [ 1b ][ 8b (vint) ][ 4b (vint) ][ 4b (vint) ][ 4b (vint) ][ arb ][ 4b (vint) ][ arb ] where not all field are always present (in fact, only the [ flags ] are guaranteed to be present). The fields have the following meaning: - [ flags ] is the cell flags. It is a byte for which each bit represents a flag whose meaning is explained below (*_MASK constants) - [ timestamp ] is the cell timestamp. Present unless the cell has the USE_TIMESTAMP_MASK. - [ deletion time]: the local deletion time for the cell. Present if either the cell is deleted (IS_DELETED_MASK) or it is expiring (IS_EXPIRING_MASK) but doesn't have the USE_ROW_TTL_MASK. - [ ttl ]: the ttl for the cell. Present if the row is expiring (IS_EXPIRING_MASK) but doesn't have the USE_ROW_TTL_MASK. - [ value size ] is the size of the [ value ] field. It's present unless either the cell has the HAS_EMPTY_VALUE_MASK, or the value for columns of this type have a fixed length. - [ path size ] is the size of the [ path ] field. Present iff this is the cell of a complex column. - [ value ]: the cell value, unless it has the HAS_EMPTY_VALUE_MASK. - [ path ]: the cell path if the column this is a cell of is complex.

Most used methods

  • <init>
  • deserialize
  • serialize
  • serializedSize
  • skip

Popular in Java

  • Running tasks concurrently on multiple threads
  • onCreateOptionsMenu (Activity)
  • requestLocationUpdates (LocationManager)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • Top plugins for WebStorm
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