Skip to content

Commit

Permalink
Replace Stream by Seq
Browse files Browse the repository at this point in the history
  • Loading branch information
julianmendez committed Dec 23, 2019
1 parent 8fdaca1 commit bd533d5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ case class MetadataHelper() {
}

private def getPrefixEntry(table: Table): PrimitiveTypeValue = {
val list = table.getPrefixMap.getKeysAsStream
val list = table.getPrefixMap.getKeys
.map(key => key + ParserConstant.TypeSign + table.getPrefixMap.get(key).get)
.map(x => StringValue(x))
ParameterizedListValue(StringType(), list)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ trait PrefixMap {
*/
def getPrefixFor(uri: URI): Option[URI]

/** Returns a stream to iterate on the keys.
/** Returns a sequence to iterate on the keys.
*
* @return a stream to iterate on the keys
* @return a sequence to iterate on the keys
*/
def getKeysAsStream: Stream[URI]
def getKeys: Seq[URI]

}
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ case class PrefixMapImpl(prefixMap: Map[URI, URI], keyList: Seq[URI]) extends Pr
result
}

override def getKeysAsStream: Stream[URI] = {
keyList.toStream
override def getKeys: Seq[URI] = {
keyList
}

override def toString: String = {
Expand Down

0 comments on commit bd533d5

Please sign in to comment.