public class Streams extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Streams.TimestampedAndLine<T extends AisMessage> |
static class |
Streams.TimestampedAndLines<T extends AisMessage> |
Modifier and Type | Field and Description |
---|---|
static int |
BUFFER_SIZE |
static rx.functions.Func1<String,com.google.common.base.Optional<NmeaMessage>> |
LINE_TO_NMEA_MESSAGE |
static rx.functions.Func1<NmeaMessage,com.google.common.base.Optional<Timestamped<AisMessage>>> |
TO_AIS_MESSAGE |
static rx.functions.Func1<NmeaMessage,Streams.TimestampedAndLine<AisMessage>> |
TO_AIS_MESSAGE_AND_LINE |
static rx.functions.Func1<com.google.common.base.Optional<List<NmeaMessage>>,Streams.TimestampedAndLines<AisMessage>> |
TO_AIS_MESSAGE_AND_LINES |
Constructor and Description |
---|
Streams() |
Modifier and Type | Method and Description |
---|---|
static rx.Observable.Transformer<NmeaMessage,com.google.common.base.Optional<List<NmeaMessage>>> |
addToBuffer(int bufferSize) |
static rx.Observable.Transformer<NmeaMessage,NmeaMessage> |
aggregateMultiLineNmea(int bufferSize) |
static rx.Observable.Transformer<NmeaMessage,NmeaMessage> |
aggregateMultiLineNmeaWithLines(int bufferSize) |
static rx.Observable<String> |
connect(String host,
int port) |
static rx.Observable<Streams.TimestampedAndLine<AisMessage>> |
connectAndExtract(String host,
int port) |
static rx.Observable<String> |
connectOnce(HostPort hostPort) |
static rx.Observable<Streams.TimestampedAndLine<AisMessage>> |
extract(rx.Observable<String> rawAisNmea) |
static rx.Observable<Fix> |
extractFixes(rx.Observable<String> rawAisNmea) |
static rx.functions.Func1<List<File>,rx.Observable<Integer>> |
extractFixesFromNmeaGzAndAppendToFile(int linesPerProcessor,
rx.Scheduler scheduler,
rx.functions.Func1<Fix,String> fileMapper,
int writeBufferSize,
rx.functions.Action1<File> logger) |
static rx.Observable<Timestamped<AisMessage>> |
extractMessages(rx.Observable<String> rawAisNmea) |
static rx.Observable<Streams.TimestampedAndLines<AisMessage>> |
extractWithLines(rx.Observable<String> rawAisNmea) |
static <T> rx.functions.Func1<com.google.common.base.Optional<T>,Boolean> |
isPresent() |
static void |
main(String[] args) |
static rx.Observable<String> |
nmeaFrom(File file) |
static rx.Observable<String> |
nmeaFrom(InputStream is) |
static rx.Observable<String> |
nmeaFromGzip(File file) |
static rx.Observable<String> |
nmeaFromGzip(String filename) |
static rx.Observable<rx.Observable<String>> |
nmeasFromGzip(rx.Observable<File> files) |
static void |
print(rx.Observable<?> stream) |
static void |
print(rx.Observable<?> stream,
PrintStream out) |
static rx.functions.Func1<String,rx.Observable<LineAndTime>> |
toLineAndTime() |
static <T> rx.functions.Func1<com.google.common.base.Optional<T>,T> |
toValue() |
static <T> rx.Observable.Transformer<com.google.common.base.Optional<T>,T> |
valueIfPresent() |
static rx.Observable<Integer> |
writeFixesFromNmeaGz(File input,
Pattern inputPattern,
File output,
int logEvery,
int writeBufferSize,
rx.Scheduler scheduler,
int linesPerProcessor,
long downSampleIntervalMs,
rx.functions.Func1<Fix,String> fileMapper) |
public static final int BUFFER_SIZE
public static final rx.functions.Func1<String,com.google.common.base.Optional<NmeaMessage>> LINE_TO_NMEA_MESSAGE
public static final rx.functions.Func1<NmeaMessage,com.google.common.base.Optional<Timestamped<AisMessage>>> TO_AIS_MESSAGE
public static final rx.functions.Func1<NmeaMessage,Streams.TimestampedAndLine<AisMessage>> TO_AIS_MESSAGE_AND_LINE
public static final rx.functions.Func1<com.google.common.base.Optional<List<NmeaMessage>>,Streams.TimestampedAndLines<AisMessage>> TO_AIS_MESSAGE_AND_LINES
public static rx.Observable<Streams.TimestampedAndLine<AisMessage>> connectAndExtract(String host, int port)
public static rx.Observable<Streams.TimestampedAndLine<AisMessage>> extract(rx.Observable<String> rawAisNmea)
public static rx.Observable<Streams.TimestampedAndLines<AisMessage>> extractWithLines(rx.Observable<String> rawAisNmea)
public static rx.Observable<Timestamped<AisMessage>> extractMessages(rx.Observable<String> rawAisNmea)
public static <T> rx.functions.Func1<com.google.common.base.Optional<T>,Boolean> isPresent()
public static <T> rx.functions.Func1<com.google.common.base.Optional<T>,T> toValue()
public static <T> rx.Observable.Transformer<com.google.common.base.Optional<T>,T> valueIfPresent()
public static rx.Observable<String> nmeaFrom(InputStream is)
public static rx.Observable<rx.Observable<String>> nmeasFromGzip(rx.Observable<File> files)
public static void print(rx.Observable<?> stream, PrintStream out)
public static void print(rx.Observable<?> stream)
public static final rx.functions.Func1<String,rx.Observable<LineAndTime>> toLineAndTime()
public static final rx.Observable.Transformer<NmeaMessage,com.google.common.base.Optional<List<NmeaMessage>>> addToBuffer(int bufferSize)
public static final rx.Observable.Transformer<NmeaMessage,NmeaMessage> aggregateMultiLineNmea(int bufferSize)
public static final rx.Observable.Transformer<NmeaMessage,NmeaMessage> aggregateMultiLineNmeaWithLines(int bufferSize)
public static rx.functions.Func1<List<File>,rx.Observable<Integer>> extractFixesFromNmeaGzAndAppendToFile(int linesPerProcessor, rx.Scheduler scheduler, rx.functions.Func1<Fix,String> fileMapper, int writeBufferSize, rx.functions.Action1<File> logger)
public static rx.Observable<Integer> writeFixesFromNmeaGz(File input, Pattern inputPattern, File output, int logEvery, int writeBufferSize, rx.Scheduler scheduler, int linesPerProcessor, long downSampleIntervalMs, rx.functions.Func1<Fix,String> fileMapper)
public static void main(String[] args)
Copyright © 2020. All rights reserved.