| Modifier and Type | Field and Description |
|---|---|
| private Map | |
| public int | |
| private static final int | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| private void | _add(String
may be null fieldName, IonValueLite must be validated and have field name or id set child)Validates the child and checks locks. |
| public void | accept(ValueVisitor
will have one of its visitor)visit methods called.Implements abstract com. Implements com. Entry point for visitor pattern. |
| public boolean | |
| public ValueFactory | add(final String fieldName)
Implements com. Provides a factory that when invoked constructs a new value and
|
| public void | add(String
the name of the new field. fieldName, IonValue the value of the new field. value)Implements com. Adds a new field to this struct. |
| public void | add(SymbolToken
the name of the new field. fieldName, IonValue the value of the new field. child)Implements com. Adds a new field to this struct using a given name and/or SID. |
| private void | |
| pack-priv void | afterIteratorRemove(IonValueLite
the value that was removed. value, int the container index of the value that was removed. idx)Overrides com. Called after a value is removed from the SequenceContentIterator. |
| pack-priv void | beforeIteratorRemove(IonValueLite
the value that will be removed. value, int the container index of the value that will be removed. idx)Overrides com. Called before a value is removed from the SequenceContentIterator. |
| private void | |
| public void | clear()
Overrides com. Implements com. Clears the contents of this container (if any) and set it to empty. |
| public IonStructLite | clone()
Overrides com. Implements com. Creates a copy of this value and all of its children. |
| public IonStruct | cloneAndRemove(String...
the names of the fields to remove.
A null field name causes removal of fields with unknown names. fieldNames)Implements com. Clones this struct, excluding certain fields. |
| public IonStruct | cloneAndRetain(String...
the names of the fields to retain.
Nulls are not allowed. fieldNames)Implements com. Clones this struct, including only certain fields. |
| public boolean | containsKey(Object
field name whose presence in this struct is to be tested fieldName)Implements com. Determines whether this struct contains one or more fields for the specified field name (i.e., key). |
| public boolean | containsValue(Object
value whose presence in this struct is to be tested value)Implements com. Determines whether this struct contains one or more fields with the specified value. |
| private IonStruct | |
| public void | dump(PrintWriter out)
Overrides com. Implements com.
|
| private boolean | |
| private int | |
| private int | |
| pack-priv void | forceMaterializationOfLazyState()
Overrides com. Force any lazy state to be materialized (if applicable). |
| public IonValue | get(String
the desired field. fieldName)Implements com. Gets the value of a field in this struct. |
| public IonType | |
| pack-priv int | |
| private static boolean | Returns: true iffield.getFieldName() is in fields.must not be null. It is not required to have a field name. field, String[] must not be null, and must not contain and nulls. fields)
|
| private void | |
| public ValueFactory | put(final String fieldName)
Implements com. Provides a factory that when invoked constructs a new value and
|
| public void | put(String
the name of the new field. fieldName, IonValue the value of the new field. value)Implements com. put is "make this value the one and only value associated with this fieldName". |
| public void | putAll(Map<? extends String, ? extends IonValue> m)
Implements com. Copies all of the mappings from the specified map to this struct. |
| public IonValue | remove(String
must not be null. fieldName)Implements com. Removes a field by name, returning a value that was previously
associated with the field, or |
| public boolean | remove(IonValue
the element to be removed from this container,
if present. element)Overrides com. Implements com. Removes the given element from this container. |
| private void | |
| private void | |
| public boolean | removeAll(String...
the names of the fields to remove. fieldNames)Implements com. Removes from this struct all fields with names in the given list. |
| public boolean | retainAll(String...
the names of the fields to retain. fieldNames)Implements com. Retains only the fields in this struct that have one of the given names. |
| pack-priv IonValueLite | shallowClone(IonContext
the context applicable to the value's parent. context)Implements abstract com. Clones the value's annotations and field name (if any). |
| private boolean | |
| protected void | transitionToLargeSize(int size)
Overrides com. This is overridden in |
| public String | validate()
Overrides com. Implements com.
|
| private static void |
| _field_map | back to summary |
|---|---|
| private Map<String, Integer> _field_map | |
| _field_map_duplicate_count | back to summary |
|---|---|
| public int _field_map_duplicate_count | |
| HASH_SIGNATURE | back to summary |
|---|---|
| private static final int HASH_SIGNATURE | |
| hasNullFieldName | back to summary |
|---|---|
| private boolean hasNullFieldName | |
| IonStructLite | back to summary |
|---|---|
| pack-priv IonStructLite(ContainerlessContext context, boolean isNull) | |
| IonStructLite | back to summary |
|---|---|
| private IonStructLite(IonStructLite existing, IonContext context) | |
| _add | back to summary |
|---|---|
| private void _add(String fieldName, IonValueLite child) Validates the child and checks locks.
| |
| accept | back to summary |
|---|---|
| public void accept(ValueVisitor visitor) throws Exception Implements abstract com. Implements com. Doc from com. Entry point for visitor pattern. Implementations of this method by
concrete classes will simply call the appropriate
| |
| add | back to summary |
|---|---|
| public boolean add(IonValue child) throws NullPointerException, IllegalArgumentException, ContainedValueException Overrides com.
| |
| add | back to summary |
|---|---|
| public ValueFactory add(final String fieldName) Implements com. Doc from com. Provides a factory that when invoked constructs a new value and
These two lines are equivalent:
str.add("f").newInt(3);
str.add("f", str.getSystem().newInt(3));
| |
| add | back to summary |
|---|---|
| public void add(String fieldName, IonValue value) Implements com. Doc from com. Adds a new field to this struct.
If this is If a field with the given name already exists in this struct, this call will result in repeated fields. | |
| add | back to summary |
|---|---|
| public void add(SymbolToken fieldName, IonValue child) Implements com. Doc from com. Adds a new field to this struct using a given name and/or SID.
If this is If a field with the given name already exists in this struct, this call will result in repeated fields. This is an "expert method": correct use requires deep understanding of the Ion binary format. You almost certainly don't want to use it.
| |
| add_field | back to summary |
|---|---|
| private void add_field(String fieldName, int newFieldIdx) | |
| afterIteratorRemove | back to summary |
|---|---|
| pack-priv void afterIteratorRemove(IonValueLite value, int idx) Overrides com. Doc from com. Called after a value is removed from the SequenceContentIterator. May be overridden by subclasses that require custom behavior.
| |
| beforeIteratorRemove | back to summary |
|---|---|
| pack-priv void beforeIteratorRemove(IonValueLite value, int idx) Overrides com. Doc from com. Called before a value is removed from the SequenceContentIterator. May be overridden by subclasses that require custom behavior.
| |
| build_field_map | back to summary |
|---|---|
| private void build_field_map() | |
| clear | back to summary |
|---|---|
| public void clear() Overrides com. Implements com. Doc from com. Clears the contents of this container (if any) and set it to empty.
If this container is an Ion
Use Warning This method is not support for instances of
| |
| clone | back to summary |
|---|---|
| public IonStructLite clone() Overrides com. Implements com. Doc from com. Creates a copy of this value and all of its children. The cloned value
may use the same shared symbol tables, but it will have an independent local
symbol table if necessary. The cloned value will
be modifiable regardless of whether this instance
The cloned value will be created in the context of the same
| |
| cloneAndRemove | back to summary |
|---|---|
| public IonStruct cloneAndRemove(String... fieldNames) Implements com. Doc from com. Clones this struct, excluding certain fields. This can be more efficient than cloning the struct and removing fields later on.
| |
| cloneAndRetain | back to summary |
|---|---|
| public IonStruct cloneAndRetain(String... fieldNames) Implements com. Doc from com. Clones this struct, including only certain fields. This can be more efficient than cloning the struct and removing fields later on.
| |
| containsKey | back to summary |
|---|---|
| public boolean containsKey(Object fieldName) Implements com. Doc from com. Determines whether this struct contains one or more fields for the specified field name (i.e., key). If this struct is an Ion null value, it will behave like an empty struct.
| |
| containsValue | back to summary |
|---|---|
| public boolean containsValue(Object value) Implements com. Doc from com. Determines whether this struct contains one or more fields with the specified value. If this struct is an Ion null value, it will behave like an empty struct. This uses reference equality to compare the specified value with the value of the struct fields.
| |
| doClone | back to summary |
|---|---|
| private IonStruct doClone(boolean keep, String... fieldNames) | |
| dump | back to summary |
|---|---|
| public void dump(PrintWriter out) Overrides com. Implements com.
| |
| fieldMapIsActive | back to summary |
|---|---|
| private boolean fieldMapIsActive(int proposedSize) | |
| find_field_helper | back to summary |
|---|---|
| private int find_field_helper(String fieldName) | |
| find_last_duplicate | back to summary |
|---|---|
| private int find_last_duplicate(String fieldName, int existing_idx) | |
| forceMaterializationOfLazyState | back to summary |
|---|---|
| pack-priv void forceMaterializationOfLazyState() Overrides com. Doc from com. Force any lazy state to be materialized (if applicable).
| |
| get | back to summary |
|---|---|
| public IonValue get(String fieldName) Implements com. Doc from com. Gets the value of a field in this struct. If the field name appears
more than once, one of the fields will be selected arbitrarily. For
example, calling
{ a:1, b:2, a:3 }
will return either 1 or 3.
| |
| getTypeSlow | back to summary |
|---|---|
| public IonType getTypeSlow() Implements abstract com.
| |
| hashSignature | back to summary |
|---|---|
| pack-priv int hashSignature() Implements abstract com.
| |
| isListedField | back to summary |
|---|---|
| private static boolean isListedField(IonValue field, String[] fields) | |
| patch_map_elements_helper | back to summary |
|---|---|
| private void patch_map_elements_helper(int removed_idx) | |
| put | back to summary |
|---|---|
| public ValueFactory put(final String fieldName) Implements com. Doc from com. Provides a factory that when invoked constructs a new value and
These two lines are equivalent:
str.put("f").newInt(3);
str.put("f", str.getSystem().newInt(3));
| |
| put | back to summary |
|---|---|
| public void put(String fieldName, IonValue value) Implements com. put is "make this value the one and only value associated with this fieldName". The side effect is that if there were multiple fields with this name when put is complete there will only be the one value in the collection.
| |
| putAll | back to summary |
|---|---|
| public void putAll(Map<? extends String, ? extends IonValue> m) Implements com. Doc from com. Copies all of the mappings from the specified map to this struct.
The effect of this call is equivalent to that of calling
If a key in the map maps to | |
| remove | back to summary |
|---|---|
| public IonValue remove(String fieldName) Implements com. Doc from com. Removes a field by name, returning a value that was previously
associated with the field, or Because Ion structs may have repeated fields, additional fields with the given name may still exist after this method returns. If this struct is an Ion null value or empty, then this method returns null and has no effect. | |
| remove | back to summary |
|---|---|
| public boolean remove(IonValue element) Overrides com. Implements com. Doc from com. Removes the given element from this container.
If this is an Ion null value, then this
method returns
Note that, unlike | |
| remove_field | back to summary |
|---|---|
| private void remove_field(String fieldName, int lowest_idx, int copies) | |
| remove_field_from_field_map | back to summary |
|---|---|
| private void remove_field_from_field_map(String fieldName, int idx) | |
| removeAll | back to summary |
|---|---|
| public boolean removeAll(String... fieldNames) Implements com. Doc from com. Removes from this struct all fields with names in the given list. If multiple fields with a given name exist in this struct, they will all be removed.
If this struct is an Ion null value or empty,
then this method returns
| |
| retainAll | back to summary |
|---|---|
| public boolean retainAll(String... fieldNames) Implements com. Doc from com. Retains only the fields in this struct that have one of the given names.
In other words, removes all fields with names that are not in
If this struct is an Ion null value or empty,
then this method returns
| |
| shallowClone | back to summary |
|---|---|
| pack-priv IonValueLite shallowClone(IonContext context) Implements abstract com. Doc from com. Clones the value's annotations and field name (if any). For scalars, also clones the value. For containers, leaves the cloned container empty rather than cloning the children.
| |
| there_is_only_one | back to summary |
|---|---|
| private boolean there_is_only_one(String fieldName, int existing_idx) | |
| transitionToLargeSize | back to summary |
|---|---|
| protected void transitionToLargeSize(int size) Overrides com. Doc from com. This is overridden in
| |
| validate | back to summary |
|---|---|
| public String validate() Overrides com. Implements com.
| |
| validateFieldName | back to summary |
|---|---|
| private static void validateFieldName(String fieldName) Ensures that a given field name is valid. Used as a helper for methods that have that precondition.
| |