Class SerializationHelper
- java.lang.Object
-
- com.yahoo.search.predicate.serialization.SerializationHelper
-
public class SerializationHelper extends java.lang.Object
Misc utility functions to help serialization ofPredicateIndex
.- Author:
- bjorncs
-
-
Constructor Summary
Constructors Constructor Description SerializationHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static byte[]
readByteArray(java.io.DataInputStream in)
static int[]
readIntArray(java.io.DataInputStream in)
static long[]
readLongArray(java.io.DataInputStream in)
static short[]
readShortArray(java.io.DataInputStream in)
static void
writeByteArray(byte[] array, java.io.DataOutputStream out)
static void
writeIntArray(int[] array, java.io.DataOutputStream out)
static void
writeLongArray(long[] array, java.io.DataOutputStream out)
static void
writeShortArray(short[] array, java.io.DataOutputStream out)
-
-
-
Method Detail
-
writeIntArray
public static void writeIntArray(int[] array, java.io.DataOutputStream out) throws java.io.IOException
- Throws:
java.io.IOException
-
readIntArray
public static int[] readIntArray(java.io.DataInputStream in) throws java.io.IOException
- Throws:
java.io.IOException
-
writeByteArray
public static void writeByteArray(byte[] array, java.io.DataOutputStream out) throws java.io.IOException
- Throws:
java.io.IOException
-
readByteArray
public static byte[] readByteArray(java.io.DataInputStream in) throws java.io.IOException
- Throws:
java.io.IOException
-
writeLongArray
public static void writeLongArray(long[] array, java.io.DataOutputStream out) throws java.io.IOException
- Throws:
java.io.IOException
-
readLongArray
public static long[] readLongArray(java.io.DataInputStream in) throws java.io.IOException
- Throws:
java.io.IOException
-
writeShortArray
public static void writeShortArray(short[] array, java.io.DataOutputStream out) throws java.io.IOException
- Throws:
java.io.IOException
-
readShortArray
public static short[] readShortArray(java.io.DataInputStream in) throws java.io.IOException
- Throws:
java.io.IOException
-
-