Package org.apache.orc.impl
Class VisitorContextImpl
java.lang.Object
org.apache.orc.impl.VisitorContextImpl
- All Implemented Interfaces:
Dictionary.VisitorContext
Base implementation for
Dictionary.VisitorContext used to traversing
all nodes in a dictionary.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintGet the number of bytes.intGet the position where the key was originally added.getText()Get the original string.voidsetPosition(int position) voidwriteBytes(OutputStream out) Write the bytes for the string to the given output stream.
-
Constructor Details
-
VisitorContextImpl
-
-
Method Details
-
getOriginalPosition
public int getOriginalPosition()Description copied from interface:Dictionary.VisitorContextGet the position where the key was originally added.- Specified by:
getOriginalPositionin interfaceDictionary.VisitorContext- Returns:
- the number returned by add.
-
getText
Description copied from interface:Dictionary.VisitorContextGet the original string.- Specified by:
getTextin interfaceDictionary.VisitorContext- Returns:
- the string
-
writeBytes
Description copied from interface:Dictionary.VisitorContextWrite the bytes for the string to the given output stream.- Specified by:
writeBytesin interfaceDictionary.VisitorContext- Parameters:
out- the stream to write to.- Throws:
IOException
-
getLength
public int getLength()Description copied from interface:Dictionary.VisitorContextGet the number of bytes.- Specified by:
getLengthin interfaceDictionary.VisitorContext- Returns:
- the string's length in bytes
-
setPosition
public void setPosition(int position)
-