public abstract class BaseColumnFilter extends Object implements Filter
| Modifier and Type | Field and Description |
|---|---|
protected String |
column |
protected int |
columnIdx |
protected Schema |
schema |
| Modifier | Constructor and Description |
|---|---|
protected |
BaseColumnFilter(String column) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
removeExample(List<Writable> writables) |
abstract boolean |
removeExample(Writable writable)
Should the example or sequence be removed, based on the values from the specified column?
|
boolean |
removeSequence(List<List<Writable>> sequence) |
void |
setInputSchema(Schema schema)
Set the input schema.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetInputSchema, removeExample, removeSequencecolumnName, columnNames, outputColumnName, outputColumnNamesprotected Schema schema
protected final String column
protected int columnIdx
protected BaseColumnFilter(String column)
public boolean removeExample(List<Writable> writables)
removeExample in interface Filterwritables - Examplepublic boolean removeSequence(List<List<Writable>> sequence)
removeSequence in interface Filtersequence - sequence examplepublic void setInputSchema(Schema schema)
ColumnOpsetInputSchema in interface ColumnOpsetInputSchema in interface Filterpublic abstract boolean removeExample(Writable writable)
Copyright © 2020. All rights reserved.