@SuppressWarnings("deprecation") @Override public void seek(long pos) throws IOException { delegate.seek(pos); }
@SuppressWarnings("deprecation") @Override public void seek(long pos) throws IOException { delegate.seek(pos); }
public void seek(long pos) throws IOException { indexOutput.seek(pos); }
@Override public void seek(final long pos) throws IOException { this.delegate.seek(pos); }
public void seek(long size) throws IOException { localCacheIndexOutput.seek(size); }
public void seek(long pos) throws IOException { position = pos; actualOutput().seek(pos); }
/** * Creates a new index output stream and wraps the given * <code>output</code>. Bytes will always be written at the end of the * <code>output</code>. * * @param output the lucene index output. * @throws IOException if an error occurs while seeking to the end of the * index <code>output</code>. */ public IndexOutputStream(IndexOutput output) throws IOException { this.out = output; this.out.seek(output.length()); }
/** * Creates a new index output stream and wraps the given * <code>output</code>. Bytes will always be written at the end of the * <code>output</code>. * * @param output the lucene index output. * @throws IOException if an error occurs while seeking to the end of the * index <code>output</code>. */ public IndexOutputStream(IndexOutput output) throws IOException { this.out = output; this.out.seek(output.length()); }
/** * Creates a new index output stream and wraps the given * <code>output</code>. Bytes will always be written at the end of the * <code>output</code>. * * @param output the lucene index output. * @throws IOException if an error occurs while seeking to the end of the * index <code>output</code>. */ public IndexOutputStream(IndexOutput output) throws IOException { this.out = output; this.out.seek(output.length()); }
/** Called to complete TermInfos creation. */ void close() throws IOException { output.seek(4); // write size after format output.writeLong(size); output.close(); if (!isIndex) other.close(); }
/** Called to complete TermInfos creation. */ void close() throws IOException { output.seek(4); // write size after format output.writeLong(size); output.close(); if (!isIndex) other.close(); }
/** * Starts but does not complete the commit of this file (= * writing of the final checksum at the end). After this * is called must call {@link #finishCommit} and the * {@link #close} to complete the commit. */ public void prepareCommit() throws IOException { final long checksum = getChecksum(); // Intentionally write a mismatched checksum. This is // because we want to 1) test, as best we can, that we // are able to write a long to the file, but 2) not // actually "commit" the file yet. This (prepare // commit) is phase 1 of a two-phase commit. final long pos = main.getFilePointer(); main.writeLong(checksum-1); main.flush(); main.seek(pos); }
/** * Starts but does not complete the commit of this file (= * writing of the final checksum at the end). After this * is called must call {@link #finishCommit} and the * {@link #close} to complete the commit. */ public void prepareCommit() throws IOException { final long checksum = getChecksum(); // Intentionally write a mismatched checksum. This is // because we want to 1) test, as best we can, that we // are able to write a long to the file, but 2) not // actually "commit" the file yet. This (prepare // commit) is phase 1 of a two-phase commit. final long pos = main.getFilePointer(); main.writeLong(checksum-1); main.flush(); main.seek(pos); }
while(it.hasNext()) { FileEntry fe = (FileEntry) it.next(); os.seek(fe.directoryOffset); os.writeLong(fe.dataOffset);
while(it.hasNext()) { FileEntry fe = (FileEntry) it.next(); os.seek(fe.directoryOffset); os.writeLong(fe.dataOffset);