-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
196 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
145 changes: 145 additions & 0 deletions
145
convex-core/src/main/java/convex/core/data/DenseRecord.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,145 @@ | ||
package convex.core.data; | ||
|
||
import java.util.ListIterator; | ||
import java.util.function.Consumer; | ||
import java.util.function.Function; | ||
|
||
import convex.core.data.type.AType; | ||
|
||
public class DenseRecord extends ACAD3Record { | ||
|
||
protected AVector<ACell> data; | ||
|
||
public DenseRecord(long count) { | ||
super(count); | ||
} | ||
|
||
@Override | ||
public ListIterator<ACell> listIterator() { | ||
return data.listIterator(); | ||
} | ||
|
||
@Override | ||
public ListIterator<ACell> listIterator(int index) { | ||
return data.listIterator(index); | ||
} | ||
|
||
@Override | ||
public long longIndexOf(ACell value) { | ||
return data.longIndexOf(value); | ||
} | ||
|
||
@Override | ||
public long longLastIndexOf(ACell value) { | ||
return data.longLastIndexOf(value); | ||
} | ||
|
||
@Override | ||
public <R extends ACell> ASequence<R> map(Function<? super ACell, ? extends R> mapper) { | ||
// TODO Auto-generated method stub | ||
return null; | ||
} | ||
|
||
@Override | ||
public void forEach(Consumer<? super ACell> action) { | ||
// TODO Auto-generated method stub | ||
|
||
} | ||
|
||
@Override | ||
public void visitElementRefs(Consumer<Ref<ACell>> f) { | ||
// TODO Auto-generated method stub | ||
|
||
} | ||
|
||
@Override | ||
public ASequence<ACell> concat(ASequence<? extends ACell> vals) { | ||
// TODO Auto-generated method stub | ||
return null; | ||
} | ||
|
||
@Override | ||
public ASequence<ACell> next() { | ||
// TODO Auto-generated method stub | ||
return null; | ||
} | ||
|
||
@Override | ||
public ASequence<ACell> empty() { | ||
// TODO Auto-generated method stub | ||
return null; | ||
} | ||
|
||
@Override | ||
public ACell get(long index) { | ||
// TODO Auto-generated method stub | ||
return null; | ||
} | ||
|
||
@Override | ||
public Ref<ACell> getElementRef(long index) { | ||
// TODO Auto-generated method stub | ||
return null; | ||
} | ||
|
||
@Override | ||
public ASequence<ACell> assoc(long i, ACell value) { | ||
// TODO Auto-generated method stub | ||
return null; | ||
} | ||
|
||
@Override | ||
public ASequence<ACell> conj(ACell value) { | ||
// TODO Auto-generated method stub | ||
return null; | ||
} | ||
|
||
@Override | ||
public ASequence<ACell> slice(long start, long end) { | ||
// TODO Auto-generated method stub | ||
return null; | ||
} | ||
|
||
@Override | ||
public AList<ACell> cons(ACell x) { | ||
// TODO Auto-generated method stub | ||
return null; | ||
} | ||
|
||
@Override | ||
public AVector<ACell> subVector(long start, long length) { | ||
// TODO Auto-generated method stub | ||
return null; | ||
} | ||
|
||
@Override | ||
protected ListIterator<ACell> listIterator(long l) { | ||
// TODO Auto-generated method stub | ||
return null; | ||
} | ||
|
||
@Override | ||
public ASequence<ACell> reverse() { | ||
// TODO Auto-generated method stub | ||
return null; | ||
} | ||
|
||
@Override | ||
public AType getType() { | ||
// TODO Auto-generated method stub | ||
return null; | ||
} | ||
|
||
@Override | ||
public AVector<ACell> toVector() { | ||
// TODO Auto-generated method stub | ||
return null; | ||
} | ||
|
||
@Override | ||
protected <R> void copyToArray(R[] arr, int offset) { | ||
// TODO Auto-generated method stub | ||
|
||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.