Class NodeTreeStoreReader
- java.lang.Object
-
- org.apache.jackrabbit.oak.index.indexer.document.flatfile.analysis.stream.NodeTreeStoreReader
-
- All Implemented Interfaces:
Closeable,AutoCloseable,NodeDataReader
public class NodeTreeStoreReader extends Object implements NodeDataReader
A reader for tree store files.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()static NodePropertyfromJsonArray(String key, String json)longgetFileSize()Get the file size.intgetProgressPercent()Get the progress in percent (0..100).static NodeDataReaderopen(String fileName)NodeDatareadNode()Read the next node.
-
-
-
Method Detail
-
open
public static NodeDataReader open(String fileName)
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
readNode
public NodeData readNode() throws IOException
Description copied from interface:NodeDataReaderRead the next node.- Specified by:
readNodein interfaceNodeDataReader- Returns:
- the node, or null for EOF
- Throws:
IOException
-
fromJsonArray
public static NodeProperty fromJsonArray(String key, String json)
-
getFileSize
public long getFileSize()
Description copied from interface:NodeDataReaderGet the file size.- Specified by:
getFileSizein interfaceNodeDataReader- Returns:
- the file size
-
getProgressPercent
public int getProgressPercent()
Description copied from interface:NodeDataReaderGet the progress in percent (0..100).- Specified by:
getProgressPercentin interfaceNodeDataReader- Returns:
- the progress
-
-