Class RowIndexEntry.Serializer
java.lang.Object
org.apache.cassandra.io.sstable.format.big.RowIndexEntry.Serializer
- All Implemented Interfaces:
RowIndexEntry.IndexSerializer
- Enclosing class:
- RowIndexEntry
public static final class RowIndexEntry.Serializer
extends Object
implements RowIndexEntry.IndexSerializer
-
Constructor Summary
ConstructorsConstructorDescriptionSerializer(Version version, SerializationHeader header, TableMetrics tableMetrics) -
Method Summary
Modifier and TypeMethodDescriptiondeserialize(DataInputPlus in, long indexFilePosition) longstatic longReads only the data 'position' of the index entry and returns it.voidserialize(RowIndexEntry rie, DataOutputPlus out, ByteBuffer indexInfo) voidserializeForCache(RowIndexEntry rie, DataOutputPlus out) static voidskip(DataInputPlus in, Version version) static voidskipForCache(DataInputPlus in, Version version) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.cassandra.io.sstable.format.big.RowIndexEntry.IndexSerializer
deserialize, deserialize
-
Constructor Details
-
Serializer
-
-
Method Details
-
indexInfoSerializer
- Specified by:
indexInfoSerializerin interfaceRowIndexEntry.IndexSerializer
-
serialize
public void serialize(RowIndexEntry rie, DataOutputPlus out, ByteBuffer indexInfo) throws IOException - Specified by:
serializein interfaceRowIndexEntry.IndexSerializer- Throws:
IOException
-
serializeForCache
- Specified by:
serializeForCachein interfaceRowIndexEntry.IndexSerializer- Throws:
IOException
-
deserializeForCache
- Specified by:
deserializeForCachein interfaceRowIndexEntry.IndexSerializer- Throws:
IOException
-
skipForCache
- Throws:
IOException
-
deserialize
- Specified by:
deserializein interfaceRowIndexEntry.IndexSerializer- Throws:
IOException
-
deserializePositionAndSkip
- Specified by:
deserializePositionAndSkipin interfaceRowIndexEntry.IndexSerializer- Throws:
IOException
-
readPosition
Reads only the data 'position' of the index entry and returns it. Note that this left 'in' in the middle of reading an entry, so this is only useful if you know what you are doing and in most case 'deserialize' should be used instead.- Throws:
IOException
-
skip
- Throws:
IOException
-