public class OutputContext
extends java.lang.Object
Constructor and Description |
---|
OutputContext()
Instantiates a new strategy context.
|
Modifier and Type | Method and Description |
---|---|
boolean |
getRolloverState()
Gets the rollover state.
|
org.apache.hadoop.fs.Path |
init(org.apache.hadoop.fs.Path path)
Inits the context from a
Path |
org.apache.hadoop.fs.Path |
resolvePath(org.apache.hadoop.fs.Path path)
Resolve path.
|
void |
rollStrategies()
Roll strategies.
|
void |
setCodecInfo(CodecInfo codecInfo)
Sets the codec info.
|
void |
setFileNamingStrategy(FileNamingStrategy fileNamingStrategy)
Sets the file naming strategy.
|
void |
setRolloverStrategy(RolloverStrategy rolloverStrategy)
Sets the rollover strategy.
|
void |
setWritePosition(long position)
Sets the write position.
|
public void setWritePosition(long position)
position
- the new write positionpublic boolean getRolloverState()
public void rollStrategies()
public org.apache.hadoop.fs.Path resolvePath(org.apache.hadoop.fs.Path path)
path
- the pathpublic org.apache.hadoop.fs.Path init(org.apache.hadoop.fs.Path path)
Path
path
- the pathpublic void setCodecInfo(CodecInfo codecInfo)
codecInfo
- the new codec infopublic void setFileNamingStrategy(FileNamingStrategy fileNamingStrategy)
fileNamingStrategy
- the new file naming strategypublic void setRolloverStrategy(RolloverStrategy rolloverStrategy)
rolloverStrategy
- the new rollover strategy