Package com.google.refine.importers
Class JsonImporter.JSONTreeReader
java.lang.Object
com.google.refine.importers.JsonImporter.JSONTreeReader
- All Implemented Interfaces:
TreeReader
- Enclosing class:
- JsonImporter
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.google.refine.importers.tree.TreeReader
TreeReader.Token -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncurrent()intDoes nothing.getAttributeLocalName(int index) Does nothing.getAttributePrefix(int index) Does nothing.getAttributeValue(int index) Does nothing.Does nothing.getValue()booleanhasNext()protected TreeReader.TokenmapToToken(com.fasterxml.jackson.core.JsonToken token) next()
-
Constructor Details
-
JSONTreeReader
-
-
Method Details
-
getAttributeCount
public int getAttributeCount()Does nothing. All Json is treated as elements- Specified by:
getAttributeCountin interfaceTreeReader
-
getAttributeLocalName
Does nothing. All Json is treated as elements- Specified by:
getAttributeLocalNamein interfaceTreeReader
-
getAttributePrefix
Does nothing. All Json is treated as elements- Specified by:
getAttributePrefixin interfaceTreeReader
-
getAttributeValue
Does nothing. All Json is treated as elements- Specified by:
getAttributeValuein interfaceTreeReader
-
current
- Specified by:
currentin interfaceTreeReader
-
getFieldName
- Specified by:
getFieldNamein interfaceTreeReader- Throws:
TreeReaderException
-
getPrefix
Does nothing. Json does not have prefixes- Specified by:
getPrefixin interfaceTreeReader
-
getFieldValue
- Specified by:
getFieldValuein interfaceTreeReader- Throws:
TreeReaderException
-
getValue
- Specified by:
getValuein interfaceTreeReader- Throws:
TreeReaderException
-
hasNext
public boolean hasNext()- Specified by:
hasNextin interfaceTreeReader
-
next
- Specified by:
nextin interfaceTreeReader- Throws:
TreeReaderException
-
mapToToken
-