public class TileDBObjectIterator
extends java.lang.Object
Constructor and Description |
---|
TileDBObjectIterator(Context ctx,
boolean group,
boolean array,
boolean kv,
boolean recursive,
WalkOrder walkOrder,
java.lang.String root)
Constructs a TileDB Object Iterator, allowing to subselect over certain TileDB object types
|
TileDBObjectIterator(Context ctx,
java.lang.String root)
Creates an object iterator.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<TileDBObject> |
getAllObjects() |
WalkOrder |
getWalkOrder() |
boolean |
isArray() |
boolean |
isGroup() |
boolean |
isKv() |
void |
setArray(boolean array) |
void |
setGroup(boolean group) |
void |
setIteratorPolicy(boolean group,
boolean array,
boolean kv)
Determines whether group, array and key-value objects will be iterated on during the walk.
|
void |
setKv(boolean kv) |
void |
setNonRecursive()
Disables recursive traversal.
|
void |
setRecursive()
Specifies that the iteration will be over all the directories in the tree rooted at `root`.
|
void |
setRecursive(WalkOrder walkOrder)
Specifies that the iteration will be over all the directories in the tree rooted at `root`.
|
void |
setWalkOrder(WalkOrder walkOrder) |
public TileDBObjectIterator(Context ctx, java.lang.String root)
ctx
- The TileDB context.root
- The root directory where the iteration will begin.public TileDBObjectIterator(Context ctx, boolean group, boolean array, boolean kv, boolean recursive, WalkOrder walkOrder, java.lang.String root)
ctx
- The TileDB context.group
- If `true`, groups will be considered.array
- If `true`, arrays will be considered.kv
- If `true`, key-values will be considered.recursive
- If `true`, the object will be listed for all nested folders.walkOrder
- The walk order.root
- The root directory where the iteration will begin.public void setIteratorPolicy(boolean group, boolean array, boolean kv)
group
- If `true`, groups will be considered.array
- If `true`, arrays will be considered.kv
- If `true`, key-values will be considered.public void setRecursive(WalkOrder walkOrder)
walkOrder
- The walk order.public void setRecursive()
public void setNonRecursive()
public boolean isGroup()
public void setGroup(boolean group)
public boolean isArray()
public void setArray(boolean array)
public boolean isKv()
public void setKv(boolean kv)
public WalkOrder getWalkOrder()
public java.util.List<TileDBObject> getAllObjects() throws TileDBError
TileDBError
public void setWalkOrder(WalkOrder walkOrder)