Class SegmentStream

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

    public class SegmentStream
    extends java.io.InputStream
    For reading any record of type "VALUE" as binary streams.
    • Method Detail

      • getRecordIdIfAvailable

        @Nullable
        public static @Nullable RecordId getRecordIdIfAvailable​(java.io.InputStream stream,
                                                                SegmentStore store)
      • getLength

        public long getLength()
      • getString

        public java.lang.String getString()
      • markSupported

        public boolean markSupported()
        Overrides:
        markSupported in class java.io.InputStream
      • mark

        public void mark​(int readLimit)
        Overrides:
        mark in class java.io.InputStream
      • reset

        public void reset()
        Overrides:
        reset in class java.io.InputStream
      • read

        public int read()
        Specified by:
        read in class java.io.InputStream
      • read

        public int read​(@NotNull
                        @org.jetbrains.annotations.NotNull byte[] b,
                        int off,
                        int len)
        Overrides:
        read in class java.io.InputStream
      • skip

        public long skip​(long n)
        Overrides:
        skip in class java.io.InputStream
      • available

        public int available()
        Overrides:
        available in class java.io.InputStream
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Overrides:
        close in class java.io.InputStream