startsWith

fun startsWith(ref: ByteArray, prefix: BytesRef): Boolean

Returns true iff the ref starts with the given prefix. Otherwise false * .

Return

Returns true iff the ref starts with the given prefix. Otherwise false.

Parameters

ref

the byte[] to test

prefix

the expected prefix


fun startsWith(ref: BytesRef, prefix: BytesRef): Boolean

Returns true iff the ref starts with the given prefix. Otherwise false * .

Return

Returns true iff the ref starts with the given prefix. Otherwise false.

Parameters

ref

the BytesRef to test

prefix

the expected prefix