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
-
Method Summary
Modifier and TypeMethodDescriptionint
Get the number of bytes.int
Get the position where the key was originally added.getText()
Get the original string.void
setPosition
(int position) void
writeBytes
(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.VisitorContext
Get the position where the key was originally added.- Specified by:
getOriginalPosition
in interfaceDictionary.VisitorContext
- Returns:
- the number returned by add.
-
getText
Description copied from interface:Dictionary.VisitorContext
Get the original string.- Specified by:
getText
in interfaceDictionary.VisitorContext
- Returns:
- the string
-
writeBytes
Description copied from interface:Dictionary.VisitorContext
Write the bytes for the string to the given output stream.- Specified by:
writeBytes
in interfaceDictionary.VisitorContext
- Parameters:
out
- the stream to write to.- Throws:
IOException
-
getLength
public int getLength()Description copied from interface:Dictionary.VisitorContext
Get the number of bytes.- Specified by:
getLength
in interfaceDictionary.VisitorContext
- Returns:
- the string's length in bytes
-
setPosition
public void setPosition(int position)
-