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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionAdds the value to the end of this array.clone()
Obtain a complete copy of this array.int
boolean
If 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.boolean
has
(int index) Determine if this contains an entry at the given index.int
hashCode()
Increment the numeric value at the given location by the designated amount.protected int
indexFrom
(CharSequence name) boolean
isEmpty()
Return whether this document contains no fields and is therefore empty.protected boolean
isValidIndex
(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.int
size()
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, wait
Methods 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, transform
Methods 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:Array
Return the number of name-value fields in this object. -
isEmpty
public boolean isEmpty()Description copied from interface:Array
Return whether this document contains no fields and is therefore empty. -
compareTo
- Specified by:
compareTo
in interfaceComparable<Array>
-
iterator
- Specified by:
iterator
in interfaceIterable<Array.Entry>
-
remove
Description copied from interface:Array
Remove the specified entry from this array -
removeAll
Description copied from interface:Array
Remove all entries from this array. -
has
public boolean has(int index) Description copied from interface:Array
Determine if this contains an entry at the given index. -
get
Description copied from interface:Array
Gets the value in this array at the given index. -
setValue
Description copied from interface:Array
Set the value for the field with the given name to be a value. -
expand
Description copied from interface:Array
If 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:Array
Increment the numeric value at the given location by the designated amount. -
add
Description copied from interface:Array
Adds the value to the end of this array. -
values
-
clone
Description copied from interface:Array
Obtain a complete copy of this array. -
hashCode
public int hashCode() -
equals
-
toString
-