Skip to content

Commit

Permalink
Allowing to load in memory big HDT exciding sequences that are longer…
Browse files Browse the repository at this point in the history
… than an int
  • Loading branch information
D063520 committed Jan 15, 2023
1 parent 5d4c517 commit 9a17c53
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,15 @@ private SequenceFactory() {}

public static Sequence createStream(String name) {
if(name==null) {
return new SequenceLog64();
return new SequenceLog64Big();
} else if(name.equals(HDTVocabulary.SEQ_TYPE_INT32)) {
return new SequenceInt32();
} else if(name.equals(HDTVocabulary.SEQ_TYPE_INT64)) {
return new SequenceInt64();
} else if(name.equals(HDTVocabulary.SEQ_TYPE_LOG)) {
return new SequenceLog64();
return new SequenceLog64Big();
}
return new SequenceLog64();
return new SequenceLog64Big();
}

public static Sequence createStream(InputStream input) throws IOException {
Expand All @@ -66,11 +66,11 @@ public static Sequence createStream(InputStream input) throws IOException {
input.reset();
switch (type) {
case TYPE_SEQLOG:
return new SequenceLog64();
return new SequenceLog64Big();
case TYPE_SEQ32:
return new SequenceInt32();
case TYPE_SEQ64:
return new SequenceLog64();
return new SequenceLog64Big();
default :
throw new IllegalFormatException("Implementation not found for Sequence with code "+type);
}
Expand Down

0 comments on commit 9a17c53

Please sign in to comment.