Class PForUtil


  • final class PForUtil
    extends java.lang.Object
    Utility class to encode sequences of 128 small positive integers.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private ForUtil forUtil  
    • Constructor Summary

      Constructors 
      Constructor Description
      PForUtil​(ForUtil forUtil)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) static boolean allEqual​(long[] l)  
      (package private) void decode​(DataInput in, long[] longs)
      Decode 128 integers into ints.
      (package private) void encode​(long[] longs, DataOutput out)
      Encode 128 integers from longs into out.
      (package private) void skip​(DataInput in)
      Skip 128 integers.
      • Methods inherited from class java.lang.Object

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

      • forUtil

        private final ForUtil forUtil
    • Constructor Detail

      • PForUtil

        PForUtil​(ForUtil forUtil)
    • Method Detail

      • allEqual

        static boolean allEqual​(long[] l)
      • encode

        void encode​(long[] longs,
                    DataOutput out)
             throws java.io.IOException
        Encode 128 integers from longs into out.
        Throws:
        java.io.IOException
      • decode

        void decode​(DataInput in,
                    long[] longs)
             throws java.io.IOException
        Decode 128 integers into ints.
        Throws:
        java.io.IOException
      • skip

        void skip​(DataInput in)
           throws java.io.IOException
        Skip 128 integers.
        Throws:
        java.io.IOException