public abstract class DataTreeVisitor extends Object
Modifier and Type | Class and Description |
---|---|
protected class |
DataTreeVisitor.Record |
Modifier and Type | Field and Description |
---|---|
protected Stack<DataTreeVisitor.Record> |
componentStack |
protected DataTreeVisitor.Record |
currentRecord |
protected DataComponent |
dataComponents |
protected DataEncoding |
dataEncoding |
protected DataHandler |
dataHandler |
protected boolean |
endOfArray |
protected ErrorHandler |
errorHandler |
protected boolean |
newBlock |
protected BlockComponent |
parentArray |
protected int |
parentArrayIndex |
protected boolean |
parsing |
protected RawDataHandler |
rawHandler |
Constructor and Description |
---|
DataTreeVisitor(boolean parsing) |
Modifier and Type | Method and Description |
---|---|
protected void |
endDataBlock() |
DataComponent |
getDataComponents() |
DataEncoding |
getDataEncoding() |
DataHandler |
getDataHandler() |
ErrorHandler |
getErrorHandler() |
RawDataHandler |
getRawDataHandler() |
boolean |
isEndOfDataBlock() |
protected abstract void |
processAtom(ScalarComponent component) |
protected abstract boolean |
processBlock(DataComponent component)
Process an aggregate component
|
void |
processNextElement()
Process the next scalar element in the stream
|
void |
reset()
Reset the parser before parsing a new tuple
|
void |
setDataComponents(DataComponent dataInfo) |
void |
setDataEncoding(DataEncoding dataEncoding) |
void |
setDataHandler(DataHandler handler) |
void |
setErrorHandler(ErrorHandler handler) |
void |
setParentArray(BlockComponent parentArray) |
void |
setRawDataHandler(RawDataHandler handler) |
protected DataHandler dataHandler
protected RawDataHandler rawHandler
protected ErrorHandler errorHandler
protected BlockComponent parentArray
protected int parentArrayIndex
protected DataComponent dataComponents
protected DataEncoding dataEncoding
protected Stack<DataTreeVisitor.Record> componentStack
protected DataTreeVisitor.Record currentRecord
protected boolean newBlock
protected boolean endOfArray
protected boolean parsing
protected abstract void processAtom(ScalarComponent component) throws Exception
Exception
protected abstract boolean processBlock(DataComponent component) throws Exception
scalarComponent
- Exception
public void processNextElement() throws Exception
Exception
public boolean isEndOfDataBlock()
public void reset()
public DataHandler getDataHandler()
public RawDataHandler getRawDataHandler()
public ErrorHandler getErrorHandler()
public DataComponent getDataComponents()
public DataEncoding getDataEncoding()
public void setDataHandler(DataHandler handler)
public void setRawDataHandler(RawDataHandler handler)
public void setErrorHandler(ErrorHandler handler)
public void setDataComponents(DataComponent dataInfo)
public void setDataEncoding(DataEncoding dataEncoding)
public void setParentArray(BlockComponent parentArray)
Copyright © 2016 Sensia Software LLC. All rights reserved.