Class SeekableByteChannelRecordReader


  • class SeekableByteChannelRecordReader
    extends java.lang.Object
    • Field Detail

      • channel

        private final java.nio.channels.SeekableByteChannel channel
    • Constructor Detail

      • SeekableByteChannelRecordReader

        public SeekableByteChannelRecordReader​(java.nio.channels.SeekableByteChannel channel)
    • Method Detail

      • read

        public java.nio.ByteBuffer read​(RecordDefinition recordDefinition,
                                        long position)
                                 throws java.io.IOException
        Throws:
        java.io.IOException
      • uint32

        public com.google.common.primitives.UnsignedInteger uint32​(RecordDefinition.Field field,
                                                                   RecordDefinition recordDefinition,
                                                                   long position)
                                                            throws java.io.IOException
        Throws:
        java.io.IOException
      • uint64

        private com.google.common.primitives.UnsignedLong uint64​(RecordDefinition.Field field,
                                                                 RecordDefinition recordDefinition,
                                                                 long position)
                                                          throws java.io.IOException
        Throws:
        java.io.IOException
      • readField

        private java.nio.ByteBuffer readField​(RecordDefinition.Field field,
                                              RecordDefinition recordDefinition,
                                              long position)
                                       throws java.io.IOException
        Throws:
        java.io.IOException
      • computeLength

        private int computeLength​(RecordDefinition recordDefinition,
                                  long position)
                           throws java.io.IOException
        Throws:
        java.io.IOException
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object