K - T - public class MapFieldValueFilter<K,T extends PersistentBase> extends Object implements Filter<K,T>
| Modifier and Type | Field and Description |
|---|---|
protected String |
fieldName |
protected boolean |
filterIfMissing |
protected FilterOp |
filterOp |
protected org.apache.avro.util.Utf8 |
mapKey |
protected List<Object> |
operands |
| Constructor and Description |
|---|
MapFieldValueFilter() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
filter(K key,
T persistent)
Filter the key and persistent.
|
String |
getFieldName() |
FilterOp |
getFilterOp() |
org.apache.avro.util.Utf8 |
getMapKey() |
List<Object> |
getOperands() |
boolean |
isFilterIfMissing() |
void |
readFields(DataInput in) |
void |
setFieldName(String fieldName) |
void |
setFilterIfMissing(boolean filterIfMissing) |
void |
setFilterOp(FilterOp filterOp) |
void |
setMapKey(org.apache.avro.util.Utf8 mapKey) |
void |
setOperands(List<Object> operands) |
String |
toString() |
void |
write(DataOutput out) |
protected String fieldName
protected org.apache.avro.util.Utf8 mapKey
protected FilterOp filterOp
protected boolean filterIfMissing
public void write(DataOutput out) throws IOException
write in interface org.apache.hadoop.io.WritableIOExceptionpublic void readFields(DataInput in) throws IOException
readFields in interface org.apache.hadoop.io.WritableIOExceptionpublic boolean filter(K key, T persistent)
Filterfilter in interface Filter<K,T extends PersistentBase>true if the row is filtered out (excluded),
false otherwise.public String getFieldName()
public void setFieldName(String fieldName)
public org.apache.avro.util.Utf8 getMapKey()
public void setMapKey(org.apache.avro.util.Utf8 mapKey)
public FilterOp getFilterOp()
public void setFilterOp(FilterOp filterOp)
public void setFilterIfMissing(boolean filterIfMissing)
public boolean isFilterIfMissing()
Copyright © 2010-2015 The Apache Software Foundation. All Rights Reserved.