public final class HashFieldMapEx<T> extends Object implements FieldMapEx<T>
ArrayFieldMapEx for almost all cases.
But in case when field numbers are sparse and especially when max field
number is big - this mapping should be used.ArrayFieldMapExMIN_TAG_FOR_HASH_FIELD_MAP| Constructor and Description |
|---|
HashFieldMapEx(Collection<FieldSchema<T>> fields) |
| Modifier and Type | Method and Description |
|---|---|
FieldSchema<T> |
getFieldByName(String fieldName) |
FieldSchema<T> |
getFieldByNumber(int n) |
int |
getFieldCount() |
List<FieldSchema<T>> |
getFields() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateFieldMap, preferHashFieldMappublic HashFieldMapEx(Collection<FieldSchema<T>> fields)
public FieldSchema<T> getFieldByNumber(int n)
getFieldByNumber in interface FieldMapEx<T>public FieldSchema<T> getFieldByName(String fieldName)
getFieldByName in interface FieldMapEx<T>public int getFieldCount()
getFieldCount in interface FieldMapEx<T>public List<FieldSchema<T>> getFields()
getFields in interface FieldMapEx<T>Copyright © 2017–2019 The Apache Software Foundation. All rights reserved.