mvn dependency:get org.xerial.snappy:snappy-java:1.0.5
grape install org.xerial.snappy snappy-java 1.0.5
mvn dependency:tree -Dincludes=ch.qos.logback
def UPPER_BOUND = 1000001 // SetWithRangeSums.MODULUS | |
def PROBLEM_SIZE = 100000 | |
def javaSet = new SetWithRangeSums.SummingTreeSet() | |
def avlSet = new SetWithRangeSums.PrincetonAvlTree() | |
/* The inputs from the assignment are about 45 % insertion, 45 % queries, 5 % deletion, | |
and 5% range sums. | |
*/ |
@Grapes([ | |
@Grab(group='com.fasterxml.jackson.core', module='jackson-core', version='2.9.9'), | |
@Grab(group='com.fasterxml.jackson.datatype', module='jackson-datatype-jsr310', version='2.9.9') | |
] | |
) | |
import java.time.* | |
import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule | |
import com.fasterxml.jackson.databind.ObjectMapper | |
import com.fasterxml.jackson.databind.SerializationFeature |
If your service is going to call other services in CapitalOne, esp. the DevEx gateway, your JVM
will have to trust hosts within capitalone.com. The usual way that devs do this is simply to get
the Capital One root cert from another dev, and import it into their $JAVA_HOME.../cacerts. This is
unwise for EC2 instances. Your cacerts
is probably cluttered with other certs, and for deployment,
you'd really like know exactly what you're doing, not throw files onto an instance and hope they work.
The better practice would be to create a truststore that has no more information in it than your application needs. Create an empty truststore: