Examples of Hash


Examples of abstrasy.Hash

    int ms = c.get(Calendar.MILLISECOND);
    int dd = c.get(Calendar.DAY_OF_MONTH);
    int mm = c.get(Calendar.MONTH);
    int yy = c.get(Calendar.YEAR);
        Node listOfPairs = Node.createHash();
        Hash hash=listOfPairs.getHash();
    hash.store(new Node(K_DAY), new Node(dd));
    hash.store(new Node(K_MONTH), new Node(mm + 1));
    hash.store(new Node(K_YEAR), new Node(yy));
    hash.store(new Node(K_HOUR), new Node(h));
    hash.store(new Node(K_MINUTE), new Node(m));
    hash.store(new Node(K_SECOND), new Node(s));
    hash.store(new Node(K_MILLIS), new Node(ms));
    return listOfPairs;
  }
View Full Code Here

Examples of com.bitsofproof.supernode.common.Hash

    BCSAPIMessage.TransactionOutput.Builder builder = BCSAPIMessage.TransactionOutput.newBuilder ();
    builder.setScript (ByteString.copyFrom (script));
    builder.setValue (value);
    if ( color != null )
    {
      builder.setColor (ByteString.copyFrom (new Hash (color).toByteArray ()));
    }
    return builder.build ();
  }
View Full Code Here

Examples of com.cedarsoft.crypt.Hash

  public static String createPath( @Nonnull Class<?> testClass, @Nonnull String testMethodName ) {
    return testClass.getName() + File.separator + testMethodName;
  }

  public static void assertFileByHash( @Nonnull String path, @Nonnull Hash expected, @Nonnull File fileUnderTest ) throws IOException {
    Hash actual = HashCalculator.calculate( expected.getAlgorithm(), fileUnderTest );

    if ( expected.equals( actual ) ) {
      return; //everything went fine
    }
View Full Code Here

Examples of com.flaptor.hounder.indexer.util.Hash

        for (int i = 0; i < hosts.length; i++) {
          Pair<String, Integer> host = PortUtil.parseHost(hosts[i]);
            indexers.add(new RmiIndexerStub(host.last(), host.first()));
        }

        hashFunction = new Hash(indexers.size());

        useXslt = config.getBoolean("multiIndexer.useXslt");
        if (useXslt) {
            try {
                xsltModule = new XsltModule();
View Full Code Here

Examples of com.flaptor.hounder.indexer.util.Hash

        }

    setBaseDirectory();
    setIndexDirectory();
    setLatestCopyAsIndex();
        hashFunction = new Hash(indexDescriptor.getTotalNumberOfNodes());
    docIdName = config.getString("docIdName");

    ut = new UpdaterThread();
    logger.debug("Starting UpdaterThread.");
    ut.start();
View Full Code Here

Examples of com.flaptor.hounder.indexer.util.Hash

    public BatchMultiIndexer(int clusterSize, File outputDirectory, String fragmentName) {
        Preconditions.checkArgument(clusterSize > 0, "Invalid clusterSize.");
        Preconditions.checkArgument(null != outputDirectory && outputDirectory.exists() && outputDirectory.isDirectory(), "check the output directory.");
        this.clusterSize = clusterSize;
        this.outputDirectory = outputDirectory;
        hashFunction = new Hash(clusterSize);
        indexManagers = new BatchIndexManager[clusterSize];
        for (int i = 0; i < clusterSize; i++) {
            IndexDescriptor id = new IndexDescriptor(clusterSize, i , fragmentName);
            indexManagers[i] = new BatchIndexManager(id, new File(outputDirectory, "index-" + String.valueOf(i)));
        }
View Full Code Here

Examples of com.hp.hpl.jena.tdb.store.Hash

        return n ;
    }

    public static Hash hash(Node n)
    {
        Hash h = new Hash(LenNodeHash) ;
        setHash(h, n) ;
        return h ;
    }
View Full Code Here

Examples of com.hp.hpl.jena.tdb.store.Hash

        return nodeId ;
    }
   
    protected final NodeId accessIndex(Node node, boolean create)
    {
        Hash hash = new Hash(nodeHashToId.getRecordFactory().keyLength()) ;
        setHash(hash, node) ;
        byte k[] = hash.getBytes() ;       
        // Key only.
        Record r = nodeHashToId.getRecordFactory().create(k) ;
       
        synchronized (this// Pair to readNodeFromTable.
        {
View Full Code Here

Examples of com.hp.hpl.jena.tdb.store.Hash

        return n ;
    }

    public static Hash hash(Node n)
    {
        Hash h = new Hash(LenNodeHash) ;
        setHash(h, n) ;
        return h ;
    }
View Full Code Here

Examples of com.hp.hpl.jena.tdb.store.Hash

        return n ;
    }

    public static Hash hash(Node n)
    {
        Hash h = new Hash(LenNodeHash) ;
        setHash(h, n) ;
        return h ;
    }
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.