Class RandomAccessFileIndex
java.lang.Object
java.util.AbstractCollection<Long>
java.util.AbstractList<Long>
org.gvsig.fmap.dal.store.simplereader.virtualrows.RandomAccessFileIndex
- All Implemented Interfaces:
Closeable,AutoCloseable,Iterable<Long>,Collection<Long>,List<Long>,SequencedCollection<Long>,org.gvsig.tools.util.GetItem64<Long>,org.gvsig.tools.util.GetItemWithSize64<Long>,org.gvsig.tools.util.SetItem<Integer,,Long> org.gvsig.tools.util.Size64
public class RandomAccessFileIndex
extends AbstractList<Long>
implements Closeable, org.gvsig.tools.util.GetItemWithSize64<Long>, org.gvsig.tools.util.SetItem<Integer,Long>
- Author:
- gvSIG Team
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidvoidcreate(RandomAccessFile raf, long numElements) get(int position) get64(long position) longgetHeader(int index) booleanisOpen()voidvoidopen(RandomAccessFile raf) voidset(int position, long value) voidvoidsetHeader(int index, long value) voidsetNumElements(long numElements) intsize()longsize64()Methods inherited from class java.util.AbstractList
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subListMethods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
addAll, addFirst, addLast, contains, containsAll, getFirst, getLast, isEmpty, remove, removeAll, removeFirst, removeLast, replaceAll, retainAll, reversed, sort, spliterator, toArray, toArray
-
Constructor Details
-
RandomAccessFileIndex
public RandomAccessFileIndex() -
RandomAccessFileIndex
- Throws:
IOException
-
RandomAccessFileIndex
- Throws:
IOException
-
-
Method Details
-
open
- Throws:
IOException
-
open
- Throws:
IOException
-
create
- Throws:
IOException
-
create
- Throws:
IOException
-
setNumElements
- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
isOpen
public boolean isOpen() -
get
-
size
public int size()- Specified by:
sizein interfaceCollection<Long>- Specified by:
sizein interfaceList<Long>- Specified by:
sizein classAbstractCollection<Long>
-
size64
public long size64()- Specified by:
size64in interfaceorg.gvsig.tools.util.Size64
-
get64
- Specified by:
get64in interfaceorg.gvsig.tools.util.GetItem64<Long>
-
set
-
set
public void set(int position, long value) -
setHeader
public void setHeader(int index, long value) -
getHeader
public long getHeader(int index)
-