public class DirectoryPartitioner
extends java.lang.Object
SamzaException if at least one old file doesn't exist anymore| Constructor and Description |
|---|
DirectoryPartitioner(java.lang.String whiteList,
java.lang.String blackList,
java.lang.String groupPattern,
FileSystemAdapter fileSystemAdapter) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<org.apache.samza.Partition,java.util.List<java.lang.String>> |
getPartitionDescriptor(java.lang.String streamName)
Get partition descriptors for a stream
|
java.util.Map<org.apache.samza.Partition,org.apache.samza.system.SystemStreamMetadata.SystemStreamPartitionMetadata> |
getPartitionMetadataMap(java.lang.String streamName,
java.util.Map<org.apache.samza.Partition,java.util.List<java.lang.String>> existingPartitionDescriptorMap)
Get partition metadata for a stream
|
public DirectoryPartitioner(java.lang.String whiteList,
java.lang.String blackList,
java.lang.String groupPattern,
FileSystemAdapter fileSystemAdapter)
public java.util.Map<org.apache.samza.Partition,org.apache.samza.system.SystemStreamMetadata.SystemStreamPartitionMetadata> getPartitionMetadataMap(java.lang.String streamName,
@Nullable
java.util.Map<org.apache.samza.Partition,java.util.List<java.lang.String>> existingPartitionDescriptorMap)
streamName - name of the stream; should contain the information about the path of the
root directoryexistingPartitionDescriptorMap - map of the existing partition descriptorpublic java.util.Map<org.apache.samza.Partition,java.util.List<java.lang.String>> getPartitionDescriptor(java.lang.String streamName)
streamName - name of the stream; should contain the information about the path of the
root directory