@InterfaceAudience.Public public static interface ExportSnapshot.CustomFileGrouper
InputSplits. Your implementation
must return a data structure that contains each input file exactly once. Files that appear in
separate entries in the top-level returned Collection are guaranteed to not be placed in the
same InputSplit. This can be used to segregate your input files by the rack or host on which
they are available, which, used in conjunction with ExportSnapshot.FileLocationResolver, can improve
the performance of your ExportSnapshot runs. To use this, pass the --custom-file-grouper
argument with the fully qualified class name of an implementation of CustomFileGrouper that's
on the classpath. If this argument is not used, no particular grouping logic will be applied.| Modifier and Type | Method and Description |
|---|---|
Collection<Collection<Pair<org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotFileInfo,Long>>> |
getGroupedInputFiles(Collection<Pair<org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotFileInfo,Long>> snapshotFiles) |
Collection<Collection<Pair<org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotFileInfo,Long>>> getGroupedInputFiles(Collection<Pair<org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotFileInfo,Long>> snapshotFiles)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.