Examples of Index


Examples of htsjdk.tribble.index.Index

        if (idxFile.exists()) {
            idxFile.delete();
        }

        // Create the index 
        Index idx = IndexFactory.createIntervalIndex(new File(testFile), codec, 10);

        LittleEndianOutputStream stream = null;
        try {
            stream = new LittleEndianOutputStream(new BufferedOutputStream(new FileOutputStream(idxFile)));
            idx.write(stream);
        } finally {
            if (stream != null) {
                stream.close();
            }
        }
View Full Code Here

Examples of info.archinnov.achilles.annotations.Index

    private CodecFactory codecFactory = CodecFactory.Singleton.INSTANCE.get();

    public static String getIndexName(Field field) {
        log.debug("Check @Index annotation on field {} of class {}", field.getName(), field.getDeclaringClass().getCanonicalName());
        String indexName = null;
        Index index = field.getAnnotation(Index.class);
        if (index != null) {
            indexName = index.name();
        }
        return indexName;
    }
View Full Code Here

Examples of io.searchbox.core.Index

        given(jestClient.execute(any(Action.class))).willReturn(new JestResult());
        searchService.saveToIndex(entry);
        verify(jestClient).execute(argThat(new ArgumentMatcher<Action>() {
            @Override
            public boolean matches(Object item) {
                Index action = (Index) item;
                return action.getType().equals("someType");
            }
        }));
    }
View Full Code Here

Examples of it.unimi.dsi.mg4j.index.Index

          weight = Double.parseDouble( basenameWeight[ i ].substring( split + 1 ) );
        }
        catch( NumberFormatException e ) {}
      }
       
      final Index index;

      if ( split == -1 || basenameWeight[ i ].startsWith("mg4j://") ) {
        index = Index.getInstance( basenameWeight[ i ], true, loadSizes );
        index2Weight.put( index, 1 );
      }
View Full Code Here

Examples of javolution.util.Index

     * @return <code>true</code> if a reference is written;
     *         <code>false</code> if a new identifier is written.
     */
    public boolean writeReference(Object obj, XMLFormat.OutputElement xml)
            throws XMLStreamException {
        Index id = (Index) _objectToId.get(obj);
        if (id == null) { // New identifier.
            id = Index.valueOf(_counter++);
            _objectToId.put(obj, id);
            _tmp.clear().append(id.intValue());
            if (_idURI == null) {
                xml.getStreamWriter().writeAttribute(toCsq(_idName),
                        _tmp);
            } else {
                xml.getStreamWriter().writeAttribute(toCsq(_idURI),
                        toCsq(_idName), _tmp);
            }
            return false;
        }
        _tmp.clear().append(id.intValue());
        if (_refURI == null) {
            xml._writer
                    .writeAttribute(toCsq(_refName), _tmp);
        } else {
            xml._writer.writeAttribute(toCsq(_refURI),
View Full Code Here

Examples of liquibase.structure.core.Index

    protected Index getAffectedIndex(DropIndexStatement statement) {
        Table table = null;
        if (statement.getTableName() != null) {
            table = (Table) new Table().setName(statement.getTableName()).setSchema(statement.getTableCatalogName(), statement.getTableSchemaName());
        }
        return new Index().setName(statement.getIndexName()).setTable(table);
    }
View Full Code Here

Examples of mikera.indexz.Index

  /**
   * Creates a SparseIndexedVector with the specified index and data values.
   * Performs no checking - Index must be distinct and sorted.
   */
  public static SparseIndexedVector wrap(int length, int[] indices, double[] data) {
    Index index=Index.wrap(indices);
    assert(index.length()==data.length);
    assert(index.isDistinctSorted());
    return new SparseIndexedVector(length, index,data);
  }
View Full Code Here

Examples of mil.nga.giat.geowave.store.index.Index

        numIndices);
    for (int i = 0; i < numIndices; i++) {
      final int indexLength = in.readInt();
      final byte[] indexBytes = new byte[indexLength];
      in.readFully(indexBytes);
      final Index index = PersistenceUtils.fromBinary(
          indexBytes,
          Index.class);
      final int numRanges = in.readInt();
      final List<Range> rangeList = new ArrayList<Range>(
          numRanges);
View Full Code Here

Examples of net.openhft.chronicle.sandbox.queue.locators.shared.Index

                    @NotNull final BytesDataLocator<E, BYTES> bytesDataLocator,
                    @NotNull final ByteBuffer byteBuffer) {
        this.sliceProvider = sliceProvider;
        this.offsetProvider = offsetProvider;

        final Index index = new Index() {

            @Override
            public void setNextLocation(int index) {
                ringIndex.setReadLocation(index);
            }
View Full Code Here

Examples of net.projecteuler.model.Index

  }

  @Override
  public void solve() {
    initSolutionFile();
    Index index = tree.getRootValue();
    println(index);
    long sum = index.getValue();
    writeSolution(index, sum);
    for (int row = 0; row < tree.maxRows(); row++) {
      index = tree.getMaxChildIndex(index);
      println(index);
      if (index != null)
        sum += index.getValue();
      writeSolution(index, sum);
    }
    println(String.format("Sum: %s", sum));
    closeSolutionFile();
  }
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.