Package org.apache.cassandra.db
Class RowIndexEntry.Serializer
- java.lang.Object
-
- org.apache.cassandra.db.RowIndexEntry.Serializer
-
- All Implemented Interfaces:
RowIndexEntry.IndexSerializer<IndexInfo>
- Enclosing class:
- RowIndexEntry<T>
public static final class RowIndexEntry.Serializer extends java.lang.Object implements RowIndexEntry.IndexSerializer<IndexInfo>
-
-
Constructor Summary
Constructors Constructor Description Serializer(Version version, SerializationHeader header)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description RowIndexEntry<IndexInfo>deserialize(DataInputPlus in, long indexFilePosition)RowIndexEntry<IndexInfo>deserializeForCache(DataInputPlus in)longdeserializePositionAndSkip(DataInputPlus in)IndexInfo.SerializerindexInfoSerializer()static longreadPosition(DataInputPlus in)Reads only the data 'position' of the index entry and returns it.voidserialize(RowIndexEntry<IndexInfo> rie, DataOutputPlus out, java.nio.ByteBuffer indexInfo)voidserializeForCache(RowIndexEntry<IndexInfo> rie, DataOutputPlus out)static voidserializeOffsets(DataOutputBuffer out, int[] indexOffsets, int columnIndexCount)static voidskip(DataInputPlus in, Version version)static voidskipForCache(DataInputPlus in)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.cassandra.db.RowIndexEntry.IndexSerializer
deserialize, deserialize
-
-
-
-
Constructor Detail
-
Serializer
public Serializer(Version version, SerializationHeader header)
-
-
Method Detail
-
indexInfoSerializer
public IndexInfo.Serializer indexInfoSerializer()
- Specified by:
indexInfoSerializerin interfaceRowIndexEntry.IndexSerializer<IndexInfo>
-
serialize
public void serialize(RowIndexEntry<IndexInfo> rie, DataOutputPlus out, java.nio.ByteBuffer indexInfo) throws java.io.IOException
- Specified by:
serializein interfaceRowIndexEntry.IndexSerializer<IndexInfo>- Throws:
java.io.IOException
-
serializeForCache
public void serializeForCache(RowIndexEntry<IndexInfo> rie, DataOutputPlus out) throws java.io.IOException
- Specified by:
serializeForCachein interfaceRowIndexEntry.IndexSerializer<IndexInfo>- Throws:
java.io.IOException
-
deserializeForCache
public RowIndexEntry<IndexInfo> deserializeForCache(DataInputPlus in) throws java.io.IOException
- Specified by:
deserializeForCachein interfaceRowIndexEntry.IndexSerializer<IndexInfo>- Throws:
java.io.IOException
-
skipForCache
public static void skipForCache(DataInputPlus in) throws java.io.IOException
- Throws:
java.io.IOException
-
deserialize
public RowIndexEntry<IndexInfo> deserialize(DataInputPlus in, long indexFilePosition) throws java.io.IOException
- Specified by:
deserializein interfaceRowIndexEntry.IndexSerializer<IndexInfo>- Throws:
java.io.IOException
-
deserializePositionAndSkip
public long deserializePositionAndSkip(DataInputPlus in) throws java.io.IOException
- Specified by:
deserializePositionAndSkipin interfaceRowIndexEntry.IndexSerializer<IndexInfo>- Throws:
java.io.IOException
-
readPosition
public static long readPosition(DataInputPlus in) throws java.io.IOException
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:
java.io.IOException
-
skip
public static void skip(DataInputPlus in, Version version) throws java.io.IOException
- Throws:
java.io.IOException
-
serializeOffsets
public static void serializeOffsets(DataOutputBuffer out, int[] indexOffsets, int columnIndexCount) throws java.io.IOException
- Throws:
java.io.IOException
-
-