Tabnine Logo
DeletionTime$Serializer.serialize
Code IndexAdd Tabnine to your IDE (free)

How to use
serialize
method
in
org.apache.cassandra.db.DeletionTime$Serializer

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

origin: com.netflix.sstableadaptor/sstable-adaptor-cassandra

private void writePartitionHeader(UnfilteredRowIterator iterator) throws IOException
{
  ByteBufferUtil.writeWithShortLength(iterator.partitionKey().getKey(), writer);
  DeletionTime.serializer.serialize(iterator.partitionLevelDeletion(), writer);
  if (header.hasStatic())
  {
    Row staticRow = iterator.staticRow();
    UnfilteredSerializer.serializer.serializeStaticRow(staticRow, header, writer, version);
    if (!observers.isEmpty())
      observers.forEach((o) -> o.nextUnfilteredCluster(staticRow));
  }
}
origin: jsevellec/cassandra-unit

private void writePartitionHeader(UnfilteredRowIterator iterator) throws IOException
{
  ByteBufferUtil.writeWithShortLength(iterator.partitionKey().getKey(), writer);
  DeletionTime.serializer.serialize(iterator.partitionLevelDeletion(), writer);
  if (header.hasStatic())
  {
    Row staticRow = iterator.staticRow();
    UnfilteredSerializer.serializer.serializeStaticRow(staticRow, header, writer, version);
    if (!observers.isEmpty())
      observers.forEach((o) -> o.nextUnfilteredCluster(staticRow));
  }
}
origin: org.apache.cassandra/cassandra-all

private void writePartitionHeader(UnfilteredRowIterator iterator) throws IOException
{
  ByteBufferUtil.writeWithShortLength(iterator.partitionKey().getKey(), writer);
  DeletionTime.serializer.serialize(iterator.partitionLevelDeletion(), writer);
  if (header.hasStatic())
  {
    Row staticRow = iterator.staticRow();
    UnfilteredSerializer.serializer.serializeStaticRow(staticRow, header, writer, version);
    if (!observers.isEmpty())
      observers.forEach((o) -> o.nextUnfilteredCluster(staticRow));
  }
}
origin: com.netflix.sstableadaptor/sstable-adaptor-cassandra

@Override
public void serializeForCache(DataOutputPlus out) throws IOException
{
  out.writeUnsignedVInt(position);
  out.writeByte(CACHE_INDEXED_SHALLOW);
  out.writeUnsignedVInt(indexFilePosition);
  out.writeUnsignedVInt(headerLength);
  DeletionTime.serializer.serialize(deletionTime, out);
  out.writeUnsignedVInt(columnsIndexCount);
  out.writeUnsignedVInt(indexedPartSize);
}
origin: com.netflix.sstableadaptor/sstable-adaptor-cassandra

@Override
public void serialize(DataOutputPlus out, IndexInfo.Serializer idxInfoSerializer, ByteBuffer indexInfo) throws IOException
{
  out.writeUnsignedVInt(position);
  out.writeUnsignedVInt(fieldsSerializedSize + indexInfo.limit());
  out.writeUnsignedVInt(headerLength);
  DeletionTime.serializer.serialize(deletionTime, out);
  out.writeUnsignedVInt(columnsIndexCount);
  out.write(indexInfo);
}
origin: com.strapdata.cassandra/cassandra-all

public void serialize(IndexInfo info, DataOutputPlus out) throws IOException
{
  assert version.storeRows() : "We read old index files but we should never write them";
  clusteringSerializer.serialize(info.firstName, out);
  clusteringSerializer.serialize(info.lastName, out);
  out.writeUnsignedVInt(info.offset);
  out.writeVInt(info.width - WIDTH_BASE);
  out.writeBoolean(info.endOpenMarker != null);
  if (info.endOpenMarker != null)
    DeletionTime.serializer.serialize(info.endOpenMarker, out);
}
origin: com.netflix.sstableadaptor/sstable-adaptor-cassandra

@Override
public void serializeForCache(DataOutputPlus out) throws IOException
{
  out.writeUnsignedVInt(position);
  out.writeByte(CACHE_INDEXED);
  out.writeUnsignedVInt(headerLength);
  DeletionTime.serializer.serialize(deletionTime, out);
  out.writeUnsignedVInt(columnsIndexCount());
  for (IndexInfo indexInfo : columnsIndex)
    idxInfoSerializer.serialize(indexInfo, out);
}
origin: jsevellec/cassandra-unit

@Override
public void serialize(DataOutputPlus out, IndexInfo.Serializer idxInfoSerializer, ByteBuffer indexInfo) throws IOException
{
  out.writeUnsignedVInt(position);
  out.writeUnsignedVInt(fieldsSerializedSize + indexInfo.limit());
  out.writeUnsignedVInt(headerLength);
  DeletionTime.serializer.serialize(deletionTime, out);
  out.writeUnsignedVInt(columnsIndexCount);
  out.write(indexInfo);
}
origin: jsevellec/cassandra-unit

public void serialize(IndexInfo info, DataOutputPlus out) throws IOException
{
  assert version.storeRows() : "We read old index files but we should never write them";
  clusteringSerializer.serialize(info.firstName, out);
  clusteringSerializer.serialize(info.lastName, out);
  out.writeUnsignedVInt(info.offset);
  out.writeVInt(info.width - WIDTH_BASE);
  out.writeBoolean(info.endOpenMarker != null);
  if (info.endOpenMarker != null)
    DeletionTime.serializer.serialize(info.endOpenMarker, out);
}
origin: com.strapdata.cassandra/cassandra-all

