Package io.debezium.document
Class BasicArray
java.lang.Object
io.debezium.document.BasicArray
- All Implemented Interfaces:
Array,Comparable<Array>,Iterable<Array.Entry>
Package-level implementation of
Array.- Author:
- Randall Hauch
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.debezium.document.Array
Array.Entry -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdds the value to the end of this array.clone()Obtain a complete copy of this array.intbooleanIf the current size of the array is smaller than the given size, expand it and use the supplied value for all new entries.get(int index) Gets the value in this array at the given index.booleanhas(int index) Determine if this contains an entry at the given index.inthashCode()Increment the numeric value at the given location by the designated amount.protected intindexFrom(CharSequence name) booleanisEmpty()Return whether this document contains no fields and is therefore empty.protected booleanisValidIndex(int index) iterator()remove(int index) Remove the specified entry from this arrayRemove all entries from this array.Set the value for the field with the given name to be a value.intsize()Return the number of name-value fields in this object.toString()values()Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.debezium.document.Array
add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, addAll, addAll, addAll, addAll, addNull, expand, expand, expand, expand, expand, expand, expand, get, increment, increment, increment, increment, isNull, isNullOrMissing, putAll, setArray, setArray, setArray, setBinary, setBoolean, setDocument, setDocument, setNull, setNumber, setNumber, setNumber, setNumber, setNumber, setNumber, setString, streamEntries, streamValues, transformMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
CONVERT_PAIR_TO_ENTRY
-
values
-
-
Constructor Details
-
BasicArray
BasicArray() -
BasicArray
-
BasicArray
BasicArray(Value[] values)
-
-
Method Details
-
indexFrom
-
isValidIndex
protected boolean isValidIndex(int index) -
size
public int size()Description copied from interface:ArrayReturn the number of name-value fields in this object. -
isEmpty
public boolean isEmpty()Description copied from interface:ArrayReturn whether this document contains no fields and is therefore empty. -
compareTo
- Specified by:
compareToin interfaceComparable<Array>
-
iterator
- Specified by:
iteratorin interfaceIterable<Array.Entry>
-
remove
Description copied from interface:ArrayRemove the specified entry from this array -
removeAll
Description copied from interface:ArrayRemove all entries from this array. -
has
public boolean has(int index) Description copied from interface:ArrayDetermine if this contains an entry at the given index. -
get
Description copied from interface:ArrayGets the value in this array at the given index. -
setValue
Description copied from interface:ArraySet the value for the field with the given name to be a value. -
expand
Description copied from interface:ArrayIf the current size of the array is smaller than the given size, expand it and use the supplied value for all new entries. This method does nothing if the current size is larger than the supplieddesiredSize. -
increment
Description copied from interface:ArrayIncrement the numeric value at the given location by the designated amount. -
add
Description copied from interface:ArrayAdds the value to the end of this array. -
values
-
clone
Description copied from interface:ArrayObtain a complete copy of this array. -
hashCode
public int hashCode() -
equals
-
toString
-