Examples of RAMFile


Examples of org.apache.lucene.store.RAMFile

        }
      } else {
        docs = new int[32];
        offsets = new long[32];
        payload = new BytesRef(32);
        file = new RAMFile();
        sorter = new DocOffsetSorter(maxDoc);
      }
      final IndexOutput out = new RAMOutputStream(file);
      int doc;
      int i = 0;
View Full Code Here

Examples of org.apache.lucene.store.RAMFile

    }

    static class CustomRAMDirectory extends RAMDirectory {

        public synchronized void renameTo(String from, String to) throws IOException {
            RAMFile fromFile = fileMap.get(from);
            if (fromFile == null)
                throw new FileNotFoundException(from);
            RAMFile toFile = fileMap.get(to);
            if (toFile != null) {
                sizeInBytes.addAndGet(-fileLength(from));
                fileMap.remove(from);
            }
            fileMap.put(to, fromFile);
View Full Code Here

Examples of org.apache.lucene.store.RAMFile

        }
      } else {
        docs = new int[32];
        offsets = new long[32];
        payload = new BytesRef(32);
        file = new RAMFile();
        sorter = new DocOffsetSorter(maxDoc);
      }
      final IndexOutput out = new RAMOutputStream(file, false);
      int doc;
      int i = 0;
View Full Code Here

Examples of org.apache.lucene.store.RAMFile

        }
      } else {
        docs = new int[32];
        offsets = new long[32];
        payload = new BytesRef(32);
        file = new RAMFile();
        sorter = new DocOffsetSorter(maxDoc);
      }
      final IndexOutput out = new RAMOutputStream(file);
      int doc;
      int i = 0;
View Full Code Here

Examples of org.apache.lucene.store.RAMFile

        }
      } else {
        docs = new int[32];
        offsets = new long[32];
        payload = new BytesRef(32);
        file = new RAMFile();
        sorter = new DocOffsetSorter(maxDoc);
      }
      final IndexOutput out = new RAMOutputStream(file);
      int doc;
      int i = 0;
View Full Code Here

Examples of org.apache.lucene.store.RAMFile

        file = reuse.file;
      } else {
        docs = new int[32];
        offsets = new long[32];
        payload = new BytesRef(32);
        file = new RAMFile();
      }
      final IndexOutput out = new RAMOutputStream(file);
      int doc;
      int i = 0;
      while ((doc = in.nextDoc()) != DocIdSetIterator.NO_MORE_DOCS) {
View Full Code Here

Examples of org.apache.lucene.store.RAMFile

        }
      } else {
        docs = new int[32];
        offsets = new long[32];
        payload = new BytesRef(32);
        file = new RAMFile();
        sorter = new DocOffsetSorter(maxDoc);
      }
      final IndexOutput out = new RAMOutputStream(file);
      int doc;
      int i = 0;
View Full Code Here

Examples of org.apache.lucene.store.RAMFile

    }

    static class CustomRAMDirectory extends RAMDirectory {

        public synchronized void renameTo(String from, String to) throws IOException {
            RAMFile fromFile = fileMap.get(from);
            if (fromFile == null)
                throw new FileNotFoundException(from);
            RAMFile toFile = fileMap.get(to);
            if (toFile != null) {
                sizeInBytes.addAndGet(-fileLength(to));
            }
            fileMap.put(to, fromFile);
            fileMap.remove(from);
View Full Code Here

Examples of uk.ac.ucl.panda.utility.structure.RAMFile

  private long bufferStart;
  private int bufferLength;

  /** Construct an empty output buffer. */
  public RAMOutputStream() {
    this(new RAMFile());
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.