Class DataNodeDataConsumer
java.lang.Object
cool.scx.io.data_consumer.DataNodeDataConsumer
- All Implemented Interfaces:
DataConsumer
接受为单个 DataNode
- Version:
- 0.0.1
- Author:
- scx567888
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
DataNodeDataConsumer
public DataNodeDataConsumer()
-
-
Method Details
-
accept
public boolean accept(byte[] bytes, int position, int length) - Specified by:
acceptin interfaceDataConsumer- Parameters:
bytes- 字节position- 起始位置length- 长度- Returns:
- 是否需要更多数据
-
getDataNode
-