@Override
public void serializeForCache(DataOutputPlus out) throws IOException
{
  out.writeUnsignedVInt(position);
  out.writeByte(CACHE_INDEXED_SHALLOW);
  out.writeUnsignedVInt(indexFilePosition);
  out.writeUnsignedVInt(headerLength);
  DeletionTime.serializer.serialize(deletionTime, out);
  out.writeUnsignedVInt(columnsIndexCount);
  out.writeUnsignedVInt(indexedPartSize);
}
origin: com.strapdata.cassandra/cassandra-all

@Override
public void serializeForCache(DataOutputPlus out) throws IOException
{
  out.writeUnsignedVInt(position);
  out.writeByte(CACHE_INDEXED);
  out.writeUnsignedVInt(headerLength);
  DeletionTime.serializer.serialize(deletionTime, out);
  out.writeUnsignedVInt(columnsIndexCount());
  for (IndexInfo indexInfo : columnsIndex)
    idxInfoSerializer.serialize(indexInfo, out);
}
origin: com.netflix.sstableadaptor/sstable-adaptor-cassandra

public void serialize(IndexInfo info, DataOutputPlus out) throws IOException
{
  assert version.storeRows() : "We read old index files but we should never write them";
  clusteringSerializer.serialize(info.firstName, out);
  clusteringSerializer.serialize(info.lastName, out);
  out.writeUnsignedVInt(info.offset);
  out.writeVInt(info.width - WIDTH_BASE);
  out.writeBoolean(info.endOpenMarker != null);
  if (info.endOpenMarker != null)
    DeletionTime.serializer.serialize(info.endOpenMarker, out);
}
origin: com.facebook.presto.cassandra/cassandra-server

public void serialize(DeletionInfo info, DataOutputPlus out, int version) throws IOException
{
  DeletionTime.serializer.serialize(info.topLevel, out);
  rtlSerializer.serialize(info.ranges, out, version);
}
origin: jsevellec/cassandra-unit

@Override
public void serializeForCache(DataOutputPlus out) throws IOException
{
  out.writeUnsignedVInt(position);
  out.writeByte(CACHE_INDEXED_SHALLOW);
  out.writeUnsignedVInt(indexFilePosition);
  out.writeUnsignedVInt(headerLength);
  DeletionTime.serializer.serialize(deletionTime, out);
  out.writeUnsignedVInt(columnsIndexCount);
  out.writeUnsignedVInt(indexedPartSize);
}
origin: jsevellec/cassandra-unit

@Override
public void serializeForCache(DataOutputPlus out) throws IOException
{
  out.writeUnsignedVInt(position);
  out.writeByte(CACHE_INDEXED);
  out.writeUnsignedVInt(headerLength);
  DeletionTime.serializer.serialize(deletionTime, out);
  out.writeUnsignedVInt(columnsIndexCount());
  for (IndexInfo indexInfo : columnsIndex)
    idxInfoSerializer.serialize(indexInfo, out);
}
origin: org.apache.cassandra/cassandra-all

public void serialize(IndexInfo info, DataOutputPlus out) throws IOException
{
  assert version.storeRows() : "We read old index files but we should never write them";
  clusteringSerializer.serialize(info.firstName, out);
  clusteringSerializer.serialize(info.lastName, out);
  out.writeUnsignedVInt(info.offset);
  out.writeVInt(info.width - WIDTH_BASE);
  out.writeBoolean(info.endOpenMarker != null);
  if (info.endOpenMarker != null)
    DeletionTime.serializer.serialize(info.endOpenMarker, out);
}
origin: org.apache.cassandra/cassandra-all

@Override
public void serializeForCache(DataOutputPlus out) throws IOException
{
  out.writeUnsignedVInt(position);
  out.writeByte(CACHE_INDEXED_SHALLOW);
  out.writeUnsignedVInt(indexFilePosition);
  out.writeUnsignedVInt(headerLength);
  DeletionTime.serializer.serialize(deletionTime, out);
  out.writeUnsignedVInt(columnsIndexCount);
  out.writeUnsignedVInt(indexedPartSize);
}
origin: org.apache.cassandra/cassandra-all

@Override
public void serialize(DataOutputPlus out, IndexInfo.Serializer idxInfoSerializer, ByteBuffer indexInfo) throws IOException
{
  out.writeUnsignedVInt(position);
  out.writeUnsignedVInt(fieldsSerializedSize + indexInfo.limit());
  out.writeUnsignedVInt(headerLength);
  DeletionTime.serializer.serialize(deletionTime, out);
  out.writeUnsignedVInt(columnsIndexCount);
  out.write(indexInfo);
}
origin: org.apache.cassandra/cassandra-all

@Override
public void serializeForCache(DataOutputPlus out) throws IOException
{
  out.writeUnsignedVInt(position);
  out.writeByte(CACHE_INDEXED);
  out.writeUnsignedVInt(headerLength);
  DeletionTime.serializer.serialize(deletionTime, out);
  out.writeUnsignedVInt(columnsIndexCount());
  for (IndexInfo indexInfo : columnsIndex)
    idxInfoSerializer.serialize(indexInfo, out);
}
origin: com.facebook.presto.cassandra/cassandra-server

public void serializeForSSTable(RangeTombstone t, DataOutputPlus out) throws IOException
{
  type.serializer().serialize(t.min, out);
  out.writeByte(ColumnSerializer.RANGE_TOMBSTONE_MASK);
  type.serializer().serialize(t.max, out);
  DeletionTime.serializer.serialize(t.data, out);
}
org.apache.cassandra.dbDeletionTime$Serializerserialize

Popular methods of DeletionTime$Serializer

  • deserialize
  • serializedSize
  • skip

Popular in Java

  • Creating JSON documents from java classes using gson
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • addToBackStack (FragmentTransaction)
  • startActivity (Activity)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • Socket (java.net)
    Provides a client-side TCP socket.
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • BoxLayout (javax.swing)
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Best plugins for Eclipse
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