国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁(yè) > 學(xué)院 > 開發(fā)設(shè)計(jì) > 正文

org.apache.hadoop.fs-Seekable

2019-11-14 21:19:22
字體:
來(lái)源:轉(zhuǎn)載
供稿:網(wǎng)友
org.apache.hadoop.fs-Seekable

本來(lái)要先看BufferedFSInputStream的,但是它實(shí)現(xiàn)了Seekable和PositionedReadable接口,就先看這兩個(gè),再看它會(huì)比較容易理解些


 1 package org.apache.hadoop.fs; 2  3 import java.io.*; 4  5 /** Stream that permits seeking. */ 6 //提供按位置查找功能的接口 7 public interface Seekable { 8   /** 9    * Seek to the given offset from the start of the file.10    * The next read() will be from that location.  Can't11    * seek past the end of the file.12    */13   void seek(long pos) throws IOException;14   //從指定文件中的位置pos,對(duì)文件流進(jìn)行前向搜索。15   /**16    * Return the current offset from the start of the file17    */18   long getPos() throws IOException;19 //返回文件流中當(dāng)前偏移位置。 20   /**21    * Seeks a different copy of the data.  Returns true if 22    * found a new source, false otherwise.23    */24   boolean seekToNewSource(long targetPos) throws IOException;25   //從targetPos位置搜索文件數(shù)據(jù)的一個(gè)不同拷貝,搜索到則返回true,否則返回false。26 }



發(fā)表評(píng)論 共有條評(píng)論
用戶名: 密碼:
驗(yàn)證碼: 匿名發(fā)表
主站蜘蛛池模板: 明溪县| 聂拉木县| 伊宁县| 旺苍县| 吴旗县| 南澳县| 建宁县| 广昌县| 丰城市| 永兴县| 宝兴县| 巧家县| 益阳市| 剑河县| 苍溪县| 修武县| 闽清县| 麦盖提县| 西乡县| 晋州市| 泸溪县| 彩票| 阜阳市| 华坪县| 甘洛县| 丰都县| 铜川市| 库车县| 梨树县| 成武县| 安溪县| 民乐县| 泰兴市| 长岭县| 施甸县| 江城| 扎鲁特旗| 高密市| 岳西县| 鄂温| 鄂温|