public static <T> Source<T> sequenceFile(String pathName, PType<T> ptype) { return sequenceFile(new Path(pathName), ptype); }
/** * Creates a {@code Source<T>} instance from the SequenceFile(s) at the given path name * from the value field of each key-value pair in the SequenceFile(s). * * @param pathName The name of the path to the data on the filesystem * @param valueClass The {@code Writable} type for the value of the SequenceFile entry * @return A new {@code Source<T>} instance */ public static <T extends Writable> Source<T> sequenceFile(String pathName, Class<T> valueClass) { return sequenceFile(new Path(pathName), valueClass); }
/** * Creates a {@code TableSource<K, V>} instance for the SequenceFile(s) at the given path name. * * @param pathName The name of the path to the data on the filesystem * @param keyClass The {@code Writable} subclass for the key of the SequenceFile entry * @param valueClass The {@code Writable} subclass for the value of the SequenceFile entry * @return A new {@code SourceTable<K, V>} instance */ public static <K extends Writable, V extends Writable> TableSource<K, V> sequenceFile( String pathName, Class<K> keyClass, Class<V> valueClass) { return sequenceFile(new Path(pathName), keyClass, valueClass); }
/** * Creates a {@code Source<T>} instance from the SequenceFile(s) at the given path name * from the value field of each key-value pair in the SequenceFile(s). * * @param pathName The name of the path to the data on the filesystem * @param ptype The {@code PType} for the value of the SequenceFile entry * @return A new {@code Source<T>} instance */ public static <T> Source<T> sequenceFile(String pathName, PType<T> ptype) { return sequenceFile(new Path(pathName), ptype); }
/** * Creates a {@code TableSource<K, V>} instance for the SequenceFile(s) at the given path name. * * @param pathName The name of the path to the data on the filesystem * @param keyClass The {@code Writable} subclass for the key of the SequenceFile entry * @param valueClass The {@code Writable} subclass for the value of the SequenceFile entry * @return A new {@code SourceTable<K, V>} instance */ public static <K extends Writable, V extends Writable> TableSource<K, V> sequenceFile( String pathName, Class<K> keyClass, Class<V> valueClass) { return sequenceFile(new Path(pathName), keyClass, valueClass); }
/** * Creates a {@code TableSource<K, V>} instance for the SequenceFile(s) at the given path name. * * @param pathName The name of the path to the data on the filesystem * @param keyType The {@code PType} for the key of the SequenceFile entry * @param valueType The {@code PType} for the value of the SequenceFile entry * @return A new {@code SourceTable<K, V>} instance */ public static <K, V> TableSource<K, V> sequenceFile(String pathName, PType<K> keyType, PType<V> valueType) { return sequenceFile(new Path(pathName), keyType, valueType); }
/** * Creates a {@code Source<T>} instance from the SequenceFile(s) at the given path name * from the value field of each key-value pair in the SequenceFile(s). * * @param pathName The name of the path to the data on the filesystem * @param ptype The {@code PType} for the value of the SequenceFile entry * @return A new {@code Source<T>} instance */ public static <T> Source<T> sequenceFile(String pathName, PType<T> ptype) { return sequenceFile(new Path(pathName), ptype); }
public static <K, V> TableSource<K, V> sequenceFile(String pathName, PType<K> keyType, PType<V> valueType) { return sequenceFile(new Path(pathName), keyType, valueType); }
/** * Creates a {@code Source<T>} instance from the SequenceFile(s) at the given path name * from the value field of each key-value pair in the SequenceFile(s). * * @param pathName The name of the path to the data on the filesystem * @param valueClass The {@code Writable} type for the value of the SequenceFile entry * @return A new {@code Source<T>} instance */ public static <T extends Writable> Source<T> sequenceFile(String pathName, Class<T> valueClass) { return sequenceFile(new Path(pathName), valueClass); }
/** * Creates a {@code TableSource<K, V>} instance for the SequenceFile(s) at the given path name. * * @param pathName The name of the path to the data on the filesystem * @param keyType The {@code PType} for the key of the SequenceFile entry * @param valueType The {@code PType} for the value of the SequenceFile entry * @return A new {@code SourceTable<K, V>} instance */ public static <K, V> TableSource<K, V> sequenceFile(String pathName, PType<K> keyType, PType<V> valueType) { return sequenceFile(new Path(pathName), keyType, valueType); }
/** * Creates a {@code Source<T>} instance from the SequenceFile(s) at the given {@code Path} * from the value field of each key-value pair in the SequenceFile(s). * * @param path The {@code Path} to the data * @param valueClass The {@code Writable} type for the value of the SequenceFile entry * @return A new {@code Source<T>} instance */ public static <T extends Writable> Source<T> sequenceFile(Path path, Class<T> valueClass) { return sequenceFile(path, Writables.writables(valueClass)); }
/** * Creates a {@code Source<T>} instance from the SequenceFile(s) at the given {@code Path}s * from the value field of each key-value pair in the SequenceFile(s). * * @param paths A list of {@code Path}s to the data * @param valueClass The {@code Writable} type for the value of the SequenceFile entry * @return A new {@code Source<T>} instance */ public static <T extends Writable> Source<T> sequenceFile(List<Path> paths, Class<T> valueClass) { return sequenceFile(paths, Writables.writables(valueClass)); }
/** * Creates a {@code Source<T>} instance from the SequenceFile(s) at the given {@code Path} * from the value field of each key-value pair in the SequenceFile(s). * * @param path The {@code Path} to the data * @param valueClass The {@code Writable} type for the value of the SequenceFile entry * @return A new {@code Source<T>} instance */ public static <T extends Writable> Source<T> sequenceFile(Path path, Class<T> valueClass) { return sequenceFile(path, Writables.writables(valueClass)); }
/** * Creates a {@code TableSource<K, V>} instance for the SequenceFile(s) at the given {@code Path}. * * @param path The {@code Path} to the data * @param keyClass The {@code Writable} subclass for the key of the SequenceFile entry * @param valueClass The {@code Writable} subclass for the value of the SequenceFile entry * @return A new {@code SourceTable<K, V>} instance */ public static <K extends Writable, V extends Writable> TableSource<K, V> sequenceFile( Path path, Class<K> keyClass, Class<V> valueClass) { return sequenceFile(path, Writables.writables(keyClass), Writables.writables(valueClass)); }
/** * Creates a {@code TableSource<K, V>} instance for the SequenceFile(s) at the given {@code Path}. * * @param path The {@code Path} to the data * @param keyClass The {@code Writable} subclass for the key of the SequenceFile entry * @param valueClass The {@code Writable} subclass for the value of the SequenceFile entry * @return A new {@code SourceTable<K, V>} instance */ public static <K extends Writable, V extends Writable> TableSource<K, V> sequenceFile( Path path, Class<K> keyClass, Class<V> valueClass) { return sequenceFile(path, Writables.writables(keyClass), Writables.writables(valueClass)); }
/** * Creates a {@code TableSource<K, V>} instance for the SequenceFile(s) at the given {@code Path}s. * * @param paths A list of {@code Path}s to the data * @param keyClass The {@code Writable} subclass for the key of the SequenceFile entry * @param valueClass The {@code Writable} subclass for the value of the SequenceFile entry * @return A new {@code SourceTable<K, V>} instance */ public static <K extends Writable, V extends Writable> TableSource<K, V> sequenceFile( List<Path> paths, Class<K> keyClass, Class<V> valueClass) { return sequenceFile(paths, Writables.writables(keyClass), Writables.writables(valueClass)); }
PCollection<ByteBuffer> traces = pipeline.read(From.sequenceFile( cmdLine.getOptionValue("input"), Writables.bytes())); Pair<List<String>, String> cmd = parse(cmdLine.getOptionValue("command"));