Class SerializationHelper


  • public class SerializationHelper
    extends java.lang.Object
    Misc utility functions to help serialization of PredicateIndex.
    Author:
    bjorncs
    • 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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SerializationHelper

        public SerializationHelper()
    • 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