public final class AndReadFilter extends ReadFilter
ALWAYS_ACCEPT, ALWAYS_REJECT_OFFSET| Constructor and Description |
|---|
AndReadFilter(ReadFilter... filters) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
acceptOffset(long offset)
Accept or reject based on file offset.
|
boolean |
acceptTimestamp(long timestamp)
Accept or reject based on event timestamp.
|
long |
getNextTimestampHint()
If the
ReadFilter.acceptTimestamp(long) returns false, the filter can provide a hint for the next
timestamp the reader should start reading from. |
void |
reset()
Invoked before filtering a new data block.
|
public AndReadFilter(ReadFilter... filters)
public void reset()
ReadFilterreset in class ReadFilterpublic boolean acceptOffset(long offset)
ReadFilteracceptOffset in class ReadFilteroffset - The file offset.true to accept, false to reject.public boolean acceptTimestamp(long timestamp)
ReadFilteracceptTimestamp in class ReadFiltertimestamp - The timestamp of the event.true to accept, false to reject.public long getNextTimestampHint()
ReadFilterReadFilter.acceptTimestamp(long) returns false, the filter can provide a hint for the next
timestamp the reader should start reading from.getNextTimestampHint in class ReadFilterCopyright © 2016 Cask Data, Inc. Licensed under the Apache License, Version 2.0.