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 void
close()
static NodeProperty
fromJsonArray(String key, String json)
long
getFileSize()
Get the file size.int
getProgressPercent()
Get the progress in percent (0..100).static NodeDataReader
open(String fileName)
NodeData
readNode()
Read the next node.
-
-
-
Method Detail
-
open
public static NodeDataReader open(String fileName)
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
readNode
public NodeData readNode() throws IOException
Description copied from interface:NodeDataReader
Read the next node.- Specified by:
readNode
in 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:NodeDataReader
Get the file size.- Specified by:
getFileSize
in interfaceNodeDataReader
- Returns:
- the file size
-
getProgressPercent
public int getProgressPercent()
Description copied from interface:NodeDataReader
Get the progress in percent (0..100).- Specified by:
getProgressPercent
in interfaceNodeDataReader
- Returns:
- the progress
-
-