Package org.apache.cassandra.db
Class SerializationHeader
java.lang.Object
org.apache.cassandra.db.SerializationHeader
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classWe need the TableMetadata to properly deserialize a SerializationHeader but it's clunky to pass that to a SSTable component, so we use this temporary object to delay the actual need for the metadata.static class -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSerializationHeader(boolean isForSSTable, TableMetadata metadata, RegularAndStaticColumns columns, EncodingStats stats) -
Method Summary
Modifier and TypeMethodDescriptionList<AbstractType<?>>columns()columns(boolean isStatic) longAbstractType<?>getType(ColumnMetadata column) booleanbooleanAbstractType<?>keyType()longlocalDeletionTimeSerializedSize(long localDeletionTime) static SerializationHeadermake(TableMetadata metadata, Collection<SSTableReader> sstables) static SerializationHeadermakeWithoutStats(TableMetadata metadata) longlongintreadTTL(DataInputPlus in) voidvoidvoidvoidskipTTL(DataInputPlus in) stats()longtimestampSerializedSize(long timestamp) toString()longttlSerializedSize(int ttl) voidwriteDeletionTime(DeletionTime dt, DataOutputPlus out) voidwriteLocalDeletionTime(long localDeletionTime, DataOutputPlus out) voidwriteTimestamp(long timestamp, DataOutputPlus out) voidwriteTTL(int ttl, DataOutputPlus out)
-
Field Details
-
serializer
-
-
Constructor Details
-
SerializationHeader
public SerializationHeader(boolean isForSSTable, TableMetadata metadata, RegularAndStaticColumns columns, EncodingStats stats)
-
-
Method Details
-
makeWithoutStats
-
make
-
columns
-
hasStatic
public boolean hasStatic() -
isForSSTable
public boolean isForSSTable() -
stats
-
keyType
-
clusteringTypes
-
columns
-
getType
-
writeTimestamp
- Throws:
IOException
-
writeLocalDeletionTime
- Throws:
IOException
-
writeTTL
- Throws:
IOException
-
writeDeletionTime
- Throws:
IOException
-
readTimestamp
- Throws:
IOException
-
readLocalDeletionTime
- Throws:
IOException
-
readTTL
- Throws:
IOException
-
readDeletionTime
- Throws:
IOException
-
timestampSerializedSize
public long timestampSerializedSize(long timestamp) -
localDeletionTimeSerializedSize
public long localDeletionTimeSerializedSize(long localDeletionTime) -
ttlSerializedSize
public long ttlSerializedSize(int ttl) -
deletionTimeSerializedSize
-
skipTimestamp
- Throws:
IOException
-
skipLocalDeletionTime
- Throws:
IOException
-
skipTTL
- Throws:
IOException
-
skipDeletionTime
- Throws:
IOException
-
toComponent
-
toString
-