MCPcopy Create free account
hub / github.com/BaseXdb/basex / subsequence

Method subsequence

basex-core/src/main/java/org/basex/query/value/Value.java:121–126  ·  view source on GitHub ↗

Returns a subsequence with the given start and length. The following properties must hold: pos >= 0, length >= 0, length <= size() - pos @param pos starting position @param length number of items @param job interruptible job @return new subsequenc

(final long pos, final long length, final Job job)

Source from the content-addressed store, hash-verified

119 * @return new subsequence
120 */
121 public final Value subsequence(final long pos, final long length, final Job job) {
122 return length == 0 ? Empty.VALUE :
123 length == 1 ? itemAt(pos) :
124 length == size() ? this :
125 subSeq(pos, length, job);
126 }
127
128 /**
129 * Returns a subsequence with the given start and length.

Callers 10

valueMethod · 0.95
valueMethod · 0.95
valueMethod · 0.95
valueMethod · 0.95
iterMethod · 0.45
iterMethod · 0.45
iterMethod · 0.45
valueMethod · 0.45
copyInsertMethod · 0.45
subArrMethod · 0.45

Calls 3

itemAtMethod · 0.95
subSeqMethod · 0.95
sizeMethod · 0.65

Tested by

no test coverage detected