/**
         * Create SettableUncompressedStream from stream buffer.
         *
         * @param streamName - stream name
         * @param fileId - file id
         * @param streamBuffer - stream buffer
         * @return - SettableUncompressedStream
         * @
         */
        public static SettableUncompressedStream createSettableUncompressedStream(string streamName,
                                                                                  long?fileId, ColumnStreamData streamBuffer)
        {
            if (streamBuffer == null)
            {
                return(null);
            }

            DiskRangeInfo diskRangeInfo = createDiskRangeInfo(streamBuffer);

            return(new SettableUncompressedStream(fileId, streamName, diskRangeInfo.getDiskRanges(),
                                                  diskRangeInfo.getTotalLength()));
        }
 public void setBuffers(DiskRangeInfo diskRangeInfo)
 {
     reset(diskRangeInfo.getDiskRanges(), diskRangeInfo.getTotalLength());
     setOffset(diskRangeInfo.getDiskRanges());
 }
 public void setBuffers(DiskRangeInfo diskRangeInfo)
 {
     reset(diskRangeInfo.getDiskRanges(), diskRangeInfo.getTotalLength());
     setOffset(diskRangeInfo.getDiskRanges());
 }