Package org.apache.storm.hdfs.common
Class NullPartitioner
java.lang.Object
org.apache.storm.hdfs.common.NullPartitioner
- All Implemented Interfaces:
- Serializable,- Partitioner
The NullPartitioner partitions every tuple to the empty string. In otherwords, no partition sub directories will
 be added to the path.
- See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiongetPartitionPath(Tuple tuple) Return a relative path that the tuple should be written to.
- 
Constructor Details- 
NullPartitionerpublic NullPartitioner()
 
- 
- 
Method Details- 
getPartitionPathDescription copied from interface:PartitionerReturn a relative path that the tuple should be written to. For example, if an HdfsBolt were configured to write to /common/output and a partitioner returned "/foo" then the bolt should open a file in "/common/output/foo"A best practice is to use Path.SEPARATOR instead of a literal "/" - Specified by:
- getPartitionPathin interface- Partitioner
- Parameters:
- tuple- The tuple for which the relative path is being calculated.
 
 
-